Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix output names of unsteady simulation #2418

Merged
merged 8 commits into from
Jan 24, 2025
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion SU2_CFD/src/output/COutput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,9 @@ void COutput::WriteToFile(CConfig *config, CGeometry *geometry, OUTPUT_TYPE form
/*--- File writer that will later be used to write the file to disk. Created below in the "switch" ---*/
CFileWriter *fileWriter = nullptr;

/*--- Set current time iter even if history file is not written ---*/
curTimeIter = config->GetTimeIter();
pcarruscag marked this conversation as resolved.
Show resolved Hide resolved

/*--- If it is still present, strip the extension (suffix) from the filename ---*/
const auto lastindex = fileName.find_last_of('.');
fileName = fileName.substr(0, lastindex);
Expand Down Expand Up @@ -476,7 +479,7 @@ void COutput::WriteToFile(CConfig *config, CGeometry *geometry, OUTPUT_TYPE form
extension = CSU2MeshFileWriter::fileExt;

if (fileName.empty())
fileName = volumeFilename;
fileName = config->GetFilename(volumeFilename, "", curTimeIter);
pcarruscag marked this conversation as resolved.
Show resolved Hide resolved

if (!config->GetWrt_Volume_Overwrite())
filename_iter = config->GetFilename_Iter(fileName, curInnerIter, curOuterIter);
Expand Down
Loading