Skip to content

Fix inlet profile file loading when not restarting unsteady problems#1264

Merged
pcarruscag merged 5 commits intodevelopfrom
fix_profile_file_unsteady_wo_restart
Apr 20, 2021
Merged

Fix inlet profile file loading when not restarting unsteady problems#1264
pcarruscag merged 5 commits intodevelopfrom
fix_profile_file_unsteady_wo_restart

Conversation

@pcarruscag
Copy link
Member

Proposed Changes

When not restarting unsteady problems, set file iteration to 0 (instead of the -1/-2 logic).

Related Work

https://www.cfd-online.com/Forums/su2/235485-parabolic-velocity-inlet-profile-error.html

PR Checklist

  • I am submitting my contribution to the develop branch.
  • My contribution generates no new compiler warnings (try with the '-Wall -Wextra -Wno-unused-parameter -Wno-empty-body' compiler flags, or simply --warnlevel=2 when using meson).
  • My contribution is commented and consistent with SU2 style.
  • I have added a test case that demonstrates my contribution, if necessary.
  • I have updated appropriate documentation (Tutorials, Docs Page, config_template.cpp) , if necessary.

config->GetKind_Solver() == DISC_ADJ_INC_RANS);

unsigned short nVar_Turb = 0;
if (turbulent)
Copy link
Contributor

Choose a reason for hiding this comment

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

yes! Sanity checks should be (and are in this case) done in cconfig, so we can safely assume that the solver is a turbulence solver.

@lgtm-com
Copy link

lgtm-com bot commented Apr 19, 2021

This pull request introduces 3 alerts and fixes 2 when merging 3afaeef into bd5dde1 - view on LGTM.com

new alerts:

  • 3 for Comparison of narrow type with wide type in loop condition

fixed alerts:

  • 2 for Comparison of narrow type with wide type in loop condition

@lgtm-com
Copy link

lgtm-com bot commented Apr 19, 2021

This pull request fixes 2 alerts when merging c3831fa into bd5dde1 - view on LGTM.com

fixed alerts:

  • 2 for Comparison of narrow type with wide type in loop condition

Copy link
Contributor

@bigfooted bigfooted left a comment

Choose a reason for hiding this comment

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

Looks fine to me. Also like the introduction of the c++11 range based for loop. We should use that more often.

@pcarruscag pcarruscag merged commit ea015b3 into develop Apr 20, 2021
@pcarruscag pcarruscag deleted the fix_profile_file_unsteady_wo_restart branch April 20, 2021 21:39
bigfooted added a commit that referenced this pull request Apr 21, 2021
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