@@ -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
273274void 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