Skip to content

Commit

Permalink
Compilation warning fix
Browse files Browse the repository at this point in the history
  • Loading branch information
joshkellyjak committed Jan 13, 2025
1 parent 5c40247 commit 6d4fa45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SU2_CFD/src/iteration/CTurboIteration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ void CTurboIteration::TurboRamp(CGeometry**** geometry_container, CConfig** conf
else if (ramp_flag == TURBO_RAMP_TYPE::GRID && config->GetRampTranslationFrame()) return config->GetRampTranslationFrame_Coeff(x);
else if (ramp_flag == TURBO_RAMP_TYPE::BOUNDARY && config->GetRampOutletPressure()) return config->GetRampOutletPressure_Coeff(x);
else if (ramp_flag == TURBO_RAMP_TYPE::BOUNDARY && config->GetRampOutletMassFlow()) return config->GetRampOutletMassFlow_Coeff(x);
return 1.0; //No option specified (should never run, prevents compilation warning)
else return config->GetRampRotatingFrame_Coeff(x); //No ramp specified, does nothing
};

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

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

0 comments on commit 6d4fa45

Please sign in to comment.