Skip to content

Commit

Permalink
Incorrect type conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
joshkellyjak committed Jan 13, 2025
1 parent f4b65fc commit 5c40247
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SU2_CFD/src/iteration/CTurboIteration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ void CTurboIteration::TurboRamp(CGeometry**** geometry_container, CConfig** conf
auto* config = config_container[iZone];
auto* geometry = geometry_container[iZone][INST_0][ZONE_0];

auto GetRamp_Coeff = [&](CConfig* &config, su2double x) {
auto GetRamp_Coeff = [&](CConfig* &config, unsigned short int x) {
if (ramp_flag == TURBO_RAMP_TYPE::GRID && config->GetRampRotatingFrame()) return config->GetRampRotatingFrame_Coeff(x);
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);
Expand Down

0 comments on commit 5c40247

Please sign in to comment.