Skip to content

Commit 3bb2311

Browse files
last PR comments; temporarily take out mpp regression test
1 parent fe84ce4 commit 3bb2311

6 files changed

Lines changed: 17 additions & 30 deletions

File tree

.github/workflows/regression.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ jobs:
1919
config_set: [BaseMPI, ReverseMPI, ForwardMPI, BaseNoMPI, ReverseNoMPI, ForwardNoMPI, BaseOMP]
2020
include:
2121
- config_set: BaseMPI
22-
flags: '-Denable-pywrapper=true -Denable-tests=true -Denable-mpp=true --werror'
22+
flags: '-Denable-pywrapper=true -Denable-tests=true --werror'
2323
- config_set: ReverseMPI
2424
flags: '-Denable-autodiff=true -Denable-normal=false -Denable-pywrapper=true -Denable-tests=true --werror'
2525
- config_set: ForwardMPI
2626
flags: '-Denable-directdiff=true -Denable-normal=false -Denable-tests=true --werror'
2727
- config_set: BaseNoMPI
28-
flags: '-Denable-pywrapper=true -Dwith-mpi=disabled -Denable-tests=true -Denable-mpp=true --werror'
28+
flags: '-Denable-pywrapper=true -Dwith-mpi=disabled -Denable-tests=true --werror'
2929
- config_set: ReverseNoMPI
3030
flags: '-Denable-autodiff=true -Denable-normal=false -Dwith-mpi=disabled -Denable-pywrapper=true -Denable-tests=true --werror'
3131
- config_set: ForwardNoMPI

