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

Bugfix upon restart #16

Merged

Conversation

APiccolo89
Copy link
Contributor

@APiccolo89 APiccolo89 commented Feb 8, 2024

1] If the steady state temperature field, the diffusion temperature time step, or the initial lithostatic pressure are activated, they are performed also after restarting the simulation:
a.) This implies that the vector of pressure from the restart database is overwritten by the guess of lithostatic pressure (=BAD).
b.) This implies that the current temperature field coming from the restart database will be modified.
2] This PR introduces a solution:
-> TSSolve is an argument of these function: if the timestep is different than 0, these function are not applied.

1.] This bug creates problem only under these circumstances: if someone activates the diffusive temperature at the beginning of the simulation/ if someone is activating the lithostatic pressure flag.
-> If you the simulation is restarted, the temperature diffusion step is repeat at the beginning of the restarting simulation, as well as for the lithostatic pressure.
=> Since the lithostatic pressure is substituting the actual pressure field for the computation, this invalidates a bit the restarted simulation. Same reasoning can be applied with the temperature diffusive timestep.
Just checking now if it works
Solved.
@boriskaus boriskaus changed the title Andrea piccolo/bug fix restart Bugfix upon restart Feb 11, 2024
Copy link
Contributor

@boriskaus boriskaus left a comment

Choose a reason for hiding this comment

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

looks good to me; thanks for catching!

@boriskaus boriskaus merged commit 7bdb7cc into UniMainzGeo:master Feb 11, 2024
2 checks passed
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