Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix two bugs in iaea_phsp_source #323

Merged
merged 1 commit into from
Aug 18, 2017
Merged

Fix two bugs in iaea_phsp_source #323

merged 1 commit into from
Aug 18, 2017

Conversation

blakewalters
Copy link
Contributor

  1. Arrays extrafloat_type, extralong_types, extrainttemp,
    extrafloattemp, could be initialized with zero dimension if
    the IAEA phsp did not store any addition int (e.g. latch)
    or float (e.g. zlast) variables for each particle. These
    arrays are now given fixed dimension MAXEXTRAS.

  2. Source had the temerity to actually assign any latch
    value read from the phsp file to the incident particle, not
    realizing that, at least in the case of egs_chamber, this
    variable is used for setting splitting no. Now, latch is
    set to 0, similar to egs_phsp_source. This partially fixes
    the problem that @ojalaj had in Issue egs_chamber either produces zeros or exceeds MXSTACK #314.

Initialize "extra" arrays with a fixed dimension MAXEXTRAS. Arrays
extrafloat_type, extralong_types, extrainttemp, and extrafloattemp were
initialized with zero dimension when the IAEA phsp did not store
additional integers (e.g., latch) or floats (e.g., zlast) for each
particle.

Set latch to 0, similar to what is done in egs_phsp_source. Source had
the temerity to actually assign any latch value read from the phsp file
to the incident particle, not realizing that, at least in the case of
egs_chamber, this variable is used for setting the splitting number.
This partially fixes Issue #314 reported by @ojalaj.
@ftessier
Copy link
Member

Merely edited the commit message.

@ftessier ftessier merged commit bab2e86 into develop Aug 18, 2017
@ftessier ftessier deleted the fix-iaea_phsp branch August 18, 2017 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants