Skip to content

Commit 485683e

Browse files
committed
added some auto's
1 parent b4f00a9 commit 485683e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

SU2_CFD/src/iteration/CFluidIteration.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -273,8 +273,8 @@ void CFluidIteration::UpdateRamp(CGeometry**** geometry_container, CConfig** con
273273
/*-- Update grid velocities (ROTATING_FRAME, STEADY_TRANSLATION)*/
274274
if (ramp_flag == RAMP_TYPE::GRID && config->GetGrid_Movement()) {
275275
const auto ini_vel = config->GetRamp_Coeff(ramp_flag, RAMP_COEFF::INITIAL_VALUE);
276-
const auto unsigned rampFreq = SU2_TYPE::Int(config->GetRamp_Coeff(ramp_flag, RAMP_COEFF::UPDATE_FREQ));
277-
const auto unsigned finalRamp_Iter = SU2_TYPE::Int(config->GetRamp_Coeff(ramp_flag, RAMP_COEFF::FINAL_ITER));
276+
const auto rampFreq = SU2_TYPE::Int(config->GetRamp_Coeff(ramp_flag, RAMP_COEFF::UPDATE_FREQ));
277+
const auto finalRamp_Iter = SU2_TYPE::Int(config->GetRamp_Coeff(ramp_flag, RAMP_COEFF::FINAL_ITER));
278278

279279
// Two options needed as if finalRamp_Iter % rampFreq != 0 final value is not set correctly
280280
if((iter % rampFreq == 0 && iter < finalRamp_Iter) || (iter == finalRamp_Iter)){
@@ -300,8 +300,8 @@ void CFluidIteration::UpdateRamp(CGeometry**** geometry_container, CConfig** con
300300
// Boundary ramps (pressure/mass flow)
301301
if (ramp_flag == RAMP_TYPE::BOUNDARY){
302302
const auto outVal_ini = config->GetRamp_Coeff(ramp_flag, RAMP_COEFF::INITIAL_VALUE);
303-
const long unsigned rampFreq = SU2_TYPE::Int(config->GetRamp_Coeff(ramp_flag, RAMP_COEFF::UPDATE_FREQ));
304-
const long unsigned finalRamp_Iter = SU2_TYPE::Int(config->GetRamp_Coeff(ramp_flag, RAMP_COEFF::FINAL_ITER));
303+
const auto rampFreq = SU2_TYPE::Int(config->GetRamp_Coeff(ramp_flag, RAMP_COEFF::UPDATE_FREQ));
304+
const auto finalRamp_Iter = SU2_TYPE::Int(config->GetRamp_Coeff(ramp_flag, RAMP_COEFF::FINAL_ITER));
305305
const auto outVal_final = config->GetFinalValue(ramp_flag);
306306

307307
if ((iter % rampFreq == 0 && iter < finalRamp_Iter) || (iter == finalRamp_Iter)) {

0 commit comments

Comments
 (0)