@@ -72,8 +72,8 @@ CIncEulerSolver::CIncEulerSolver(CGeometry *geometry, CConfig *config, unsigned
7272 /* --- Multizone problems require the number of the zone to be appended. ---*/
7373
7474 auto filename_ = config->GetSolution_FileName ();
75- // nijso: check this!
76- if (nZone > 1 ) filename_ = config->GetMultizone_FileName (filename_, iZone, " .dat " );
75+ // // nijso: this is inconsistent with line 70, nZone<= 1 !
76+ if (nZone > 1 ) filename_ = config->GetMultizone_FileName (filename_, iZone, " " );
7777
7878 /* --- Modify file name for a dual-time unsteady restart ---*/
7979
@@ -82,24 +82,27 @@ CIncEulerSolver::CIncEulerSolver(CGeometry *geometry, CConfig *config, unsigned
8282 else if (config->GetTime_Marching () == TIME_MARCHING::DT_STEPPING_1ST)
8383 Unst_RestartIter = SU2_TYPE::Int (config->GetRestart_Iter ())-1 ;
8484 else Unst_RestartIter = SU2_TYPE::Int (config->GetRestart_Iter ())-2 ;
85- filename_ = config->GetUnsteady_FileName (filename_, Unst_RestartIter, " .dat " );
85+ filename_ = config->GetUnsteady_FileName (filename_, Unst_RestartIter, " " );
8686 }
8787
8888 /* --- Modify file name for a time stepping unsteady restart ---*/
8989
9090 if (time_stepping) {
9191 if (adjoint) Unst_RestartIter = SU2_TYPE::Int (config->GetUnst_AdjointIter ())-1 ;
9292 else Unst_RestartIter = SU2_TYPE::Int (config->GetRestart_Iter ())-1 ;
93- filename_ = config->GetUnsteady_FileName (filename_, Unst_RestartIter, " .dat " );
93+ filename_ = config->GetUnsteady_FileName (filename_, Unst_RestartIter, " " );
9494 }
9595
96- /* --- Read and store the restart metadata. --- */
96+ filename_ += " .dat " ;
9797
98+ /* --- Read and store the restart metadata. ---*/
99+ // nijso: We now overwrite all previous modifications of filename ?!?
98100 filename_ = " flow" ;
99101 filename_ = config->GetFilename (filename_, " .meta" , Unst_RestartIter);
100102 Read_SU2_Restart_Metadata (geometry, config, adjoint, filename_);
101103
102104 }
105+
103106 if (restart && (config->GetKind_Streamwise_Periodic () == ENUM_STREAMWISE_PERIODIC::MASSFLOW)) {
104107 string filename_ = " flow" ;
105108 filename_ = config->GetFilename (filename_, " .meta" , Unst_RestartIter);
0 commit comments