petsc-3.3-p7 2013-05-11

DMLoad

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

Synopsis

#include "petscdm.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

Defaults to the DM DA.

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

In addition, PETSc automatically does the byte swapping for machines that store the bytes reversed, e.g. DEC alpha, freebsd, linux, Windows and the paragon; thus if you write your own binary read/write routines you have to swap the bytes; see PetscBinaryRead() and PetscBinaryWrite() to see how this may be done.

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/snes/examples/tutorials/ex61view.c.html