Commit 401f312c authored by incardon's avatar incardon

Fixing Vtk with time metadata

parent 1b95af8e
......@@ -7,7 +7,7 @@ LDIR =
OBJ = main.o
%.o: %.cpp
$(CC) -O3 -c --std=c++11 -o $@ $< $(INCLUDE_PATH)
$(CC) -O3 -g -c --std=c++11 -o $@ $< $(INCLUDE_PATH)
vect: $(OBJ)
$(CC) -o $@ $^ $(CFLAGS) $(LIBS_PATH) $(LIBS)
......
......@@ -365,6 +365,12 @@ int main(int argc, char* argv[])
// save in vtk binary format
vd.write("particles_bin",VTK_WRITER | FORMAT_BINARY);
// save in vtk format with time
vd.write("particles_with_time","time=1.234");
// save in vtk format with time
vd.write("particles_with_time_bin","time=1.234",VTK_WRITER | FORMAT_BINARY);
//! \cond [vtk] \endcond
/*!
......
......@@ -2417,7 +2417,7 @@ public:
std::string output = std::to_string(out + "_" + std::to_string(v_cl.getProcessUnitID()) + std::to_string(".vtk"));
// Write the VTK file
return vtk_writer.write(output,prp_names,"particles","",ft);
return vtk_writer.write(output,prp_names,"particles",meta_info,ft);
}
}
......@@ -2503,7 +2503,7 @@ public:
std::string output = std::to_string(out + "_" + std::to_string(v_cl.getProcessUnitID()) + "_" + std::to_string(iteration) + std::to_string(".vtk"));
// Write the VTK file
return vtk_writer.write(output,prp_names,"particles","",ft);
return vtk_writer.write(output,prp_names,"particles",meta_info,ft);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment