Skip to content

Commit 6d4fa45

Browse files
committed
Compilation warning fix
1 parent 5c40247 commit 6d4fa45

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

SU2_CFD/src/iteration/CTurboIteration.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ void CTurboIteration::TurboRamp(CGeometry**** geometry_container, CConfig** conf
7575
else if (ramp_flag == TURBO_RAMP_TYPE::GRID && config->GetRampTranslationFrame()) return config->GetRampTranslationFrame_Coeff(x);
7676
else if (ramp_flag == TURBO_RAMP_TYPE::BOUNDARY && config->GetRampOutletPressure()) return config->GetRampOutletPressure_Coeff(x);
7777
else if (ramp_flag == TURBO_RAMP_TYPE::BOUNDARY && config->GetRampOutletMassFlow()) return config->GetRampOutletMassFlow_Coeff(x);
78-
return 1.0; //No option specified (should never run, prevents compilation warning)
78+
else return config->GetRampRotatingFrame_Coeff(x); //No ramp specified, does nothing
7979
};
8080

8181
auto SetRate = [&](CConfig* &config, su2double val) {
@@ -93,7 +93,7 @@ void CTurboIteration::TurboRamp(CGeometry**** geometry_container, CConfig** conf
9393
else if (ramp_flag == TURBO_RAMP_TYPE::GRID && config->GetRampTranslationFrame()) return config->GetFinalTranslation_Rate_Y();
9494
else if (ramp_flag == TURBO_RAMP_TYPE::BOUNDARY && config->GetRampOutletPressure()) return config->GetFinalOutletPressure();
9595
else if (ramp_flag == TURBO_RAMP_TYPE::BOUNDARY && config->GetRampOutletMassFlow()) return config->GetFinalOutletMassFlow();
96-
return 1.0;
96+
else return config->GetFinalRotation_Rate_Z();
9797
};
9898

9999
auto msg = "\nUpdated rotating frame grid velocities for zone ";

0 commit comments

Comments
 (0)