#include "petscdm.h" #include "petscdmlabel.h" #include "petscds.h" PetscErrorCode DMLoad(DM newdm, PetscViewer viewer)Collective on viewer
newdm | - the newly loaded DM, this needs to have been created with DMCreate() or some related function before a call to DMLoad(). | |
viewer | - binary file viewer, obtained from PetscViewerBinaryOpen() or HDF5 file viewer, obtained from PetscViewerHDF5Open() |
Using PETSCVIEWERHDF5 type with PETSC_VIEWER_HDF5_PETSC format, one can save multiple DMPlex meshes in a single HDF5 file. This in turn requires one to name the DMPlex object with PetscObjectSetName() before saving it with DMView() and before loading it with DMLoad() for identification of the mesh object.
has not yet been determined