-
Notifications
You must be signed in to change notification settings - Fork 849
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 dual time restarts with UNST_CFL_NUMBER != 0 #1272
Conversation
else if (!option_name.compare("UNST_RESTART_ITER")) | ||
newString.append("UNST_RESTART_ITER is deprecated. Use RESTART_ITER instead.\n\n"); | ||
else if (!option_name.compare("DYN_RESTART_ITER")) | ||
newString.append("DYN_RESTART_ITER is deprecated. Use RESTART_ITER instead.\n\n"); |
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.
Another two obsolete options.
|
||
if ((dual_time) && (Iteration == 0) && (config->GetUnst_CFL() != 0.0) && (iMesh == MESH_0)) { | ||
if (dual_time && (Iteration == config->GetRestart_Iter()) && (config->GetUnst_CFL() != 0.0) && (iMesh == MESH_0)) { |
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.
This is the fix, the rest was cleanup.
…/SU2 into fix_auto_dt_with_restart
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.
thanks for fixing and cleaning 💐
fluid_zone |= config_container[iZone]->GetFluidProblem(); | ||
structural_zone |= config_container[iZone]->GetStructuralProblem(); |
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.
For anyone wondering |=
is a bitwise or operation and in this case for booleans this a |= b
is equivalent to a = a || b
Proposed Changes
Fix this issue https://www.cfd-online.com/Forums/su2/235718-unsteady-2nd-order-dual-time-step-diverges-when-restarted-steady-solution.html
Plus other cleanups