:orphan: # PetscViewerExodusIIOpen Opens a file for ExodusII input/output. ## Synopsis ``` #include "petscdmplex.h" PetscErrorCode PetscViewerExodusIIOpen(MPI_Comm comm, const char name[], PetscFileMode type, PetscViewer *exo) ``` Collective ## Input Parameters - ***comm -*** MPI communicator - ***name -*** name of file - ***type -*** type of file ```none FILE_MODE_WRITE - create new file for binary output FILE_MODE_READ - open existing file for binary input FILE_MODE_APPEND - open existing file for binary output ``` ## Output Parameter - ***exo -*** `PETSCVIEWEREXODUSII` `PetscViewer` for Exodus II input/output to use with the specified file ## See Also `PETSCVIEWEREXODUSII`, `PetscViewer`, `PetscViewerPushFormat()`, `PetscViewerDestroy()`, `DMLoad()`, `PetscFileMode`, `PetscViewer`, `PetscViewerSetType()`, `PetscViewerFileSetMode()`, `PetscViewerFileSetName()` ## Level beginner ## Location src/dm/impls/plex/plexexodusii.c --- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/impls/plex/plexexodusii.c) [Index of all DMPlex routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)