Skip to content

Commit 254fe21

Browse files
authored
Update SU2_CFD/src/iteration/CIteration.cpp
1 parent c14d783 commit 254fe21

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

SU2_CFD/src/iteration/CIteration.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ void CIteration::SetGrid_Movement(CGeometry** geometry, CSurfaceMovement* surfac
6868

6969
/*--- Set the translational velocity on all grid levels. ---*/
7070

71-
for (auto iMGlevel = 0u; iMGlevel <= config_container[ZONE_0]->GetnMGLevels(); iMGlevel++)
72-
geometry_container[iZone][INST_0][iMGlevel]->SetTranslationalVelocity(config, true);
71+
for (auto iMGlevel = 0u; iMGlevel <= config->GetnMGLevels(); iMGlevel++)
72+
geometry[iMGlevel]->SetTranslationalVelocity(config, true);
7373

7474
break;
7575

@@ -82,7 +82,7 @@ void CIteration::SetGrid_Movement(CGeometry** geometry, CSurfaceMovement* surfac
8282
/*--- Set the grid velocities on all multigrid levels for a steadily
8383
rotating reference frame. ---*/
8484

85-
for (auto iMGlevel = 0u; iMGlevel <= config_container[ZONE_0]->GetnMGLevels(); iMGlevel++){
85+
for (auto iMGlevel = 0u; iMGlevel <= config->GetnMGLevels(); iMGlevel++){
8686
geometry[iMGlevel]->SetRotationalVelocity(config, true);
8787
geometry[iMGlevel]->SetShroudVelocity(config);
8888
}

0 commit comments

Comments
 (0)