Template Function t8_mesh_handle::write_mesh_to_vtk

Function Documentation

template<T8MeshType TMeshClass>
int t8_mesh_handle::write_mesh_to_vtk(TMeshClass &mesh, const char *fileprefix)

Write the mesh in a parallel vtu format.

Writes one master .pvtu file and each process writes in its own .vtu file. If linked, the VTK API is used. If the VTK library is not linked, an ASCII file is written. This function writes the elements, level, mpirank, element id and the tree id of the underlying forest as data. This function is collective and must be called on each process. For more options use

See also

write_mesh_to_vtk_ext.

Parameters:
  • mesh[in] The mesh to write.

  • fileprefix[in] The prefix of the files where the vtk will be stored. The master file is then fileprefix.pvtu and the process with rank r writes in the file fileprefix_r.vtu.

Returns:

True if successful, false if not (process local).