/usr/lib/petscdir/3.4.2/include/petscviewerams.h is in libpetsc3.4.2-dev 3.4.2.dfsg1-6.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | #if !defined(__PETSCVIEWERAMS_H)
#define __PETSCVIEWERAMS_H
#include <petscviewer.h>
#include <ams.h>
PETSC_EXTERN PetscErrorCode PetscViewerAMSSetCommName(PetscViewer,const char[]);
PETSC_EXTERN PetscErrorCode PetscViewerAMSGetAMSComm(PetscViewer,AMS_Comm *);
PETSC_EXTERN PetscErrorCode PetscViewerAMSOpen(MPI_Comm,const char[],PetscViewer*);
PETSC_EXTERN PetscViewer PETSC_VIEWER_AMS_(MPI_Comm);
PETSC_EXTERN PetscErrorCode PETSC_VIEWER_AMS_Destroy(MPI_Comm);
#define PETSC_VIEWER_AMS_WORLD PETSC_VIEWER_AMS_(PETSC_COMM_WORLD)
#define PETSC_VIEWER_AMS_SELF PETSC_VIEWER_AMS_(PETSC_COMM_SELF)
#define PetscStackCallAMS(func,args) do {PetscErrorCode _ierr; char* err; \
PetscStackPush(#func);_ierr = func args;PetscStackPop; if (_ierr) {AMS_Explain_error(_ierr,&err); SETERRQ2(PETSC_COMM_SELF,PETSC_ERR_LIB,"Error in %s() %s",#func,err);} \
} while (0)
#endif
|