petsc-3.13.6 2020-09-29
Report Typos and Errors

PetscViewerADIOS2Open

Opens a file for ADIOS2 input/output.

Synopsis

#include "petscsys.h"   
PetscErrorCode  PetscViewerADIOS2Open(MPI_Comm comm, const char name[], PetscFileMode type, PetscViewer *adios2v)
Collective

Input Parameters

comm - MPI communicator
name - name of file
type - type of file
   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

adios2v -PetscViewer for ADIOS2 input/output to use with the specified file

Note

This PetscViewer should be destroyed with PetscViewerDestroy().

See Also

PetscViewerASCIIOpen(), PetscViewerPushFormat(), PetscViewerDestroy(), PetscViewerHDF5Open(),
VecView(), MatView(), VecLoad(), PetscViewerSetType(), PetscViewerFileSetMode(), PetscViewerFileSetName() MatLoad(), PetscFileMode, PetscViewer

Level

beginner

Location

src/sys/classes/viewer/impls/adios2/adios2.c

Examples

src/vec/vec/tutorials/ex10.c.html

Index of all Viewer routines
Table of Contents for all manual pages
Index of all manual pages