# DMMoabOutput
Output the solution vectors that are stored in the DMMoab object as tags along with the complete mesh data structure in the native H5M or VTK format. The H5M output file can be visualized directly with Paraview (if compiled with appropriate plugin) or converted with MOAB/tools/mbconvert to a VTK or Exodus file. 
## Synopsis
```
#include "petscdmmoab.h"   
PetscErrorCode DMMoabOutput(DM dm, const char *filename, const char *usrwriteopts)
```
This routine can also be used for check-pointing purposes to store a complete history of
the solution along with any other necessary data to restart computations.

Collective


## Input Parameters

- ***dm     -*** the discretization manager object containing solution in MOAB tags.
- ***filename -*** the name of the output file: e.g., poisson.h5m
- ***usrwriteopts -*** the parallel write options needed for serializing a MOAB mesh database. Can be NULL.
Reference (Parallel Mesh Initialization: http://ftp.mcs.anl.gov/pub/fathom/moab-docs/contents.html#fivetwo)





## See Also
 `DMMoabLoadFromFile()`, `DMMoabSetGlobalFieldVector()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/moab/dmmbio.cxx.html#DMMoabOutput">src/dm/impls/moab/dmmbio.cxx</A>

## Examples
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/ksp/tutorials/ex35.cxx.html">src/ksp/ksp/tutorials/ex35.cxx.html</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/ksp/tutorials/ex36.cxx.html">src/ksp/ksp/tutorials/ex36.cxx.html</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/tutorials/ex35.cxx.html">src/ts/tutorials/ex35.cxx.html</A><BR>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/impls/moab/dmmbio.cxx)


[Index of all DMMOAB routines](index.md)  
[Table of Contents for all manual pages](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
