7 const std::shared_ptr<Mesh>& mesh,
8 const std::string& out_dir,
9 const std::string& name,
10 const std::string& vname,
12 const bool intermediate_output)
14 if (intermediate_output) {
17 const std::filesystem::path
data_dir =
"";
19 data_dir / (name +
"_" + std::to_string(index)),
26 mesh->serialize(writer);
29 const std::filesystem::path
data_dir =
"";
31 data_dir / (name +
"_" + std::to_string(index)),
38 mesh->serialize(writer);
41 const std::filesystem::path
data_dir =
"";
43 data_dir / (name +
"_" + std::to_string(index)),
50 mesh->serialize(writer);
void write(const Mesh &mesh, const std::string &out_dir, const std::string &name, const std::string &vname, const int64_t index, const bool intermediate_output)
const std::filesystem::path data_dir