Skip to content
Snippets Groups Projects
Commit 8e375bbb authored by Tobias Meisel's avatar Tobias Meisel
Browse files

[PL] Output for non linear iteration same as specified output

contains fix: iteration output was overwritten at each timestep because name
did not include timestep or time.
implementation note: Replaced time by iteration because of missing functionality
in BaseLib::constructFormattedFileName to handle iterations
parent 29ae561e
No related branches found
No related tags found
No related merge requests found
......@@ -208,7 +208,6 @@ struct Output::OutputFile
//! Enables or disables zlib-compression of the output files.
bool const compression;
private:
static std::string constructFilename(std::string type, std::string prefix,
std::string suffix, std::string mesh_name,
int process_id, int timestep, double t)
......@@ -435,10 +434,11 @@ void Output::doOutputNonlinearIteration(Process const& process,
findPVDFile(process, process_id, process.getMesh().getName());
std::string const output_file_name =
BaseLib::constructFormattedFileName(_output_file_prefix,
process.getMesh().getName(),
process_id, timestep, t) +
"_nliter_" + std::to_string(iteration) + ".vtu";
OutputFile::constructFilename(_output_file_type,_output_file_prefix,
"_ts_{:timestep}_nliter_{:time}",
process.getMesh().getName(), process_id,
timestep, iteration);
std::string const output_file_path =
BaseLib::joinPaths(_output_directory, output_file_name);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment