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 uninitialized memory in net_burn_const_p.f90 #730

Merged
merged 2 commits into from
Sep 5, 2024

Conversation

pmocz
Copy link
Member

@pmocz pmocz commented Sep 5, 2024

Fixes #726

Set a dummy value for rpar(r_burn_const_P_rho) right before this line:

rpar(r_burn_const_P_pressure) = exp10(log10Ps_f1(1)) ! no interpolation yet

so it is initialized. The code will calculate the right value later, but prior to that calculation the code (for some reason) has a function that takes the log of this value, so it has to be initialized:
lgrho = log10(rpar(r_burn_const_P_rho))

@pmocz pmocz added the bug Something isn't working label Sep 5, 2024
@pmocz pmocz self-assigned this Sep 5, 2024
@pmocz pmocz changed the title Bugfix/pmocz/quickfixes fix uninitialized memory in net_burn_const_p.f90 Sep 5, 2024
@pmocz pmocz merged commit 0e84b02 into main Sep 5, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Uninitialized variable in burn_1_zone_const_P()
1 participant