Function lili::mesh::SaveMesh

Function Documentation

void lili::mesh::SaveMesh(Mesh<double> &mesh, const char *file_name, const char *data_name, bool include_ghost = false)

Function to save Mesh data to a single file.

This function will save the Mesh data to a single HDF5 file. The data will be saved in a dataset with the given name. If the file exists, the dataset will be overwritten.

Warning

This function is not efficient for multiple calls. Use lili::output::MeshStream instead.

Parameters:
  • mesh[in] Mesh data

  • file_name[in] HDF5 file name

  • data_name[in] HDF5 dataset name

  • include_ghost[in] Save ghost cells in the data