petsc-3.8.4 2018-03-24
Report Typos and Errors

DMLoad

Loads a DM that has been stored in binary with DMView().

Synopsis

#include "petscdm.h"          
#include "petscdmlabel.h"     
#include "petscds.h"     
PetscErrorCode  DMLoad(DM newdm, PetscViewer viewer)
Collective on PetscViewer

Input Parameters

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()

Notes

The type is determined by the data in the file, any type set into the DM before this call is ignored.

Notes for advanced users

Most users should not need to know the details of the binary storage format, since DMLoad() and DMView() completely hide these details. But for anyone who's interested, the standard binary matrix storage format is
     has not yet been determined

See Also

PetscViewerBinaryOpen(), DMView(), MatLoad(), VecLoad()

Level:intermediate
Location:
src/dm/interface/dm.c
Index of all DM routines
Table of Contents for all manual pages
Index of all manual pages

Examples

src/dm/impls/plex/examples/tutorials/ex5.c.html