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

Fixing subset number prop name when not set.

parent bd19409a
No related branches found
No related tags found
No related merge requests found
Checking pipeline status
......@@ -41,7 +41,7 @@ class vector_dist_ws : public vector_dist<dim,St,typename AggregateAppend<int,pr
inline bool write_frame(std::string out, size_t iteration, int opt = VTK_WRITER)
{
auto &prop_names=this->getPropNames();
if(prop_names.size()<prop::max_prop+1){
if(prop_names.size()==prop::max_prop){
prop_names.add({"SubsetNumber"});
}
......@@ -51,7 +51,7 @@ class vector_dist_ws : public vector_dist<dim,St,typename AggregateAppend<int,pr
inline bool write(std::string out,int opt = VTK_WRITER)
{
auto &prop_names=this->getPropNames();
if(prop_names.size()<prop::max_prop+1){
if(prop_names.size()==prop::max_prop){
prop_names.add({"SubsetNumber"});
}
......
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