Skip to content

Commit 0a21059

Browse files
committed
Merge remote-tracking branch 'origin/develop' into feature_species
2 parents 0d37b2a + 42dcf5a commit 0a21059

8 files changed

Lines changed: 93 additions & 89 deletions

File tree

Common/include/CConfig.hpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -539,8 +539,8 @@ class CConfig {
539539
Kind_Upwind_Template, /*!< \brief Upwind scheme for the template model. */
540540
Kind_FEM, /*!< \brief Finite element scheme for the flow equations. */
541541
Kind_FEM_Flow, /*!< \brief Finite element scheme for the flow equations. */
542-
Kind_FEM_DG_Shock, /*!< \brief Shock capturing method for the FEM DG solver. */
543542
Kind_Matrix_Coloring; /*!< \brief Type of matrix coloring for sparse Jacobian computation. */
543+
FEM_SHOCK_CAPTURING_DG Kind_FEM_Shock_Capturing_DG; /*!< \brief Shock capturing method for the FEM DG solver. */
544544
BGS_RELAXATION Kind_BGS_RelaxMethod; /*!< \brief Kind of relaxation method for Block Gauss Seidel method in FSI problems. */
545545
bool ReconstructionGradientRequired; /*!< \brief Enable or disable a second gradient calculation for upwind reconstruction only. */
546546
bool LeastSquaresRequired; /*!< \brief Enable or disable memory allocation for least-squares gradient methods. */
@@ -569,7 +569,7 @@ class CConfig {
569569
unsigned short nTurbVar; /*!< \brief Number of Turbulence variables, i.e. 1 for SA-types, 2 for SST. */
570570
TURB_MODEL Kind_Turb_Model; /*!< \brief Turbulent model definition. */
571571
SPECIES_MODEL Kind_Species_Model; /*!< \brief Species model definition. */
572-
unsigned short Kind_SGS_Model; /*!< \brief LES SGS model definition. */
572+
TURB_SGS_MODEL Kind_SGS_Model; /*!< \brief LES SGS model definition. */
573573
TURB_TRANS_MODEL Kind_Trans_Model; /*!< \brief Transition model definition. */
574574
unsigned short Kind_ActDisk, Kind_Engine_Inflow,
575575
*Kind_Data_Riemann,
@@ -1096,7 +1096,7 @@ class CConfig {
10961096
bool Jacobian_Spatial_Discretization_Only; /*!< \brief Flag to know if only the exact Jacobian of the spatial discretization must be computed. */
10971097
bool Compute_Average; /*!< \brief Whether or not to compute averages for unsteady simulations in FV or DG solver. */
10981098
unsigned short Comm_Level; /*!< \brief Level of MPI communications to be performed. */
1099-
unsigned short Kind_Verification_Solution; /*!< \brief Verification solution for accuracy assessment. */
1099+
VERIFICATION_SOLUTION Kind_Verification_Solution; /*!< \brief Verification solution for accuracy assessment. */
11001100

11011101
bool Time_Domain; /*!< \brief Determines if the multizone problem is solved in time-domain */
11021102
unsigned long nOuterIter, /*!< \brief Determines the number of outer iterations in the multizone problem */
@@ -1197,7 +1197,7 @@ class CConfig {
11971197
map<string, COptionBase*> option_map;
11981198

11991199

1200-
// All of the addXxxOptions take in the name of the option, and a refernce to the field of that option
1200+
// All of the addXxxOptions take in the name of the option, and a reference to the field of that option
12011201
// in the option structure. Depending on the specific type, it may take in a default value, and may
12021202
// take in extra options. The addXxxOptions mostly follow the same pattern, so please see addDoubleOption
12031203
// for detailed comments.
@@ -4289,7 +4289,7 @@ class CConfig {
42894289
* \brief Get the kind of the subgrid scale model.
42904290
* \return Kind of the subgrid scale model.
42914291
*/
4292-
unsigned short GetKind_SGS_Model(void) const { return Kind_SGS_Model; }
4292+
TURB_SGS_MODEL GetKind_SGS_Model(void) const { return Kind_SGS_Model; }
42934293

42944294
/*!
42954295
* \brief Get the kind of time integration method.
@@ -4528,7 +4528,7 @@ class CConfig {
45284528
* during the computation.
45294529
* \return Kind of shock capturing method in FEM DG solver.
45304530
*/
4531-
unsigned short GetKind_FEM_DG_Shock(void) const { return Kind_FEM_DG_Shock; }
4531+
FEM_SHOCK_CAPTURING_DG GetKind_FEM_DG_Shock(void) const { return Kind_FEM_Shock_Capturing_DG; }
45324532

45334533
/*!
45344534
* \brief Get the kind of matrix coloring used for the sparse Jacobian computation.
@@ -9041,7 +9041,7 @@ class CConfig {
90419041
* \brief Get the verification solution.
90429042
* \return The verification solution to be used.
90439043
*/
9044-
unsigned short GetVerification_Solution(void) const { return Kind_Verification_Solution;}
9044+
VERIFICATION_SOLUTION GetVerification_Solution(void) const { return Kind_Verification_Solution;}
90459045

90469046
/*!
90479047
* \brief Get topology optimization.

Common/include/option_structure.hpp

Lines changed: 47 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -862,13 +862,13 @@ static const MapType<std::string, ENUM_FEM> FEM_Map = {
862862
/*!
863863
* \brief Types of shock capturing method in Discontinuous Galerkin numerical method.
864864
*/
865-
enum ENUM_SHOCK_CAPTURING_DG {
866-
NO_SHOCK_CAPTURING = 0, /*!< \brief Shock capturing is not used. */
867-
PERSSON = 1 /*!< \brief Per-Olof Persson's sub-cell shock capturing method. */
865+
enum class FEM_SHOCK_CAPTURING_DG {
866+
NONE, /*!< \brief Shock capturing is not used. */
867+
PERSSON /*!< \brief Per-Olof Persson's sub-cell shock capturing method. */
868868
};
869-
static const MapType<std::string, ENUM_SHOCK_CAPTURING_DG> ShockCapturingDG_Map = {
870-
MakePair("NONE", NO_SHOCK_CAPTURING)
871-
MakePair("PERSSON", PERSSON)
869+
static const MapType<std::string, FEM_SHOCK_CAPTURING_DG> ShockCapturingDG_Map = {
870+
MakePair("NONE", FEM_SHOCK_CAPTURING_DG::NONE)
871+
MakePair("PERSSON", FEM_SHOCK_CAPTURING_DG::PERSSON)
872872
};
873873

874874
/*!
@@ -958,19 +958,19 @@ static const MapType<std::string, SPECIES_MODEL> Species_Model_Map = {
958958
/*!
959959
* \brief Types of subgrid scale models
960960
*/
961-
enum ENUM_SGS_MODEL {
962-
NO_SGS_MODEL = 0, /*!< \brief No subgrid scale model. */
963-
IMPLICIT_LES = 1, /*!< \brief Implicit LES, i.e. no explicit SGS model. */
964-
SMAGORINSKY = 2, /*!< \brief Smagorinsky SGS model. */
965-
WALE = 3, /*!< \brief Wall-Adapting Local Eddy-viscosity SGS model. */
966-
VREMAN = 4 /*!< \brief Vreman SGS model. */
961+
enum class TURB_SGS_MODEL {
962+
NONE , /*!< \brief No subgrid scale model. */
963+
IMPLICIT_LES, /*!< \brief Implicit LES, i.e. no explicit SGS model. */
964+
SMAGORINSKY , /*!< \brief Smagorinsky SGS model. */
965+
WALE , /*!< \brief Wall-Adapting Local Eddy-viscosity SGS model. */
966+
VREMAN /*!< \brief Vreman SGS model. */
967967
};
968-
static const MapType<std::string, ENUM_SGS_MODEL> SGS_Model_Map = {
969-
MakePair("NONE", NO_SGS_MODEL)
970-
MakePair("IMPLICIT_LES", IMPLICIT_LES)
971-
MakePair("SMAGORINSKY", SMAGORINSKY)
972-
MakePair("WALE", WALE)
973-
MakePair("VREMAN", VREMAN)
968+
static const MapType<std::string, TURB_SGS_MODEL> SGS_Model_Map = {
969+
MakePair("NONE", TURB_SGS_MODEL::NONE)
970+
MakePair("IMPLICIT_LES", TURB_SGS_MODEL::IMPLICIT_LES)
971+
MakePair("SMAGORINSKY", TURB_SGS_MODEL::SMAGORINSKY)
972+
MakePair("WALE", TURB_SGS_MODEL::WALE)
973+
MakePair("VREMAN", TURB_SGS_MODEL::VREMAN)
974974
};
975975

976976

@@ -2250,35 +2250,35 @@ static const MapType<std::string, ENUM_PROJECTION_FUNCTION> Projection_Function_
22502250
/*!
22512251
* \brief the different validation solution
22522252
*/
2253-
enum ENUM_VERIFICATION_SOLUTIONS {
2254-
NO_VERIFICATION_SOLUTION = 0, /*!< \brief No verification solution, standard solver mode. */
2255-
INVISCID_VORTEX = 1, /*!< \brief Inviscid vortex. Exact solution of the unsteady Euler equations. */
2256-
RINGLEB = 2, /*!< \brief Ringleb flow. Exact solution of the steady Euler equations. */
2257-
NS_UNIT_QUAD = 31, /*!< \brief Exact solution of the laminar Navier Stokes equations without heat conduction. */
2258-
TAYLOR_GREEN_VORTEX = 32, /*!< \brief Taylor Green Vortex. */
2259-
INC_TAYLOR_GREEN_VORTEX = 33, /*!< \brief Incompressible Taylor Green Vortex (2D). */
2260-
MMS_NS_UNIT_QUAD = 61, /*!< \brief Manufactured solution of the laminar Navier Stokes equations on a unit quad. */
2261-
MMS_NS_UNIT_QUAD_WALL_BC = 62, /*!< \brief Manufactured solution of the laminar Navier Stokes equations on a unit quad with wall BC's. */
2262-
MMS_NS_TWO_HALF_CIRCLES = 63, /*!< \brief Manufactured solution of the laminar Navier Stokes equations between two half circles. */
2263-
MMS_NS_TWO_HALF_SPHERES = 64, /*!< \brief Manufactured solution of the laminar Navier Stokes equations between two half spheres. */
2264-
MMS_INC_EULER = 65, /*!< \brief Manufactured solution of the incompressible Euler equations. */
2265-
MMS_INC_NS = 66, /*!< \brief Manufactured solution of the laminar incompressible Navier Stokes equations. */
2266-
USER_DEFINED_SOLUTION = 99, /*!< \brief User defined solution. */
2267-
};
2268-
static const MapType<std::string, ENUM_VERIFICATION_SOLUTIONS> Verification_Solution_Map = {
2269-
MakePair("NO_VERIFICATION_SOLUTION", NO_VERIFICATION_SOLUTION)
2270-
MakePair("INVISCID_VORTEX", INVISCID_VORTEX)
2271-
MakePair("RINGLEB", RINGLEB)
2272-
MakePair("NS_UNIT_QUAD", NS_UNIT_QUAD)
2273-
MakePair("TAYLOR_GREEN_VORTEX", TAYLOR_GREEN_VORTEX)
2274-
MakePair("INC_TAYLOR_GREEN_VORTEX", INC_TAYLOR_GREEN_VORTEX)
2275-
MakePair("MMS_NS_UNIT_QUAD", MMS_NS_UNIT_QUAD)
2276-
MakePair("MMS_NS_UNIT_QUAD_WALL_BC", MMS_NS_UNIT_QUAD_WALL_BC)
2277-
MakePair("MMS_NS_TWO_HALF_CIRCLES", MMS_NS_TWO_HALF_CIRCLES)
2278-
MakePair("MMS_NS_TWO_HALF_SPHERES", MMS_NS_TWO_HALF_SPHERES)
2279-
MakePair("MMS_INC_EULER", MMS_INC_EULER)
2280-
MakePair("MMS_INC_NS", MMS_INC_NS)
2281-
MakePair("USER_DEFINED_SOLUTION", USER_DEFINED_SOLUTION)
2253+
enum class VERIFICATION_SOLUTION {
2254+
NONE, /*!< \brief No verification solution, standard solver mode. */
2255+
INVISCID_VORTEX, /*!< \brief Inviscid vortex. Exact solution of the unsteady Euler equations. */
2256+
RINGLEB, /*!< \brief Ringleb flow. Exact solution of the steady Euler equations. */
2257+
NS_UNIT_QUAD, /*!< \brief Exact solution of the laminar Navier Stokes equations without heat conduction. */
2258+
TAYLOR_GREEN_VORTEX, /*!< \brief Taylor Green Vortex. */
2259+
INC_TAYLOR_GREEN_VORTEX, /*!< \brief Incompressible Taylor Green Vortex (2D). */
2260+
MMS_NS_UNIT_QUAD, /*!< \brief Manufactured solution of the laminar Navier Stokes equations on a unit quad. */
2261+
MMS_NS_UNIT_QUAD_WALL_BC, /*!< \brief Manufactured solution of the laminar Navier Stokes equations on a unit quad with wall BC's. */
2262+
MMS_NS_TWO_HALF_CIRCLES, /*!< \brief Manufactured solution of the laminar Navier Stokes equations between two half circles. */
2263+
MMS_NS_TWO_HALF_SPHERES, /*!< \brief Manufactured solution of the laminar Navier Stokes equations between two half spheres. */
2264+
MMS_INC_EULER, /*!< \brief Manufactured solution of the incompressible Euler equations. */
2265+
MMS_INC_NS, /*!< \brief Manufactured solution of the laminar incompressible Navier Stokes equations. */
2266+
USER_DEFINED_SOLUTION, /*!< \brief User defined solution. */
2267+
};
2268+
static const MapType<std::string, VERIFICATION_SOLUTION> Verification_Solution_Map = {
2269+
MakePair("NO_VERIFICATION_SOLUTION", VERIFICATION_SOLUTION::NONE)
2270+
MakePair("INVISCID_VORTEX", VERIFICATION_SOLUTION::INVISCID_VORTEX)
2271+
MakePair("RINGLEB", VERIFICATION_SOLUTION::RINGLEB)
2272+
MakePair("NS_UNIT_QUAD", VERIFICATION_SOLUTION::NS_UNIT_QUAD)
2273+
MakePair("TAYLOR_GREEN_VORTEX", VERIFICATION_SOLUTION::TAYLOR_GREEN_VORTEX)
2274+
MakePair("INC_TAYLOR_GREEN_VORTEX", VERIFICATION_SOLUTION::INC_TAYLOR_GREEN_VORTEX)
2275+
MakePair("MMS_NS_UNIT_QUAD", VERIFICATION_SOLUTION::MMS_NS_UNIT_QUAD)
2276+
MakePair("MMS_NS_UNIT_QUAD_WALL_BC", VERIFICATION_SOLUTION::MMS_NS_UNIT_QUAD_WALL_BC)
2277+
MakePair("MMS_NS_TWO_HALF_CIRCLES", VERIFICATION_SOLUTION::MMS_NS_TWO_HALF_CIRCLES)
2278+
MakePair("MMS_NS_TWO_HALF_SPHERES", VERIFICATION_SOLUTION::MMS_NS_TWO_HALF_SPHERES)
2279+
MakePair("MMS_INC_EULER", VERIFICATION_SOLUTION::MMS_INC_EULER)
2280+
MakePair("MMS_INC_NS", VERIFICATION_SOLUTION::MMS_INC_NS)
2281+
MakePair("USER_DEFINED_SOLUTION", VERIFICATION_SOLUTION::USER_DEFINED_SOLUTION)
22822282
};
22832283

22842284
/*!

Common/src/CConfig.cpp

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1091,22 +1091,22 @@ void CConfig::SetConfig_Options() {
10911091
#endif
10921092
/*!\brief MATH_PROBLEM \n DESCRIPTION: Mathematical problem \n Options: DIRECT, ADJOINT \ingroup Config*/
10931093
addMathProblemOption("MATH_PROBLEM", ContinuousAdjoint, false, DiscreteAdjoint, discAdjDefault, Restart_Flow, discAdjDefault);
1094-
/*!\brief KIND_TURB_MODEL \n DESCRIPTION: Specify turbulence model \n Options: see \link Turb_Model_Map \endlink \n DEFAULT: NO_TURB_MODEL \ingroup Config*/
1094+
/*!\brief KIND_TURB_MODEL \n DESCRIPTION: Specify turbulence model \n Options: see \link Turb_Model_Map \endlink \n DEFAULT: NONE \ingroup Config*/
10951095
addEnumOption("KIND_TURB_MODEL", Kind_Turb_Model, Turb_Model_Map, TURB_MODEL::NONE);
1096-
/*!\brief KIND_TRANS_MODEL \n DESCRIPTION: Specify transition model OPTIONS: see \link Trans_Model_Map \endlink \n DEFAULT: NO_TRANS_MODEL \ingroup Config*/
1096+
/*!\brief KIND_TRANS_MODEL \n DESCRIPTION: Specify transition model OPTIONS: see \link Trans_Model_Map \endlink \n DEFAULT: NONE \ingroup Config*/
10971097
addEnumOption("KIND_TRANS_MODEL", Kind_Trans_Model, Trans_Model_Map, TURB_TRANS_MODEL::NONE);
10981098

10991099
/*!\brief KIND_SPECIES_MODEL \n DESCRIPTION: Specify scalar transport model \n Options: see \link Scalar_Model_Map \endlink \n DEFAULT: NONE \ingroup Config*/
11001100
addEnumOption("KIND_SCALAR_MODEL", Kind_Species_Model, Species_Model_Map, SPECIES_MODEL::NONE);
11011101

1102-
/*!\brief KIND_SGS_MODEL \n DESCRIPTION: Specify subgrid scale model OPTIONS: see \link SGS_Model_Map \endlink \n DEFAULT: NO_SGS_MODEL \ingroup Config*/
1103-
addEnumOption("KIND_SGS_MODEL", Kind_SGS_Model, SGS_Model_Map, NO_SGS_MODEL);
1102+
/*!\brief KIND_SGS_MODEL \n DESCRIPTION: Specify subgrid scale model OPTIONS: see \link SGS_Model_Map \endlink \n DEFAULT: NONE \ingroup Config*/
1103+
addEnumOption("KIND_SGS_MODEL", Kind_SGS_Model, SGS_Model_Map, TURB_SGS_MODEL::NONE);
11041104

1105-
/*!\brief KIND_FEM_DG_SHOCK \n DESCRIPTION: Specify shock capturing method for DG OPTIONS: see \link ShockCapturingDG_Map \endlink \n DEFAULT: NO_SHOCK_CAPTURING \ingroup Config*/
1106-
addEnumOption("KIND_FEM_DG_SHOCK", Kind_FEM_DG_Shock, ShockCapturingDG_Map, NO_SHOCK_CAPTURING);
1105+
/*!\brief KIND_FEM_DG_SHOCK \n DESCRIPTION: Specify shock capturing method for DG OPTIONS: see \link ShockCapturingDG_Map \endlink \n DEFAULT: NONE \ingroup Config*/
1106+
addEnumOption("KIND_FEM_DG_SHOCK", Kind_FEM_Shock_Capturing_DG, ShockCapturingDG_Map, FEM_SHOCK_CAPTURING_DG::NONE);
11071107

11081108
/*!\brief KIND_VERIFICATION_SOLUTION \n DESCRIPTION: Specify the verification solution OPTIONS: see \link Verification_Solution_Map \endlink \n DEFAULT: NO_VERIFICATION_SOLUTION \ingroup Config*/
1109-
addEnumOption("KIND_VERIFICATION_SOLUTION", Kind_Verification_Solution, Verification_Solution_Map, NO_VERIFICATION_SOLUTION);
1109+
addEnumOption("KIND_VERIFICATION_SOLUTION", Kind_Verification_Solution, Verification_Solution_Map, VERIFICATION_SOLUTION::NONE);
11101110

11111111
/*!\brief KIND_MATRIX_COLORING \n DESCRIPTION: Specify the method for matrix coloring for Jacobian computations OPTIONS: see \link MatrixColoring_Map \endlink \n DEFAULT GREEDY_COLORING \ingroup Config*/
11121112
addEnumOption("KIND_MATRIX_COLORING", Kind_Matrix_Coloring, MatrixColoring_Map, GREEDY_COLORING);
@@ -5824,12 +5824,12 @@ void CConfig::SetOutput(SU2_COMPONENT val_software, unsigned short val_izone) {
58245824
case MAIN_SOLVER::FEM_LES:
58255825
if (Kind_Regime == ENUM_REGIME::COMPRESSIBLE) cout << "Compressible LES equations." << endl;
58265826
if (Kind_Regime == ENUM_REGIME::INCOMPRESSIBLE) cout << "Incompressible LES equations." << endl;
5827-
cout << "Subgrid Scale model: ";
5827+
cout << "LES Subgrid Scale model: ";
58285828
switch (Kind_SGS_Model) {
5829-
case IMPLICIT_LES: cout << "Implicit LES" << endl; break;
5830-
case SMAGORINSKY: cout << "Smagorinsky " << endl; break;
5831-
case WALE: cout << "WALE" << endl; break;
5832-
case VREMAN: cout << "VREMAN" << endl; break;
5829+
case TURB_SGS_MODEL::IMPLICIT_LES: cout << "Implicit LES" << endl; break;
5830+
case TURB_SGS_MODEL::SMAGORINSKY: cout << "Smagorinsky " << endl; break;
5831+
case TURB_SGS_MODEL::WALE: cout << "WALE" << endl; break;
5832+
case TURB_SGS_MODEL::VREMAN: cout << "VREMAN" << endl; break;
58335833
default:
58345834
SU2_MPI::Error("Subgrid Scale model not specified.", CURRENT_FUNCTION);
58355835

SU2_CFD/src/output/CFlowCompFEMOutput.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ void CFlowCompFEMOutput::SetVolumeOutputFields(CConfig *config){
151151
AddVolumeOutput("LAMINAR_VISCOSITY", "Laminar_Viscosity", "PRIMITIVE", "Laminar viscosity");
152152
}
153153

154-
if (config->GetKind_Solver() == MAIN_SOLVER::FEM_LES && (config->GetKind_SGS_Model() != IMPLICIT_LES)) {
154+
if (config->GetKind_Solver() == MAIN_SOLVER::FEM_LES && (config->GetKind_SGS_Model() != TURB_SGS_MODEL::IMPLICIT_LES)) {
155155
AddVolumeOutput("EDDY_VISCOSITY", "Eddy_Viscosity", "PRIMITIVE", "Turbulent eddy viscosity");
156156
}
157157
}
@@ -221,7 +221,7 @@ void CFlowCompFEMOutput::LoadVolumeDataFEM(CConfig *config, CGeometry *geometry,
221221
if (config->GetKind_Solver() == MAIN_SOLVER::FEM_NAVIER_STOKES){
222222
SetVolumeOutputValue("LAMINAR_VISCOSITY", index, DGFluidModel->GetLaminarViscosity());
223223
}
224-
if ((config->GetKind_Solver() == MAIN_SOLVER::FEM_LES) && (config->GetKind_SGS_Model() != IMPLICIT_LES)){
224+
if ((config->GetKind_Solver() == MAIN_SOLVER::FEM_LES) && (config->GetKind_SGS_Model() != TURB_SGS_MODEL::IMPLICIT_LES)){
225225
// todo: Export Eddy instead of Laminar viscosity
226226
SetVolumeOutputValue("EDDY_VISCOSITY", index, DGFluidModel->GetLaminarViscosity());
227227
}

SU2_CFD/src/solvers/CFEM_DG_EulerSolver.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5754,7 +5754,11 @@ void CFEM_DG_EulerSolver::Shock_Capturing_DG(CConfig *config,
57545754

57555755
/*--- Run shock capturing algorithm ---*/
57565756
switch( config->GetKind_FEM_DG_Shock() ) {
5757-
case NONE:
5757+
case FEM_SHOCK_CAPTURING_DG::NONE:
5758+
break;
5759+
case FEM_SHOCK_CAPTURING_DG::PERSSON:
5760+
// to be done
5761+
//Shock_Capturing_DG_Persson(elemBeg, elemEnd, workArray);
57585762
break;
57595763
}
57605764
}

SU2_CFD/src/solvers/CFEM_DG_NSSolver.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -117,22 +117,22 @@ CFEM_DG_NSSolver::CFEM_DG_NSSolver(CGeometry *geometry, CConfig *config, unsigne
117117
SGSModelUsed accordingly. */
118118
switch( config->GetKind_SGS_Model() ) {
119119

120-
case IMPLICIT_LES:
120+
case TURB_SGS_MODEL::IMPLICIT_LES:
121121
SGSModel = nullptr;
122122
SGSModelUsed = false;
123123
break;
124124

125-
case SMAGORINSKY:
125+
case TURB_SGS_MODEL::SMAGORINSKY:
126126
SGSModel = new CSmagorinskyModel;
127127
SGSModelUsed = true;
128128
break;
129129

130-
case WALE:
130+
case TURB_SGS_MODEL::WALE:
131131
SGSModel = new CWALEModel;
132132
SGSModelUsed = true;
133133
break;
134134

135-
case VREMAN:
135+
case TURB_SGS_MODEL::VREMAN:
136136
SGSModel = new CVremanModel;
137137
SGSModelUsed = true;
138138
break;
@@ -2975,9 +2975,9 @@ void CFEM_DG_NSSolver::Shock_Capturing_DG(CConfig *config,
29752975

29762976
/*--- Run shock capturing algorithm ---*/
29772977
switch( config->GetKind_FEM_DG_Shock() ) {
2978-
case NONE:
2978+
case FEM_SHOCK_CAPTURING_DG::NONE:
29792979
break;
2980-
case PERSSON:
2980+
case FEM_SHOCK_CAPTURING_DG::PERSSON:
29812981
Shock_Capturing_DG_Persson(elemBeg, elemEnd, workArray);
29822982
break;
29832983
}

0 commit comments

Comments
 (0)