Skip to content
Snippets Groups Projects
Commit 850a80a7 authored by Abhinav Singh's avatar Abhinav Singh
Browse files

Adding time also to subset write frame

parent a070cbf5
No related branches found
No related tags found
Loading
Checking pipeline status
......@@ -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)
{
......
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