Function t8_forest_write_vtk
Defined in File t8_forest_io.h
Function Documentation
-
int t8_forest_write_vtk(t8_forest_t forest, const char *fileprefix)
Write the forest 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 forest elements, the tree id, element level, mpirank and element id as data. Forest must be committed when calling this function. This function is collective and must be called on each process. For more options use
See also
- Parameters:
forest – [in] The forest 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).