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/heatr moreio #284

Merged
merged 3 commits into from
Feb 27, 2023
Merged

Fix/heatr moreio #284

merged 3 commits into from
Feb 27, 2023

Conversation

whaeck
Copy link
Member

@whaeck whaeck commented Feb 16, 2023

A small update to fix issue #283

The ENDF read routines do not read the entirety of TAB1 and LIST records by default. To do that, you need to do a "do while call moreio" after calling the tab1io and listio functions. In some modules this is not done rigorously - probably because it was assumed that the data was read in entirely anyway (e.g. Legendre coefficients were limited to just a few so no need to call moreio or tabulated mutliplicities are just a few values). While these assumptions have hold up, recent evaluations have started to break this. GROUPR was corrected in NJOY2016.69 for this very issue.

This time, it is HEATR's turn because newer evaluations use tabulated multiplicities that are quite large and the tab1io routine could not read these in a single pass.

In addition to this fix, I went down the rabbit hole and removed a few unused variables from acepn.f90.

NJOY2016 version number is set to 2016.70 and release notes were created for this future version (to be released around the end of March 2023).

@whaeck
Copy link
Member Author

whaeck commented Feb 21, 2023

@kahlerac Can you have a look at this one?

@whaeck whaeck mentioned this pull request Feb 21, 2023
@kahlerac
Copy link
Contributor

Code changes look good, but for heatr at the start of subroutine hconvr there is a "allocate(scr(npage+50)) statement. With the new "moreio" calls later in this subroutine this allocation likely isn't large enough.

@whaeck
Copy link
Member Author

whaeck commented Feb 22, 2023

Code changes look good, but for heatr at the start of subroutine hconvr there is a "allocate(scr(npage+50)) statement. With the new "moreio" calls later in this subroutine this allocation likely isn't large enough.

@kahlerac Good point. By what amount should we increase this? I did see a lot of npage+50 comparisons in heatr so we may want to replace that with a single variable so that its easier to increase later on.

@kahlerac
Copy link
Contributor

kahlerac commented Feb 22, 2023 via email

@whaeck
Copy link
Member Author

whaeck commented Feb 23, 2023

@kahlerac I checked other modules in NJOY2016 and they all use npage+50 when allocating the scr array that read from the ENDF tape. We should talk about what to do here during our next meeting - which I'll try to attend (I promise).

@whaeck
Copy link
Member Author

whaeck commented Feb 27, 2023

I'm merging this in develop since I need it in there. @kahlerac We'll talk about the npage+50 thing on a separate occasion.

@whaeck whaeck merged commit 12b382a into develop Feb 27, 2023
@whaeck whaeck deleted the fix/heatr-moreio branch February 27, 2023 21:41
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.

2 participants