Skip to content

Commit 2c3e3c7

Browse files
author
rois1995
committed
- Revert to previous commit
1 parent f5d0c82 commit 2c3e3c7

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

SU2_CFD/src/drivers/CMultizoneDriver.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -403,8 +403,6 @@ bool CMultizoneDriver::OuterConvergence(unsigned long OuterIter) {
403403

404404
for (iZone = 0; iZone < nZone; iZone++) {
405405

406-
output_container[iZone]->SetCurTimeIter(config_container[iZone]->GetTimeIter());
407-
408406
/*--- Account for all the solvers in this zone. ---*/
409407

410408
auto solvers = solver_container[iZone][INST_0][MESH_0];

SU2_CFD/src/iteration/CFluidIteration.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,6 @@ void CFluidIteration::Solve(COutput* output, CIntegration**** integration, CGeom
375375
unsigned short val_iInst) {
376376
/*--- Boolean to determine if we are running a static or dynamic case ---*/
377377
bool steady = !config[val_iZone]->GetTime_Domain();
378-
output->SetCurTimeIter(config[val_iZone]->GetTimeIter());
379378

380379
unsigned long Inner_Iter, nInner_Iter = config[val_iZone]->GetnInner_Iter();
381380
bool StopCalc = false;

SU2_CFD/src/output/COutput.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,8 @@ void COutput::SetHistoryOutput(CGeometry *geometry,
206206
unsigned long TimeIter,
207207
unsigned long OuterIter,
208208
unsigned long InnerIter) {
209-
209+
210+
curTimeIter = TimeIter;
210211
curAbsTimeIter = max(TimeIter, config->GetStartWindowIteration()) - config->GetStartWindowIteration();
211212
curOuterIter = OuterIter;
212213
curInnerIter = InnerIter;
@@ -272,6 +273,7 @@ void COutput::SetHistoryOutput(CGeometry ****geometry, CSolver *****solver, CCon
272273

273274
void COutput::SetMultizoneHistoryOutput(COutput **output, CConfig **config, CConfig *driver_config, unsigned long TimeIter, unsigned long OuterIter){
274275

276+
curTimeIter = TimeIter;
275277
curAbsTimeIter = max(TimeIter, driver_config->GetStartWindowIteration()) - driver_config->GetStartWindowIteration();
276278
curOuterIter = OuterIter;
277279

@@ -387,6 +389,9 @@ void COutput::WriteToFile(CConfig *config, CGeometry *geometry, OUTPUT_TYPE form
387389
/*--- File writer that will later be used to write the file to disk. Created below in the "switch" ---*/
388390
CFileWriter *fileWriter = nullptr;
389391

392+
/*--- Set current time iter even if history file is not written ---*/
393+
curTimeIter = config->GetTimeIter();
394+
390395
/*--- If it is still present, strip the extension (suffix) from the filename ---*/
391396
const auto lastindex = fileName.find_last_of('.');
392397
fileName = fileName.substr(0, lastindex);

0 commit comments

Comments
 (0)