Skip to content

Commit a84e5ea

Browse files
committed
update dynamics filename
1 parent c603132 commit a84e5ea

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Common/src/CConfig.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8427,8 +8427,8 @@ string CConfig::GetUnsteady_FileName(string val_filename, int val_iter, const st
84278427

84288428
if (Time_Domain) {
84298429
/*--- Determine dynamic number of zeroes, note that we always add 5 digits. ---*/
8430-
int zeroes = 6 - to_string(val_iter).length();
8431-
SPRINTF (buffer, "_%0*ld", 5,val_iter);
8430+
const int number_digits = 5;
8431+
SPRINTF (buffer, "_%0*ld", number_digits, val_iter);
84328432

84338433
UnstExt = string(buffer);
84348434
}

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-
884+
cout << "unsteady restart iteration = " << Unst_RestartIter << " " << config->GetTimeIter() << " " << config->GetUnst_AdjointIter()<< endl;
885885
if (Unst_RestartIter < 0) {
886886

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

0 commit comments

Comments
 (0)