From 850a80a7c2cac30fba67eec3e4bc819fc0589991 Mon Sep 17 00:00:00 2001 From: absingh <absingh@mpi-cbg.de> Date: Tue, 5 Apr 2022 12:39:09 +0200 Subject: [PATCH] Adding time also to subset write frame --- src/Vector/vector_dist_subset.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Vector/vector_dist_subset.hpp b/src/Vector/vector_dist_subset.hpp index 0d25ea2c9..e2ac7e240 100644 --- a/src/Vector/vector_dist_subset.hpp +++ b/src/Vector/vector_dist_subset.hpp @@ -47,6 +47,15 @@ class vector_dist_ws : public vector_dist<dim,St,typename AggregateAppend<int,pr return vector_dist<dim,St,typename AggregateAppend<int,prop>::type,Decomposition,Memory,layout_base>::write_frame(out,iteration,opt); } + inline bool write_frame(std::string out, size_t iteration,double time, int opt = VTK_WRITER) + { + auto &prop_names=this->getPropNames(); + if(prop_names.size()==prop::max_prop){ + prop_names.add({"SubsetNumber"}); + } + + return vector_dist<dim,St,typename AggregateAppend<int,prop>::type,Decomposition,Memory,layout_base>::write_frame(out,iteration,time,opt); + } inline bool write(std::string out,int opt = VTK_WRITER) { -- GitLab