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

NJOY2016.68 #264

Merged
merged 39 commits into from
Oct 5, 2022
Merged

NJOY2016.68 #264

merged 39 commits into from
Oct 5, 2022

Conversation

whaeck
Copy link
Member

@whaeck whaeck commented Sep 22, 2022

This update fixes a number of minor issues:

  • there was an indexing error in the calculation of inelastic thermal scattering mubar in ACER for IFENG=2 ACE files. Test 74 was added to track this issue.
  • there was a division by zero that caused a segmentation fault in Debug mode, also for IFENG=2 ACE files.
  • removed an erroneously added FEND record in the PENDF file when no MF12 data gets added to the PENDF file (related to issue ACER doesn't always respect the desired temperature tempd #250).
  • correction in ACER to fix issue ACER doesn't always respect the desired temperature tempd #250. Previously it could happen that ACER picked the wrong temperature from a multi-temperature PENDF file when the materials in the PENDF only contained linearised MF3 data (no MF10, MF12 or MF23 data was added by RECONR).
  • fixed an indexing problem in CCCCR for delayed neutron data and added test 76.
  • there was a use of wrong memory addresses in CCCR not accounting for GROUPR's energy structure offset.

gsiemers and others added 30 commits July 13, 2022 08:58
… RECONR if we have processed MF12 sections (LO=1 only)
This fixes a NJOY crash when performing a CCCR run with interface file DLAYXS selected.
Fix uninitialized array index in CCCR
GROUPR writes gendf data in a compact way and let us know, what the offset is.

The dlayxs part of CCCR loops over the full energy group range in container variable `a` where it should loop only until the offset. Thereby, on chance uninitialized or invalid memory may be addressed and may lead at best to a crash or simply runs without error but resulting in values like 1.E+44 for delayed spectra.

This commit introduces the offset and corrects 2 loops. Moreover,  a check is introduced if the requested memory fits into the `a` variable. The `a` size variable `isiza` was moved to a parameter statement and renamed to account for 4 byte and 8 byte equivalence'd variables.
* Get low energy offset the NJOY way
* Let last loop in `subroutine dldata` go over full `ngn` (error introduced during this PR)
Fix wrong memory addresses due to not accounted GROUPR offset
Copy link
Contributor

@nathangibson14 nathangibson14 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All changes were previously reviewed, CI passes, and version/date and release notes have been updated. Looks good to me.

@whaeck whaeck merged commit 43aa180 into master Oct 5, 2022
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