Skip to content

Commit 3e75f50

Browse files
committed
small fix for aeroelastic, update rigid motion regressions
1 parent c047306 commit 3e75f50

5 files changed

Lines changed: 6 additions & 8 deletions

File tree

SU2_CFD/include/iteration/CFluidIteration.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,7 @@ class CFluidIteration : public CIteration {
152152
/*!
153153
* \brief Store old aeroelastic solutions
154154
* \param[in,out] config - Definition of the particular problem.
155-
* \param[in] iMesh - Grid level
156155
*/
157-
void SetDualTime_Aeroelastic(CConfig* config, unsigned short iMesh) const;
156+
void SetDualTime_Aeroelastic(CConfig* config) const;
158157

159158
};

SU2_CFD/src/integration/CIntegration.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,7 @@ void CIntegration::SetDualTime_Solver(const CGeometry *geometry, CSolver *solver
230230

231231
SU2_OMP_PARALLEL
232232
{
233-
/*--- Store old solution, volumes and coordinates (in case there is grid movement). ---*/
234-
233+
/*--- Store old solution ---*/
235234
solver->GetNodes()->Set_Solution_time_n1();
236235
solver->GetNodes()->Set_Solution_time_n();
237236

SU2_CFD/src/iteration/CFluidIteration.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -569,11 +569,11 @@ bool CFluidIteration::MonitorFixed_CL(COutput *output, CGeometry *geometry, CSol
569569
return fixed_cl_convergence;
570570
}
571571

572-
void CFluidIteration::SetDualTime_Aeroelastic(CConfig* config, unsigned short iMesh) const {
572+
void CFluidIteration::SetDualTime_Aeroelastic(CConfig* config) const {
573573

574574
/*--- Store old aeroelastic solutions ---*/
575575

576-
if (config->GetGrid_Movement() && config->GetAeroelastic_Simulation() && (iMesh == MESH_0)) {
576+
if (config->GetGrid_Movement() && config->GetAeroelastic_Simulation()) {
577577

578578
config->SetAeroelastic_n1();
579579
config->SetAeroelastic_n();

TestCases/parallel_regression.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1298,7 +1298,7 @@ def main():
12981298
pywrapper_rigidMotion.cfg_dir = "py_wrapper/flatPlate_rigidMotion"
12991299
pywrapper_rigidMotion.cfg_file = "flatPlate_rigidMotion_Conf.cfg"
13001300
pywrapper_rigidMotion.test_iter = 5
1301-
pywrapper_rigidMotion.test_vals = [-1.614165, 2.242641, -0.038307, 0.173866]
1301+
pywrapper_rigidMotion.test_vals = [-1.614164, 2.242568, -0.028488, 0.173947]
13021302
pywrapper_rigidMotion.su2_exec = "mpirun -np 2 python launch_flatPlate_rigidMotion.py --parallel -f"
13031303
pywrapper_rigidMotion.timeout = 1600
13041304
pywrapper_rigidMotion.tol = 0.00001

TestCases/serial_regression.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1877,7 +1877,7 @@ def main():
18771877
pywrapper_rigidMotion.cfg_dir = "py_wrapper/flatPlate_rigidMotion"
18781878
pywrapper_rigidMotion.cfg_file = "flatPlate_rigidMotion_Conf.cfg"
18791879
pywrapper_rigidMotion.test_iter = 5
1880-
pywrapper_rigidMotion.test_vals = [-1.614167, 2.242632, -0.037871, 0.173912]
1880+
pywrapper_rigidMotion.test_vals = [-1.614167, 2.242558, -0.027574, 0.173990]
18811881
pywrapper_rigidMotion.su2_exec = "python launch_flatPlate_rigidMotion.py -f"
18821882
pywrapper_rigidMotion.new_output = True
18831883
pywrapper_rigidMotion.timeout = 1600

0 commit comments

Comments
 (0)