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 dual time restarts with UNST_CFL_NUMBER != 0 #1272

Merged
merged 8 commits into from
Apr 30, 2021

Conversation

pcarruscag
Copy link
Member

Comment on lines +2883 to +2886
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");
Copy link
Member Author

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)) {
Copy link
Member Author

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.

Copy link
Contributor

@TobiKattmann TobiKattmann left a 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 💐

Common/src/CConfig.cpp Outdated Show resolved Hide resolved
Comment on lines +9772 to +9773
fluid_zone |= config_container[iZone]->GetFluidProblem();
structural_zone |= config_container[iZone]->GetStructuralProblem();
Copy link
Contributor

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

@pcarruscag pcarruscag merged commit eb55a07 into develop Apr 30, 2021
@pcarruscag pcarruscag deleted the fix_auto_dt_with_restart branch April 30, 2021 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants