petsc-3.3-p7 2013-05-11

PetscViewerBinaryMatlabOpen

Open a binary viewer and write matlab info file initialization. This class of viewer writes matlab code to the .info file associated with the binary output file. Executing the matlab code with bin/matlab/PetscReadBinaryMatlab.m loads the output into a matlab data structure.

Synopsis

PetscErrorCode PetscViewerBinaryMatlabOpen(MPI_Comm comm, const char fname[], PetscViewer *viewer)
Collective on MPI_Comm

Input Parameters

comm - The communicator
fname - The binary output filename

Output Parameter

viewer -The viewer object

Question: Why do the following methods exist? Why can you not just do VecView() and PetscBagView() with this viewer (that is, why is polymorphism used to implement these things).

See Also

PetscViewerBinaryMatlabDestroy(), PetscViewerBinaryMatlabOutputVec(),
PetscViewerBinaryMatlabOutputVecDA(), PetscViewerBinaryMatlabOutputBag(), PetscViewerBinaryOpen()

Level:beginner
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