petsc-3.3-p7 2013-05-11

PetscViewerBinaryMatlabOutputVecDA

Output a Vec object associtated with a DMDA to the viewer and write matlab code to the info file to read a DMDA's Vec from binary.

Synopsis

#undef __FUNCT__
#define __FUNCT__ "PetscViewerBinaryMatlabOutputVecDA"
PetscErrorCode PetscViewerBinaryMatlabOutputVecDA(PetscViewer viewer, const char name[], Vec vec, DM da)

Input Parameters

viewer - The viewer object
name - The name of the field variable to be written
vec - The Vec containing the field data to output
da - The DMDA governing layout of Vec

Note: This method requires dof names to have been set using DMDASetFieldName().

See Also

PetscViewerBinaryMatlabOpen(), PetscViewerBinaryMatlabOutputBag(), PetscViewerBinaryMatlabOutputVec(), DMDASetFieldName()

Level:intermediate
Location:
src/dm/impls/da/utils/binaryMatlab.c
Index of all DM routines
Table of Contents for all manual pages
Index of all manual pages

Examples

src/dm/examples/tutorials/ex7.c.html