Skip to content

Commit 73538a1

Browse files
bigfootedEvertBunschotenpcarruscag
authored
Consistent mass fluxes between bulk flow and scalar solvers and boundedness correction (#1697)
* working commit for incompressible * Added correction factor to scalar convective residual to negate the effects of nonzero flow divergence on the scalar solver residual * Changed SCALAR_ADVECTION upwind option to BOUNDED_SCALAR, added weak inlet boundary condition for BOUNDED_SCALAR option for the species solver Co-authored-by: Evert <evertbun@xs4all.nl> Co-authored-by: Pedro Gomes <38071223+pcarruscag@users.noreply.github.com>
1 parent e950c3e commit 73538a1

35 files changed

Lines changed: 837 additions & 503 deletions

Common/include/CConfig.hpp

Lines changed: 49 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -531,28 +531,34 @@ class CConfig {
531531
Kind_ConvNumScheme_AdjTurb, /*!< \brief Centered or upwind scheme for the adjoint turbulence model. */
532532
Kind_ConvNumScheme_Species, /*!< \brief Centered or upwind scheme for the species model. */
533533
Kind_ConvNumScheme_Template, /*!< \brief Centered or upwind scheme for the level set equation. */
534+
Kind_FEM, /*!< \brief Finite element scheme for the flow equations. */
535+
Kind_FEM_Flow, /*!< \brief Finite element scheme for the flow equations. */
536+
Kind_Matrix_Coloring; /*!< \brief Type of matrix coloring for sparse Jacobian computation. */
537+
538+
CENTERED
534539
Kind_Centered, /*!< \brief Centered scheme. */
535540
Kind_Centered_Flow, /*!< \brief Centered scheme for the flow equations. */
536541
Kind_Centered_AdjFlow, /*!< \brief Centered scheme for the adjoint flow equations. */
537542
Kind_Centered_Turb, /*!< \brief Centered scheme for the turbulence model. */
538543
Kind_Centered_AdjTurb, /*!< \brief Centered scheme for the adjoint turbulence model. */
539544
Kind_Centered_Species, /*!< \brief Centered scheme for the species model. */
540-
Kind_Centered_Template, /*!< \brief Centered scheme for the template model. */
545+
Kind_Centered_Template; /*!< \brief Centered scheme for the template model. */
546+
547+
548+
FEM_SHOCK_CAPTURING_DG Kind_FEM_Shock_Capturing_DG; /*!< \brief Shock capturing method for the FEM DG solver. */
549+
BGS_RELAXATION Kind_BGS_RelaxMethod; /*!< \brief Kind of relaxation method for Block Gauss Seidel method in FSI problems. */
550+
bool ReconstructionGradientRequired; /*!< \brief Enable or disable a second gradient calculation for upwind reconstruction only. */
551+
bool LeastSquaresRequired; /*!< \brief Enable or disable memory allocation for least-squares gradient methods. */
552+
bool Energy_Equation; /*!< \brief Solve the energy equation for incompressible flows. */
553+
554+
UPWIND
541555
Kind_Upwind, /*!< \brief Upwind scheme. */
542556
Kind_Upwind_Flow, /*!< \brief Upwind scheme for the flow equations. */
543557
Kind_Upwind_AdjFlow, /*!< \brief Upwind scheme for the adjoint flow equations. */
544558
Kind_Upwind_Turb, /*!< \brief Upwind scheme for the turbulence model. */
545559
Kind_Upwind_AdjTurb, /*!< \brief Upwind scheme for the adjoint turbulence model. */
546560
Kind_Upwind_Species, /*!< \brief Upwind scheme for the species model. */
547-
Kind_Upwind_Template, /*!< \brief Upwind scheme for the template model. */
548-
Kind_FEM, /*!< \brief Finite element scheme for the flow equations. */
549-
Kind_FEM_Flow, /*!< \brief Finite element scheme for the flow equations. */
550-
Kind_Matrix_Coloring; /*!< \brief Type of matrix coloring for sparse Jacobian computation. */
551-
FEM_SHOCK_CAPTURING_DG Kind_FEM_Shock_Capturing_DG; /*!< \brief Shock capturing method for the FEM DG solver. */
552-
BGS_RELAXATION Kind_BGS_RelaxMethod; /*!< \brief Kind of relaxation method for Block Gauss Seidel method in FSI problems. */
553-
bool ReconstructionGradientRequired; /*!< \brief Enable or disable a second gradient calculation for upwind reconstruction only. */
554-
bool LeastSquaresRequired; /*!< \brief Enable or disable memory allocation for least-squares gradient methods. */
555-
bool Energy_Equation; /*!< \brief Solve the energy equation for incompressible flows. */
561+
Kind_Upwind_Template; /*!< \brief Upwind scheme for the template model. */
556562

557563
bool MUSCL, /*!< \brief MUSCL scheme .*/
558564
MUSCL_Flow, /*!< \brief MUSCL scheme for the flow equations.*/
@@ -1103,7 +1109,7 @@ class CConfig {
11031109
hs_axes[3], /*!< \brief principal axes (x, y, z) of the ellipsoid containing the heat source. */
11041110
hs_center[3]; /*!< \brief position of the center of the heat source. */
11051111

1106-
unsigned short Riemann_Solver_FEM; /*!< \brief Riemann solver chosen for the DG method. */
1112+
UPWIND Riemann_Solver_FEM; /*!< \brief Riemann solver chosen for the DG method. */
11071113
su2double Quadrature_Factor_Straight; /*!< \brief Factor applied during quadrature of elements with a constant Jacobian. */
11081114
su2double Quadrature_Factor_Curved; /*!< \brief Factor applied during quadrature of elements with a non-constant Jacobian. */
11091115
su2double Quadrature_Factor_Time_ADER_DG; /*!< \brief Factor applied during quadrature in time for ADER-DG. */
@@ -1274,7 +1280,7 @@ class CConfig {
12741280

12751281
void addStringListOption(const string name, unsigned short & num_marker, string* & option_field);
12761282

1277-
void addConvectOption(const string name, unsigned short & space_field, unsigned short & centered_field, unsigned short & upwind_field);
1283+
void addConvectOption(const string name, unsigned short & space_field, CENTERED & centered_field, UPWIND & upwind_field);
12781284

12791285
void addConvectFEMOption(const string name, unsigned short & space_field, unsigned short & fem_field);
12801286

@@ -2300,8 +2306,8 @@ class CConfig {
23002306
* \param[in] val_muscl - Define if we apply a MUSCL scheme or not.
23012307
* \param[in] val_kind_fem - If FEM, what kind of FEM discretization.
23022308
*/
2303-
void SetKind_ConvNumScheme(unsigned short val_kind_convnumscheme, unsigned short val_kind_centered,
2304-
unsigned short val_kind_upwind, LIMITER val_kind_slopelimit,
2309+
void SetKind_ConvNumScheme(unsigned short val_kind_convnumscheme, CENTERED val_kind_centered,
2310+
UPWIND val_kind_upwind, LIMITER val_kind_slopelimit,
23052311
bool val_muscl, unsigned short val_kind_fem);
23062312

23072313
/*!
@@ -3688,7 +3694,7 @@ class CConfig {
36883694
*/
36893695
bool GetAUSMMethod(void) const {
36903696
switch (Kind_Upwind_Flow) {
3691-
case AUSM : case AUSMPLUSUP: case AUSMPLUSUP2: case AUSMPWPLUS:
3697+
case UPWIND::AUSM : case UPWIND::AUSMPLUSUP: case UPWIND::AUSMPLUSUP2: case UPWIND::AUSMPWPLUS:
36923698
return true;
36933699
default:
36943700
return false;
@@ -4341,7 +4347,7 @@ class CConfig {
43414347
* linearized) that is being solved.
43424348
* \return Kind of center scheme for the convective terms.
43434349
*/
4344-
unsigned short GetKind_Centered(void) const { return Kind_Centered; }
4350+
CENTERED GetKind_Centered(void) const { return Kind_Centered; }
43454351

43464352
/*!
43474353
* \brief Get kind of upwind scheme for the convective terms.
@@ -4350,7 +4356,7 @@ class CConfig {
43504356
* linearized) that is being solved.
43514357
* \return Kind of upwind scheme for the convective terms.
43524358
*/
4353-
unsigned short GetKind_Upwind(void) const { return Kind_Upwind; }
4359+
UPWIND GetKind_Upwind(void) const { return Kind_Upwind; }
43544360

43554361
/*!
43564362
* \brief Get if the upwind scheme used MUSCL or not.
@@ -4521,7 +4527,7 @@ class CConfig {
45214527
* during the computation.
45224528
* \return Kind of center convective numerical scheme for the flow equations.
45234529
*/
4524-
ENUM_CENTERED GetKind_Centered_Flow(void) const { return static_cast<ENUM_CENTERED>(Kind_Centered_Flow); }
4530+
CENTERED GetKind_Centered_Flow(void) const { return Kind_Centered_Flow; }
45254531

45264532
/*!
45274533
* \brief Get the kind of center convective numerical scheme for the plasma equations.
@@ -4537,7 +4543,7 @@ class CConfig {
45374543
* during the computation.
45384544
* \return Kind of upwind convective numerical scheme for the flow equations.
45394545
*/
4540-
unsigned short GetKind_Upwind_Flow(void) const { return Kind_Upwind_Flow; }
4546+
UPWIND GetKind_Upwind_Flow(void) const { return Kind_Upwind_Flow; }
45414547

45424548
/*!
45434549
* \brief Get the kind of finite element convective numerical scheme for the flow equations.
@@ -4666,15 +4672,15 @@ class CConfig {
46664672
* during the computation.
46674673
* \return Kind of center convective numerical scheme for the adjoint flow equations.
46684674
*/
4669-
unsigned short GetKind_Centered_AdjFlow(void) const { return Kind_Centered_AdjFlow; }
4675+
CENTERED GetKind_Centered_AdjFlow(void) const { return Kind_Centered_AdjFlow; }
46704676

46714677
/*!
46724678
* \brief Get the kind of upwind convective numerical scheme for the adjoint flow equations.
46734679
* \note This value is obtained from the config file, and it is constant
46744680
* during the computation.
46754681
* \return Kind of upwind convective numerical scheme for the adjoint flow equations.
46764682
*/
4677-
unsigned short GetKind_Upwind_AdjFlow(void) const { return Kind_Upwind_AdjFlow; }
4683+
UPWIND GetKind_Upwind_AdjFlow(void) const { return Kind_Upwind_AdjFlow; }
46784684

46794685
/*!
46804686
* \brief Value of the calibrated constant for the high order method (center scheme).
@@ -4718,15 +4724,15 @@ class CConfig {
47184724
* during the computation.
47194725
* \return Kind of center convective numerical scheme for the turbulence equations.
47204726
*/
4721-
unsigned short GetKind_Centered_Turb(void) const { return Kind_Centered_Turb; }
4727+
CENTERED GetKind_Centered_Turb(void) const { return Kind_Centered_Turb; }
47224728

47234729
/*!
47244730
* \brief Get the kind of upwind convective numerical scheme for the turbulence equations.
47254731
* \note This value is obtained from the config file, and it is constant
47264732
* during the computation.
47274733
* \return Kind of upwind convective numerical scheme for the turbulence equations.
47284734
*/
4729-
unsigned short GetKind_Upwind_Turb(void) const { return Kind_Upwind_Turb; }
4735+
UPWIND GetKind_Upwind_Turb(void) const { return Kind_Upwind_Turb; }
47304736

47314737
/*!
47324738
* \brief Get the kind of integration scheme (explicit or implicit)
@@ -4770,15 +4776,30 @@ class CConfig {
47704776
* during the computation.
47714777
* \return Kind of center convective numerical scheme for the Species equations.
47724778
*/
4773-
unsigned short GetKind_Centered_Species() const { return Kind_Centered_Species; }
4779+
CENTERED GetKind_Centered_Species() const { return Kind_Centered_Species; }
47744780

47754781
/*!
47764782
* \brief Get the kind of upwind convective numerical scheme for the Species equations.
47774783
* \note This value is obtained from the config file, and it is constant
47784784
* during the computation.
47794785
* \return Kind of upwind convective numerical scheme for the Species equations.
47804786
*/
4781-
unsigned short GetKind_Upwind_Species() const { return Kind_Upwind_Species; }
4787+
UPWIND GetKind_Upwind_Species() const { return Kind_Upwind_Species; }
4788+
4789+
/*!
4790+
* \brief Returns true if bounded scalar mode is on for species transport.
4791+
*/
4792+
bool GetBounded_Species() const { return (Kind_Upwind_Species == UPWIND::BOUNDED_SCALAR); }
4793+
4794+
/*!
4795+
* \brief Returns true if bounded scalar mode is on for turbulence transport.
4796+
*/
4797+
bool GetBounded_Turb() const { return (Kind_Upwind_Turb == UPWIND::BOUNDED_SCALAR); }
4798+
4799+
/*!
4800+
* \brief Returns true if bounded scalar mode is used for any equation.
4801+
*/
4802+
bool GetBounded_Scalar() const { return GetBounded_Species() || GetBounded_Turb(); }
47824803

47834804
/*!
47844805
* \brief Get the kind of convective numerical scheme for the heat equation.
@@ -4794,15 +4815,15 @@ class CConfig {
47944815
* during the computation.
47954816
* \return Kind of center convective numerical scheme for the adjoint turbulence equations.
47964817
*/
4797-
unsigned short GetKind_Centered_AdjTurb(void) const { return Kind_Centered_AdjTurb; }
4818+
CENTERED GetKind_Centered_AdjTurb(void) const { return Kind_Centered_AdjTurb; }
47984819

47994820
/*!
48004821
* \brief Get the kind of upwind convective numerical scheme for the adjoint turbulence equations.
48014822
* \note This value is obtained from the config file, and it is constant
48024823
* during the computation.
48034824
* \return Kind of upwind convective numerical scheme for the adjoint turbulence equations.
48044825
*/
4805-
unsigned short GetKind_Upwind_AdjTurb(void) const { return Kind_Upwind_AdjTurb; }
4826+
UPWIND GetKind_Upwind_AdjTurb(void) const { return Kind_Upwind_AdjTurb; }
48064827

48074828
/*!
48084829
* \brief Provides information about the way in which the turbulence will be treated by the
@@ -8898,7 +8919,7 @@ class CConfig {
88988919
* \note This value is obtained from the config file, and it is constant during the computation.
88998920
* \return Kind of Riemann solver for the DG method (FEM flow solver).
89008921
*/
8901-
unsigned short GetRiemann_Solver_FEM(void) const { return Riemann_Solver_FEM; }
8922+
UPWIND GetRiemann_Solver_FEM(void) const { return Riemann_Solver_FEM; }
89028923

89038924
/*!
89048925
* \brief Get the factor applied during quadrature of straight elements.

Common/include/option_structure.hpp

Lines changed: 56 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -809,67 +809,69 @@ static const MapType<std::string, ENUM_GUST_DIR> Gust_Dir_Map = {
809809
/*!
810810
* \brief Types of centered spatial discretizations
811811
*/
812-
enum ENUM_CENTERED {
813-
NO_CENTERED = 0, /*!< \brief No centered scheme is used. */
814-
JST = 1, /*!< \brief Jameson-Smith-Turkel centered numerical method. */
815-
LAX = 2, /*!< \brief Lax-Friedrich centered numerical method. */
816-
JST_MAT = 3, /*!< \brief JST with matrix dissipation. */
817-
JST_KE = 4 /*!< \brief Kinetic Energy preserving Jameson-Smith-Turkel centered numerical method. */
812+
enum class CENTERED {
813+
NONE, /*!< \brief No centered scheme is used. */
814+
JST, /*!< \brief Jameson-Smith-Turkel centered numerical method. */
815+
LAX, /*!< \brief Lax-Friedrich centered numerical method. */
816+
JST_MAT, /*!< \brief JST with matrix dissipation. */
817+
JST_KE /*!< \brief Kinetic Energy preserving Jameson-Smith-Turkel centered numerical method. */
818818
};
819-
static const MapType<std::string, ENUM_CENTERED> Centered_Map = {
820-
MakePair("NONE", NO_CENTERED)
821-
MakePair("JST", JST)
822-
MakePair("JST_KE", JST_KE)
823-
MakePair("JST_MAT", JST_MAT)
824-
MakePair("LAX-FRIEDRICH", LAX)
819+
static const MapType<std::string, CENTERED> Centered_Map = {
820+
MakePair("NONE", CENTERED::NONE)
821+
MakePair("JST", CENTERED::JST)
822+
MakePair("JST_KE", CENTERED::JST_KE)
823+
MakePair("JST_MAT", CENTERED::JST_MAT)
824+
MakePair("LAX-FRIEDRICH", CENTERED::LAX)
825825
};
826826

827827

828-
// If you add to ENUM_UPWIND, you must also add the option to ENUM_CONVECTIVE
828+
// If you add to UPWIND, you must also add the option to ENUM_CONVECTIVE
829829
/*!
830830
* \brief Types of upwind spatial discretizations
831831
*/
832-
enum ENUM_UPWIND {
833-
NO_UPWIND = 0, /*!< \brief No upwind scheme is used. */
834-
ROE = 1, /*!< \brief Roe's upwind numerical method. */
835-
SCALAR_UPWIND = 2, /*!< \brief Scalar upwind numerical method. */
836-
AUSM = 3, /*!< \brief AUSM numerical method. */
837-
HLLC = 4, /*!< \brief HLLC numerical method. */
838-
SW = 5, /*!< \brief Steger-Warming method. */
839-
MSW = 6, /*!< \brief Modified Steger-Warming method. */
840-
TURKEL = 7, /*!< \brief Roe-Turkel's upwind numerical method. */
841-
SLAU = 8, /*!< \brief Simple Low-Dissipation AUSM numerical method. */
842-
CUSP = 9, /*!< \brief Convective upwind and split pressure numerical method. */
843-
CONVECTIVE_TEMPLATE = 10, /*!< \brief Template for new numerical method . */
844-
L2ROE = 11, /*!< \brief L2ROE numerical method . */
845-
LMROE = 12, /*!< \brief Rieper's Low Mach ROE numerical method . */
846-
SLAU2 = 13, /*!< \brief Simple Low-Dissipation AUSM 2 numerical method. */
847-
FDS = 14, /*!< \brief Flux difference splitting upwind method (incompressible flows). */
848-
LAX_FRIEDRICH = 15, /*!< \brief Lax-Friedrich numerical method. */
849-
AUSMPLUSUP = 16, /*!< \brief AUSM+ -up numerical method (All Speed) */
850-
AUSMPLUSUP2 = 17, /*!< \brief AUSM+ -up2 numerical method (All Speed) */
851-
AUSMPWPLUS = 18 /*!< \brief AUSMplus numerical method. (MAYBE for TNE2 ONLY)*/
852-
};
853-
static const MapType<std::string, ENUM_UPWIND> Upwind_Map = {
854-
MakePair("NONE", NO_UPWIND)
855-
MakePair("ROE", ROE)
856-
MakePair("TURKEL_PREC", TURKEL)
857-
MakePair("AUSM", AUSM)
858-
MakePair("AUSMPLUSUP", AUSMPLUSUP)
859-
MakePair("AUSMPLUSUP2", AUSMPLUSUP2)
860-
MakePair("AUSMPWPLUS", AUSMPWPLUS)
861-
MakePair("SLAU", SLAU)
862-
MakePair("HLLC", HLLC)
863-
MakePair("SW", SW)
864-
MakePair("MSW", MSW)
865-
MakePair("CUSP", CUSP)
866-
MakePair("SCALAR_UPWIND", SCALAR_UPWIND)
867-
MakePair("CONVECTIVE_TEMPLATE", CONVECTIVE_TEMPLATE)
868-
MakePair("L2ROE", L2ROE)
869-
MakePair("LMROE", LMROE)
870-
MakePair("SLAU2", SLAU2)
871-
MakePair("FDS", FDS)
872-
MakePair("LAX-FRIEDRICH", LAX_FRIEDRICH)
832+
enum class UPWIND {
833+
NONE, /*!< \brief No upwind scheme is used. */
834+
ROE, /*!< \brief Roe's upwind numerical method. */
835+
SCALAR_UPWIND, /*!< \brief Scalar upwind numerical method. */
836+
AUSM, /*!< \brief AUSM numerical method. */
837+
HLLC, /*!< \brief HLLC numerical method. */
838+
SW, /*!< \brief Steger-Warming method. */
839+
MSW, /*!< \brief Modified Steger-Warming method. */
840+
TURKEL, /*!< \brief Roe-Turkel's upwind numerical method. */
841+
SLAU, /*!< \brief Simple Low-Dissipation AUSM numerical method. */
842+
CUSP, /*!< \brief Convective upwind and split pressure numerical method. */
843+
CONVECTIVE_TEMPLATE, /*!< \brief Template for new numerical method . */
844+
L2ROE, /*!< \brief L2ROE numerical method . */
845+
LMROE, /*!< \brief Rieper's Low Mach ROE numerical method . */
846+
SLAU2, /*!< \brief Simple Low-Dissipation AUSM 2 numerical method. */
847+
FDS, /*!< \brief Flux difference splitting upwind method (incompressible flows). */
848+
LAX_FRIEDRICH, /*!< \brief Lax-Friedrich numerical method. */
849+
AUSMPLUSUP, /*!< \brief AUSM+ -up numerical method (All Speed) */
850+
AUSMPLUSUP2, /*!< \brief AUSM+ -up2 numerical method (All Speed) */
851+
AUSMPWPLUS, /*!< \brief AUSMplus numerical method. (MAYBE for TNE2 ONLY)*/
852+
BOUNDED_SCALAR /*!< \brief Scalar advection numerical method. */
853+
};
854+
static const MapType<std::string, UPWIND> Upwind_Map = {
855+
MakePair("NONE", UPWIND::NONE)
856+
MakePair("ROE", UPWIND::ROE)
857+
MakePair("TURKEL_PREC", UPWIND::TURKEL)
858+
MakePair("AUSM", UPWIND::AUSM)
859+
MakePair("AUSMPLUSUP", UPWIND::AUSMPLUSUP)
860+
MakePair("AUSMPLUSUP2", UPWIND::AUSMPLUSUP2)
861+
MakePair("AUSMPWPLUS", UPWIND::AUSMPWPLUS)
862+
MakePair("SLAU", UPWIND::SLAU)
863+
MakePair("HLLC", UPWIND::HLLC)
864+
MakePair("SW", UPWIND::SW)
865+
MakePair("MSW", UPWIND::MSW)
866+
MakePair("CUSP", UPWIND::CUSP)
867+
MakePair("SCALAR_UPWIND", UPWIND::SCALAR_UPWIND)
868+
MakePair("BOUNDED_SCALAR", UPWIND::BOUNDED_SCALAR)
869+
MakePair("CONVECTIVE_TEMPLATE", UPWIND::CONVECTIVE_TEMPLATE)
870+
MakePair("L2ROE", UPWIND::L2ROE)
871+
MakePair("LMROE", UPWIND::LMROE)
872+
MakePair("SLAU2", UPWIND::SLAU2)
873+
MakePair("FDS", UPWIND::FDS)
874+
MakePair("LAX-FRIEDRICH", UPWIND::LAX_FRIEDRICH)
873875
};
874876

875877
/*!

Common/include/option_structure.inl

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -406,11 +406,11 @@ public:
406406
class COptionConvect : public COptionBase {
407407
string name; // identifier for the option
408408
unsigned short & space;
409-
unsigned short & centered;
410-
unsigned short & upwind;
409+
CENTERED & centered;
410+
UPWIND & upwind;
411411

412412
public:
413-
COptionConvect(string option_field_name, unsigned short & space_field, unsigned short & centered_field, unsigned short & upwind_field)
413+
COptionConvect(string option_field_name, unsigned short & space_field, CENTERED & centered_field, UPWIND & upwind_field)
414414
: name(option_field_name), space(space_field), centered(centered_field), upwind(upwind_field) { }
415415

416416
string SetValue(const vector<string>& option_value) override {
@@ -424,13 +424,13 @@ public:
424424
if (Centered_Map.count(option_value[0])) {
425425
this->space = Space_Map.find("SPACE_CENTERED")->second;
426426
this->centered = Centered_Map.find(option_value[0])->second;
427-
this->upwind = NO_UPWIND;
427+
this->upwind = UPWIND::NONE;
428428
return "";
429429
}
430430
if (Upwind_Map.count(option_value[0])) {
431431
this->space = Space_Map.find("SPACE_UPWIND")->second;
432432
this->upwind = Upwind_Map.find(option_value[0])->second;
433-
this->centered = NO_CENTERED;
433+
this->centered = CENTERED::NONE;
434434
return "";
435435
}
436436
// Make them defined in case something weird happens
@@ -440,8 +440,8 @@ public:
440440
}
441441

442442
void SetDefault() override {
443-
this->centered = NO_CENTERED;
444-
this->upwind = NO_UPWIND;
443+
this->centered = CENTERED::NONE;
444+
this->upwind = UPWIND::NONE;
445445
this->space = NO_CONVECTIVE;
446446
}
447447
};

0 commit comments

Comments
 (0)