Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #257: rest mass used before it is set in HATCH
Initialize prm (precise rest mass) in the COMIN/USEFUL declaration to fix a critical bug introduced in commit 1eaf898. The bug affects applications where prm is used before HATCH is called, so at least the following ones: HEN_HOUSE/omega/beamnrc/beamnrc.mortran HEN_HOUSE/user_codes/cavrznrc/cavrznrc.mortran HEN_HOUSE/user_codes/cavsphnrc/cavsphnrc.mortran HEN_HOUSE/user_codes/dosxyznrc/dosxyznrc.mortran HEN_HOUSE/user_codes/sprrznrc/sprrznrc.mortran In DOSXYZnrc, for example, it affects monoenergetic sources, resulting in the energy of incident electrons being increased by the value of the electron rest mass.
- Loading branch information