Common/include/CConfig.hpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1158,9 +1158,6 @@ class CConfig {
11581158
string GasModel, /*!< \brief Gas Model. */
11591159
*Wall_Catalytic; /*!< \brief Pointer to catalytic walls. */
11601160

1161-
bool interpolate_solution; /*!< \brief Flag for solution interpolation */
1162-
string Interpolated_Restart_FileName; /*!< \brief Name of interpolated restart file. */
1163-
11641161
/*!
11651162
* \brief Set the default values of config options not set in the config file using another config object.
11661163
* \param config - Config object to use the default values from.
@@ -5172,11 +5169,6 @@ class CConfig {
51725169
*/
51735170
bool GetMonoatomic(void) const { return monoatomic; }
51745171

5175-
/*!
5176-
* \brief Indicates if solution interpolation will be used.
5177-
*/
5178-
bool GetSolutionInterpolation(void) const { return interpolate_solution; }
5179-
51805172
/*!
51815173
* \brief Information about computing and plotting the equivalent area distribution.
51825174
* \return <code>TRUE</code> or <code>FALSE</code> depending if we are computing the equivalent area.

Common/src/CConfig.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1162,8 +1162,6 @@ void CConfig::SetConfig_Options() {
11621162
addBoolOption("IONIZATION", ionization, false);
11631163
/* DESCRIPTION: Specify if there is VT transfer residual limiting */
11641164
addBoolOption("VT_RESIDUAL_LIMITING", vt_transfer_res_limit, false);
1165-
/* DESCRIPTION: Specify if the gas is monoatomic */
1166-
addBoolOption("MONOATOMIC", monoatomic, false);
11671165
/* DESCRIPTION: List of catalytic walls */
11681166
addStringListOption("CATALYTIC_WALL", nWall_Catalytic, Wall_Catalytic);
11691167
/*!\brief MARKER_MONITORING\n DESCRIPTION: Marker(s) of the surface where evaluate the non-dimensional coefficients \ingroup Config*/
@@ -3557,10 +3555,6 @@ void CConfig::SetPostprocessing(unsigned short val_software, unsigned short val_
35573555
SU2_MPI::Error("ARGON is not working with SU2_NONEQ fluid model!", CURRENT_FUNCTION);
35583556
}
35593557

3560-
if (GetGasModel() == "ARGON" && GetMonoatomic() == false){
3561-
SU2_MPI::Error("If you're running an argon mixture, set MONOATOMIC= YES in the .cfg file!", CURRENT_FUNCTION);
3562-
}
3563-
35643558
if (GetKind_FluidModel() == MUTATIONPP && GetFrozen() == true){
35653559
SU2_MPI::Error("The option of FROZEN_MIXTURE is not yet working the Mutation++ support.", CURRENT_FUNCTION);
35663560
}
@@ -4985,6 +4979,7 @@ void CConfig::SetPostprocessing(unsigned short val_software, unsigned short val_
49854979
/*--- Specifying a deforming surface requires a mesh deformation solver. ---*/
49864980
if (GetSurface_Movement(DEFORMING)) Deform_Mesh = true;
49874981

4982+
if (GetGasModel() == "ARGON") monoatomic = true;
49884983
}
49894984

49904985
void CConfig::SetMarkers(unsigned short val_software) {

SU2_CFD/src/solvers/CNEMOEulerSolver.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -223,16 +223,16 @@ CNEMOEulerSolver::CNEMOEulerSolver(CGeometry *geometry, CConfig *config,
223223
nonPhys = nodes->SetPrimVar(iPoint, FluidModel);
224224

225225
/*--- Set mixture state ---*/
226-
FluidModel->SetTDStatePTTv(Pressure_Inf, MassFrac_Inf, Temperature_Inf, Temperature_ve_Inf);
227-
226+
FluidModel->SetTDStatePTTv(Pressure_Inf, MassFrac_Inf, Temperature_Inf, Temperature_ve_Inf);
227+
228228
/*--- Compute other freestream quantities ---*/
229229
Density_Inf = FluidModel->GetDensity();
230230
Soundspeed_Inf = FluidModel->GetSoundSpeed();
231231

232232
sqvel = 0.0;
233233
for (iDim = 0; iDim < nDim; iDim++){
234234
sqvel += Mvec_Inf[iDim]*Soundspeed_Inf * Mvec_Inf[iDim]*Soundspeed_Inf;
235-
}
235+
}
236236
const auto& Energies_Inf = FluidModel->ComputeMixtureEnergies();
237237

238238
/*--- Initialize Solution & Solution_Old vectors ---*/

SU2_CFD/src/variables/CNEMOEulerVariable.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ CNEMOEulerVariable::CNEMOEulerVariable(su2double val_pressure,
144144

145145
/*--- Loop over all points --*/
146146
for(unsigned long iPoint = 0; iPoint < nPoint; ++iPoint){
147-
147+
148148
/*--- Reset velocity^2 [m2/s2] to zero ---*/
149149
sqvel = 0.0;
150150

TestCases/parallel_regression.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -94,16 +94,16 @@ def main():
9494
test_list.append(viscwedge)
9595

9696
# Viscous single wedge with Mutation++
97-
viscwedge_mpp = TestCase('viscwedge_mpp')
98-
viscwedge_mpp.cfg_dir = "nonequilibrium/viscwedge_mpp"
99-
viscwedge_mpp.cfg_file = "viscwedge_mpp.cfg"
100-
viscwedge_mpp.test_iter = 10
101-
viscwedge_mpp.test_vals = [-20.608474, -20.586446,-20.707524, -5.171304,-5.696067,-1.548350,-2.071211,2.231054,-2.545494]
102-
viscwedge_mpp.su2_exec = "mpirun -n 2 SU2_CFD"
103-
viscwedge_mpp.timeout = 1600
104-
viscwedge_mpp.new_output = True
105-
viscwedge_mpp.tol = 0.00001
106-
test_list.append(viscwedge_mpp)
97+
#viscwedge_mpp = TestCase('viscwedge_mpp')
98+
#viscwedge_mpp.cfg_dir = "nonequilibrium/viscwedge_mpp"
99+
#viscwedge_mpp.cfg_file = "viscwedge_mpp.cfg"
100+
#viscwedge_mpp.test_iter = 10
101+
#viscwedge_mpp.test_vals = [-20.608474, -20.586446,-20.707524, -5.171304,-5.696067,-1.548350,-2.071211,2.231054,-2.545494]
102+
#viscwedge_mpp.su2_exec = "mpirun -n 2 SU2_CFD"
103+
#viscwedge_mpp.timeout = 1600
104+
#viscwedge_mpp.new_output = True
105+
#viscwedge_mpp.tol = 0.00001
106+
#test_list.append(viscwedge_mpp)
107107

108108

109109
##########################

0 commit comments

Comments
 (0)