-
Notifications
You must be signed in to change notification settings - Fork 191
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
Default CFL to 0.999 instead of 0.7 #2940
Conversation
Source/WarpX.H
Outdated
@@ -1281,7 +1281,7 @@ private: | |||
|
|||
int regrid_int = -1; | |||
|
|||
amrex::Real cfl = amrex::Real(0.7); | |||
amrex::Real cfl = amrex::Real(0.99); |
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.
Just in case: I usually use 0.999
for all my sims, which is a bit closer not leaving 1% on the table for time steps and still far from machine precision to be rounded to 1.
amrex::Real cfl = amrex::Real(0.99); | |
amrex::Real cfl = amrex::Real(0.999); |
I base this on Figure 2.11 in https://doi.org/10.5281/zenodo.3266820 & Figure 2.10 in https://doi.org/10.5281/zenodo.15924, where I still find the difference is signficant for the third digit.
Do we want to merge this into #2941, so we only need to reset the checksums once? |
Co-authored-by: Axel Huebl <[email protected]>
We could reset the benchmark, or explicitly set the CFL to 0.7 in the few tests that were failing, to avoid breaking them. I implemented the latter, but I don't mind either way. |
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.
Thank you, good change! :)
This PR proposes to:
warpx.cfl
parameter is not labeled as optional)0.7
currently to0.999
)My impression is that the second point would make a better default, but that changes the default which could affect users, so I am opening this PR to launch the discussion.