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

Do not access uninitialized part of adiabatic conditions #1745

Conversation

gassmoeller
Copy link
Member

A while ago we removed all adiabatic_conditions.is_initialized() statement, because the profile is now available for every position, except the (lower) uninitialized part. However, in some places plugins access this part before it is computed, see the attached case. Currently, there is no plugin that will cause this (because the adiabatic conditions do not access the initial conditions), but I am currently working on a plugin that will do this. Reinsert the check.

@tjhei
Copy link
Member

tjhei commented May 18, 2017

Do you think it is appropriate to just return a wrong result in this case? Maybe throwing in error would be safer (not that I understand when precisely this can happen).

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.

None yet

2 participants