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

[PL/Output] Set property output flag for output vars

parent fa2b9e1e
No related branches found
No related tags found
No related merge requests found
...@@ -174,6 +174,28 @@ void Output::outputMeshes( ...@@ -174,6 +174,28 @@ void Output::outputMeshes(
std::vector<std::reference_wrapper<const MeshLib::Mesh>> const& meshes) std::vector<std::reference_wrapper<const MeshLib::Mesh>> const& meshes)
const const
{ {
if (_output_data_specification.output_variables.empty())
{
// special case: no output properties specified => output all properties
for (auto const& mesh : meshes)
{
for (auto [name, property] : mesh.get().getProperties())
{
property->is_for_output = true;
}
}
}
else
{
for (auto const& mesh : meshes)
{
for (auto [name, property] : mesh.get().getProperties())
{
property->is_for_output =
_output_data_specification.output_variables.contains(name);
}
}
}
_output_format->outputMeshes(timestep, t, iteration, meshes, _output_format->outputMeshes(timestep, t, iteration, meshes,
_output_data_specification.output_variables); _output_data_specification.output_variables);
} }
......
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