diff --git a/src/Vector/vector_dist_subset.hpp b/src/Vector/vector_dist_subset.hpp index 0d25ea2c91558192fffd6824c447f6dc1cd3e3d6..e2ac7e2402eb47a28dea4f28036fe475fc5e989f 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) {