Skip to content

Commit 153e682

Browse files
committed
cleanup
1 parent 0483070 commit 153e682

File tree

11 files changed

+8
-20
lines changed

11 files changed

+8
-20
lines changed

SU2_CFD/src/iteration/CDiscAdjFluidIteration.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ void CDiscAdjFluidIteration::Preprocess(COutput* output, CIntegration**** integr
5858
if (config[iZone]->GetTime_Marching() != TIME_MARCHING::STEADY) {
5959
const int Direct_Iter = static_cast<int>(config[iZone]->GetUnst_AdjointIter()) -
6060
static_cast<int>(TimeIter) - 2 + dual_time;
61-
cout << "direct iter = " << Direct_Iter << endl;
61+
6262
/*--- For dual-time stepping we want to load the already converged solution at previous timesteps.
6363
* In general we only load one file and shift the previously loaded solutions, on the first we
6464
* load one or two more (depending on dual time order). ---*/

SU2_CFD/src/solvers/CAdjEulerSolver.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3815,9 +3815,6 @@ void CAdjEulerSolver::LoadRestart(CGeometry **geometry, CSolver ***solver, CConf
38153815
filename = config->GetSolution_AdjFileName();
38163816
restart_filename = config->GetObjFunc_Extension(filename);
38173817

3818-
cout << "adj-euler: restart filename = " << restart_filename << endl;
3819-
3820-
38213818
Coord = new su2double [nDim];
38223819
for (iDim = 0; iDim < nDim; iDim++)
38233820
Coord[iDim] = 0.0;

SU2_CFD/src/solvers/CBaselineSolver.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ void CBaselineSolver::SetOutputVariables(CGeometry *geometry, CConfig *config) {
9191
} else {
9292
filename = config->GetSolution_FileName();
9393
}
94+
95+
9496
/*--- Read only the number of variables in the restart file. ---*/
9597

9698
if (config->GetRead_Binary_Restart()) {

SU2_CFD/src/solvers/CDiscAdjSolver.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -624,8 +624,6 @@ void CDiscAdjSolver::LoadRestart(CGeometry **geometry, CSolver ***solver, CConfi
624624

625625
auto filename = config->GetSolution_AdjFileName();
626626
auto restart_filename = config->GetObjFunc_Extension(filename);
627-
cout << "filename = " << filename << endl;
628-
cout <<"restart_filename = " << restart_filename << endl;;
629627

630628
const bool rans = (config->GetKind_Turb_Model() != TURB_MODEL::NONE);
631629

@@ -648,15 +646,12 @@ void CDiscAdjSolver::LoadRestart(CGeometry **geometry, CSolver ***solver, CConfi
648646
skipVars += nDim + 2;
649647
if (rans) skipVars += solver[MESH_0][TURB_SOL]->GetnVar();
650648
}
651-
cout << "nijso 1.: cdiscadjolver::loadrestart "<< restart_filename << endl;
652649

653650
if (config->GetRead_Binary_Restart()) {
654651
restart_filename = config->GetFilename(restart_filename, ".dat", val_iter);
655652
Read_SU2_Restart_Binary(geometry[MESH_0], config, restart_filename);
656653
} else {
657654
restart_filename = config->GetFilename(restart_filename, ".csv", val_iter);
658-
cout << "nijso 2.: cdiscadjolver::loadrestart "<< restart_filename << endl;
659-
660655
Read_SU2_Restart_ASCII(geometry[MESH_0], config, restart_filename);
661656
}
662657

SU2_CFD/src/solvers/CFEM_DG_EulerSolver.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9464,7 +9464,7 @@ void CFEM_DG_EulerSolver::LoadRestart(CGeometry **geometry, CSolver ***solver, C
94649464
const bool compressible = (config->GetKind_Regime() == ENUM_REGIME::COMPRESSIBLE);
94659465

94669466
string restart_filename = config->GetSolution_FileName();
9467-
cout << " ***** restart filename = " << restart_filename << endl;
9467+
94689468
int counter = 0;
94699469
long iPoint_Local = 0; unsigned long iPoint_Global = 0;
94709470
unsigned short rbuf_NotMatching = 0;
@@ -9479,7 +9479,6 @@ void CFEM_DG_EulerSolver::LoadRestart(CGeometry **geometry, CSolver ***solver, C
94799479

94809480
if (config->GetRead_Binary_Restart()) {
94819481
restart_filename = config->GetFilename(restart_filename, ".dat", val_iter);
9482-
cout << " ***** restart filename = " << restart_filename << endl;
94839482
Read_SU2_Restart_Binary(geometry[MESH_0], config, restart_filename);
94849483
} else {
94859484
restart_filename = config->GetFilename(restart_filename, ".csv", val_iter);

SU2_CFD/src/solvers/CMeshSolver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -881,7 +881,7 @@ void CMeshSolver::RestartOldGeometry(CGeometry *geometry, const CConfig *config)
881881
Unst_RestartIter = static_cast<int>(config->GetRestart_Iter()) - iStep;
882882
else
883883
Unst_RestartIter = static_cast<int>(config->GetUnst_AdjointIter()) - config->GetTimeIter() - iStep - 1;
884-
cout << "unsteady restart iteration = " << Unst_RestartIter << " " << config->GetTimeIter() << " " << config->GetUnst_AdjointIter()<< endl;
884+
885885
if (Unst_RestartIter < 0) {
886886

887887
if (rank == MASTER_NODE) cout << "Requested mesh restart filename is negative. Setting zero displacement" << endl;

SU2_CFD/src/solvers/CSolver.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3560,12 +3560,6 @@ void CSolver::LoadInletProfile(CGeometry **geometry,
35603560
const auto KIND_SOLVER = val_kind_solver;
35613561
const auto KIND_MARKER = val_kind_marker;
35623562

3563-
// const bool time_stepping = (config->GetTime_Marching() == TIME_MARCHING::DT_STEPPING_1ST) ||
3564-
// (config->GetTime_Marching() == TIME_MARCHING::DT_STEPPING_2ND) ||
3565-
// (config->GetTime_Marching() == TIME_MARCHING::TIME_STEPPING);
3566-
3567-
//const auto iZone = config->GetiZone();
3568-
//const auto nZone = config->GetnZone();
35693563

35703564
auto profile_filename = config->GetInlet_FileName();
35713565

SU2_CFD/src/solvers/CSpeciesSolver.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ void CSpeciesSolver::LoadRestart(CGeometry** geometry, CSolver*** solver, CConfi
186186
/*--- To make this routine safe to call in parallel most of it can only be executed by one thread. ---*/
187187
BEGIN_SU2_OMP_SAFE_GLOBAL_ACCESS {
188188
/*--- Read the restart data from either an ASCII or binary SU2 file. ---*/
189+
189190
if (config->GetRead_Binary_Restart()) {
190191
restart_filename = config->GetFilename(restart_filename, ".dat", val_iter);
191192
Read_SU2_Restart_Binary(geometry[MESH_0], config, restart_filename);

SU2_DEF/src/drivers/CDeformationDriver.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -498,6 +498,7 @@ void CDeformationDriver::OutputFiles() {
498498
/*--- Load the data. --- */
499499

500500
output_container[iZone]->LoadData(geometry_container[iZone][INST_0][MESH_0], config_container[iZone], nullptr);
501+
501502
output_container[iZone]->WriteToFile(config_container[iZone], geometry_container[iZone][INST_0][MESH_0],
502503
OUTPUT_TYPE::MESH, driver_config->GetMesh_Out_FileName());
503504

SU2_DEF/src/drivers/CDiscAdjDeformationDriver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ void CDiscAdjDeformationDriver::Run() {
358358
}
359359

360360
/*--- Write the gradient to a file. ---*/
361-
cout << "gradient file = " << config_container[ZONE_0]->GetObjFunc_Grad_FileName().c_str() << endl;
361+
362362
if (rank == MASTER_NODE) Gradient_file.open(config_container[ZONE_0]->GetObjFunc_Grad_FileName().c_str(), ios::out);
363363

364364
/*--- Print gradients to screen and writes to file. ---*/

0 commit comments

Comments
 (0)