Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix arrays and latch in iaea_phsp_source (#323)
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.
- Loading branch information