Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 restart simulation time #1302
Fix restart simulation time #1302
Changes from 4 commits
5f53e6d
216d261
5914040
77c7c12
e90c0e4
d033a4c
d615e0e
6d79adf
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need this generator exactly? If we are adding the restart files anyways... Is it always needed? The tgv restart test does not have this, do we need to add it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because if we change the version of p4est we need to regenerate all of the restart files. With Audrey we decided to keep the generators because of that. Ultimately I would love to migrate to a stage where we generate the restart files within the tests themselves instead of keeping them on the repository.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we replace this by a direct solver? So that it is the same as the other one?
set mg coarse grid solver = direct
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand how we can check from this output that the initial guess is correct, since we are not printing anything there. Shouldn't we maybe print the L2 norm of the vector or something?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On my computer the iteration did not converge at all when the initial guess was not correct. So the simulation would just crash instead (because the initial guess of 0 is so far away from the state of the simulation).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You were right, the test was not sensitive enough. I have fixed it to add the monitoring of the tolerance of the Newton step.
The new test breaks on master and work on this branch. So to me this is a very good measure of the quality of the test.
Master:
Fluid Dynamics
Newton iteration: 0 - Residual: 6.45982
alpha = 1 res = 0.008684
||du||_L2 = 7.134 ||du||_Linfty = 0.3355
||dp||_L2 = 0.3082 ||dp||_Linfty = 0.01942
1:53
is given by master
1:53
On the branch:
Fluid Dynamics
Newton iteration: 0 - Residual: 0.00353967
alpha = 1 res = 7.206e-09
||du||_L2 = 0.004831 ||du||_Linfty = 0.0003414
||dp||_L2 = 0.0008221 ||dp||_Linfty = 6.221e-05
Enstrophy : 0.3507
Kinetic energy : 0.02601
Large diffs are not rendered by default.
Large diffs are not rendered by default.