Skip to content

Commit d492fb4

Browse files
committed
Do some checks for the wall function impl in CConfig.
1 parent f9a5129 commit d492fb4

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

Common/src/CConfig.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3311,8 +3311,10 @@ void CConfig::SetPostprocessing(SU2_COMPONENT val_software, unsigned short val_i
33113311
SU2_MPI::Error(string("For RANS problems, use NONE, STANDARD_WALL_FUNCTION or EQUILIBRIUM_WALL_MODEL.\n"), CURRENT_FUNCTION);
33123312

33133313
if (Kind_WallFunctions[iMarker] == WALL_FUNCTIONS::STANDARD_FUNCTION) {
3314-
/// TODO TK:: Add warnings, errors, incompatibilities here.
3315-
3314+
if (!((Kind_Solver == RANS) || (Kind_Solver == INC_RANS)))
3315+
SU2_MPI::Error(string("Wall model STANDARD_FUNCTION only available for RANS or INC_RANS.\n"), CURRENT_FUNCTION);
3316+
if (nRough_Wall != 0)
3317+
SU2_MPI::Error(string("Wall model STANDARD_FUNCTION and WALL_ROUGHNESS migh not be compatible. Checking required!\n"), CURRENT_FUNCTION);
33163318
}
33173319

33183320
}

0 commit comments

Comments
 (0)