Skip to content

Commit 2fa6e1f

Browse files
committed
small fix for default_properties
1 parent dfd533a commit 2fa6e1f

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

SU2_CFD/src/drivers/CDriver.cpp

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2313,9 +2313,17 @@ void CDriver::InitializeNumerics(CConfig *config, CGeometry **geometry, CSolver
23132313

23142314
ifstream properties_file;
23152315

2316+
23162317
string filename = config->GetFEA_FileName();
2318+
2319+
unsigned short lastindex = filename.find_last_of('.');
2320+
filename = filename.substr(0, lastindex);
2321+
23172322
if (nZone > 1)
2318-
filename = config->GetMultizone_FileName(filename, iZone, ".dat");
2323+
filename = config->GetMultizone_FileName(filename, iZone, "");
2324+
2325+
/*--- At the moment we stay consistent with the default extension .dat for all input files. ---*/
2326+
filename += ".dat";
23192327

23202328
properties_file.open(filename.data(), ios::in);
23212329

0 commit comments

Comments
 (0)