Skip to content
Snippets Groups Projects
Commit 8479ac66 authored by Tom Fischer's avatar Tom Fischer
Browse files

[PL/Out] Check if prefix contains '{:meshname}'.

parent ae4987d1
No related branches found
No related tags found
No related merge requests found
......@@ -114,6 +114,15 @@ std::unique_ptr<Output> createOutput(
//! \ogs_file_param{prj__time_loop__output__meshes}
if (auto const meshes_config = config.getConfigSubtreeOptional("meshes"))
{
if(prefix.find("{:meshname}") == std::string::npos)
{
OGS_FATAL(
"There are multiple meshes defined in the output section of "
"the project file, but the prefix doesn't contain "
"'{:meshname}'. Thus the names for the files, the simulation "
"results should be written to, would not be distinguishable "
"for different meshes.");
}
//! \ogs_file_param{prj__time_loop__output__meshes__mesh}
for (auto mesh_config : meshes_config->getConfigParameterList("mesh"))
{
......
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