Skip to content

Commit dea5d41

Browse files
authored
Apply suggestions from code review
1 parent 254fe21 commit dea5d41

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

SU2_CFD/src/iteration/CIteration.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ void CIteration::SetGrid_Movement(CGeometry** geometry, CSurfaceMovement* surfac
6969
/*--- Set the translational velocity on all grid levels. ---*/
7070

7171
for (auto iMGlevel = 0u; iMGlevel <= config->GetnMGLevels(); iMGlevel++)
72-
geometry[iMGlevel]->SetTranslationalVelocity(config, true);
72+
geometry[iMGlevel]->SetTranslationalVelocity(config, iMGlevel == 0);
7373

7474
break;
7575

@@ -83,7 +83,7 @@ void CIteration::SetGrid_Movement(CGeometry** geometry, CSurfaceMovement* surfac
8383
rotating reference frame. ---*/
8484

8585
for (auto iMGlevel = 0u; iMGlevel <= config->GetnMGLevels(); iMGlevel++){
86-
geometry[iMGlevel]->SetRotationalVelocity(config, true);
86+
geometry[iMGlevel]->SetRotationalVelocity(config, iMGlevel == 0);
8787
geometry[iMGlevel]->SetShroudVelocity(config);
8888
}
8989

0 commit comments

Comments
 (0)