Skip to content

Commit 69dbeba

Browse files
committed
fix reading un-init variable
1 parent a82c992 commit 69dbeba

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

SU2_CFD/src/solvers/CIncEulerSolver.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,8 @@ CIncEulerSolver::CIncEulerSolver(CGeometry *geometry, CConfig *config, unsigned
211211

212212
/*--- Finally, check that the static arrays will be large enough (keep this
213213
* check at the bottom to make sure we consider the "final" values). ---*/
214-
if((nDim > MAXNDIM) || (nPrimVar > MAXNVAR) || (nSecondaryVar > MAXNVAR))
215-
SU2_MPI::Error("Oops! The CEulerSolver static array sizes are not large enough.",CURRENT_FUNCTION);
214+
if((nDim > MAXNDIM) || (nPrimVar > MAXNVAR))
215+
SU2_MPI::Error("Oops! The CIncEulerSolver static array sizes are not large enough.",CURRENT_FUNCTION);
216216
}
217217

218218
CIncEulerSolver::~CIncEulerSolver(void) {

SU2_CFD/src/solvers/CIncNSSolver.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,8 @@ CIncNSSolver::CIncNSSolver(CGeometry *geometry, CConfig *config, unsigned short
216216

217217
/*--- Finally, check that the static arrays will be large enough (keep this
218218
* check at the bottom to make sure we consider the "final" values). ---*/
219-
if((nDim > MAXNDIM) || (nPrimVar > MAXNVAR) || (nSecondaryVar > MAXNVAR))
220-
SU2_MPI::Error("Oops! The CEulerSolver static array sizes are not large enough.",CURRENT_FUNCTION);
219+
if((nDim > MAXNDIM) || (nPrimVar > MAXNVAR))
220+
SU2_MPI::Error("Oops! The CIncNSSolver static array sizes are not large enough.",CURRENT_FUNCTION);
221221
}
222222

223223
void CIncNSSolver::Preprocessing(CGeometry *geometry, CSolver **solver_container, CConfig *config, unsigned short iMesh, unsigned short iRKStep, unsigned short RunTime_EqSystem, bool Output) {

0 commit comments

Comments
 (0)