Skip to content

Commit 1087d45

Browse files
committed
addressing PR comments
1 parent e0b2b04 commit 1087d45

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

SU2_CFD/include/solvers/CNEMOEulerSolver.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,13 +208,13 @@ class CNEMOEulerSolver : public CFVMFlowSolverBase<CNEMOEulerVariable, COMPRESSI
208208
/*!
209209
* \brief Set all the conserved variables from the primitive vector..
210210
*/
211-
void RecomputeConservativeVector(su2double *U, const su2double *V);
211+
void RecomputeConservativeVector(su2double *U, const su2double *V) const;
212212

213213
/*!
214214
* \brief Check for unphysical points.
215215
* \return Boolean value of physical point
216216
*/
217-
bool CheckNonPhys(const su2double *V);
217+
bool CheckNonPhys(const su2double *V) const;
218218

219219
/*!
220220
* \brief Compute the pressure at the infinity.

SU2_CFD/src/solvers/CNEMOEulerSolver.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1022,18 +1022,19 @@ su2double CNEMOEulerSolver::ComputeConsistentExtrapolation(CNEMOGas *fluidmodel,
10221022
fluidmodel->SetTDStateRhosTTv(rhos, V[T_INDEX], V[TVE_INDEX]);
10231023

10241024
/*---Compute the secondary values ---*/
1025+
// This block of code copies a vector to corresponding pointer.
10251026
auto it = val_eves;
10261027
auto& ref = fluidmodel->ComputeSpeciesEve(V[TVE_INDEX]);
10271028
for (auto v : ref) {
10281029
*it = v; ++it;
10291030
}
1030-
val_eves = it;
1031+
10311032
val_gamma = fluidmodel->ComputeGamma();
10321033

10331034
return val_gamma;
10341035
}
10351036

1036-
void CNEMOEulerSolver::RecomputeConservativeVector(su2double *U, const su2double *V) {
1037+
void CNEMOEulerSolver::RecomputeConservativeVector(su2double *U, const su2double *V) const {
10371038

10381039
/*---Useful variables ---*/
10391040
vector<su2double> rhos;
@@ -1070,7 +1071,7 @@ void CNEMOEulerSolver::RecomputeConservativeVector(su2double *U, const su2double
10701071

10711072
}
10721073

1073-
bool CNEMOEulerSolver::CheckNonPhys(const su2double *V) {
1074+
bool CNEMOEulerSolver::CheckNonPhys(const su2double *V) const {
10741075

10751076
su2double Tmin, Tmax, Tvemin, Tvemax;
10761077

0 commit comments

Comments
 (0)