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 consistent initial state for linear isotherm. #106

Merged
merged 2 commits into from
Dec 2, 2021

Conversation

schmoelder
Copy link
Contributor

@schmoelder schmoelder commented Nov 22, 2021

Fixes #105

Previously, it was assumed that the linear algebraic equations are easily solved, not requiring a full nonlinear solver.
However, it was shown that this can lead to situations in which mass is not conserved.
To fix this, even this simple model needs to be fully initialized.

As suggested by @Immudzen , I also timed the function and could not see a significant performance loss.

@sleweke We might want to check other models that implement this method, like SMA

Previously, it was assumed that the linear algebraic equations are easily solved, not requiring a full nonlinear solver.
However, it was shown that this can lead to situations in which mass is not conserved.
To fix this, even this simple model needs to be fully initialized.
@schmoelder schmoelder force-pushed the fix/linear_consistent_initialization branch from fdff6c6 to 1ec5abc Compare November 22, 2021 12:06
@sleweke sleweke merged commit ece80fc into master Dec 2, 2021
@schmoelder schmoelder deleted the fix/linear_consistent_initialization branch December 17, 2022 10:47
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.

Issue with consistent initialization for linear isotherm model
3 participants