10000 Fix/leapr segfault by whaeck · Pull Request #315 · njoy/NJOY2016 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix/leapr segfault #315

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

Merged
merged 9 commits into from
Oct 16, 2023
Merged

Fix/leapr segfault #315

merged 9 commits into from
Oct 16, 2023

Conversation

whaeck
Copy link
Member
@whaeck whaeck commented Oct 12, 2023

This PR fixes a few issues in LEAPR:

  • when the phonon expansion order is quite large, a segfault occurred due to the sice of an array. That array size was increased. In addition, additional output is written to the standard output stream to inform the user of calculation progress.
  • when the beta grid contains very small values, the trans subroutine calculates a delta value of roughly that size. For a value of for example 1e-13, an inifite loop can occur because the updated beta value (beta+delta) remains the same when beta is large enough. When that happens, we now increase the delta value to compensate.

test 80 was added to verify this last issue.

PR #314 must be merged prior to this one.

@whaeck whaeck 8000 mentioned this pull request Oct 12, 2023
kahlerac
kahlerac previously approved these changes Oct 16, 2023
Copy link
Contributor
@kahlerac kahlerac left a comment

Choose a reason for hiding this comment

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

Nothing wrong with a larger fixed dimension for maxt but in the unlikely event another increase is ever needed consider just allocating maxt to a length of nbeta. Everything else looks fine.

Base automatically changed from fix/acer-plots to develop October 16, 2023 15:10
@whaeck whaeck dismissed kahlerac’s stale review October 16, 2023 15:10

The base branch was changed.

@whaeck whaeck merged commit fb2ca6f into develop Oct 16, 2023
@whaeck whaeck deleted the fix/leapr-segfault branch October 16, 2023 15:14
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
0