Skip to content

Commit 03aefd6

Browse files
committed
Slight bug
1 parent 6d4fa45 commit 03aefd6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

SU2_CFD/src/iteration/CFluidIteration.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,10 @@ bool CFluidIteration::Monitor(COutput* output, CIntegration**** integration, CGe
233233
config[val_iZone]->GetInnerIter(), val_iInst);
234234
}
235235
/*--- Update ramps, grid first then outlet boundary ---*/
236-
TurboRamp(geometry, config, config[val_iZone]->GetInnerIter(), val_iZone, TURBO_RAMP_TYPE::GRID);
237-
TurboRamp(geometry, config, config[val_iZone]->GetInnerIter(), val_iZone, TURBO_RAMP_TYPE::BOUNDARY);
236+
if (config[val_iZone]->GetRampRotatingFrame() || config[val_iZone]->GetRampTranslationFrame())
237+
TurboRamp(geometry, config, config[val_iZone]->GetInnerIter(), val_iZone, TURBO_RAMP_TYPE::GRID);
238+
if (config[val_iZone]->GetRampOutletMassFlow() || config[val_iZone]->GetRampOutletPressure())
239+
TurboRamp(geometry, config, config[val_iZone]->GetInnerIter(), val_iZone, TURBO_RAMP_TYPE::BOUNDARY);
238240
}
239241
output->SetHistoryOutput(geometry[val_iZone][val_iInst][MESH_0], solver[val_iZone][val_iInst][MESH_0],
240242
config[val_iZone], config[val_iZone]->GetTimeIter(), config[val_iZone]->GetOuterIter(),

0 commit comments

Comments
 (0)