xref: /petsc/src/vec/is/utils/ftn-custom/zvsectionisf.c (revision b5a418daa77edf8c21797b92284750ef31682bdc)
1*b5a418daSToby Isaac #include <petsc/private/fortranimpl.h>
2*b5a418daSToby Isaac #include <petscis.h>
3*b5a418daSToby Isaac #include <petscviewer.h>
4*b5a418daSToby Isaac 
5*b5a418daSToby Isaac #if defined(PETSC_HAVE_FORTRAN_CAPS)
6*b5a418daSToby Isaac #define petscsectiongetpointsyms_          PETSCSECTIONGETPOINTSYMS
7*b5a418daSToby Isaac #define petscsectionrestorepointsyms_      PETSCSECTIONRESTOREPOINTSYMS
8*b5a418daSToby Isaac #define petscsectiongetfieldpointsyms_     PETSCSECTIONGETFIELDPOINTSYMS
9*b5a418daSToby Isaac #define petscsectionrestorefieldpointsyms_ PETSCSECTIONRESTOREFIELDPOINTSYMS
10*b5a418daSToby Isaac #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE)
11*b5a418daSToby Isaac #define petscsectiongetpointsyms_          petscsectiongetpointsyms
12*b5a418daSToby Isaac #define petscsectionrestorepointsyms_      petscsectionrestorepointsyms
13*b5a418daSToby Isaac #define petscsectiongetfieldpointsyms_     petscsectiongetfieldpointsyms
14*b5a418daSToby Isaac #define petscsectionrestorefieldpointsyms_ petscsectionrestorefieldpointsyms
15*b5a418daSToby Isaac #endif
16*b5a418daSToby Isaac 
17*b5a418daSToby Isaac PETSC_EXTERN void PETSC_STDCALL  petscsectiongetpointsyms_(PetscSection section,PetscInt *numPoints, PetscInt *points, PetscInt ***perms, PetscScalar ***rots, int *__ierr ){
18*b5a418daSToby Isaac *__ierr = PetscSectionGetPointSyms(section,*numPoints,points,(const PetscInt ***)perms,(const PetscScalar ***)rots);
19*b5a418daSToby Isaac }
20*b5a418daSToby Isaac PETSC_EXTERN void PETSC_STDCALL  petscsectionrestorepointsyms_(PetscSection section,PetscInt *numPoints, PetscInt *points, PetscInt ***perms, PetscScalar ***rots, int *__ierr ){
21*b5a418daSToby Isaac *__ierr = PetscSectionRestorePointSyms(section,*numPoints,points,(const PetscInt ***)perms,(const PetscScalar ***)rots);
22*b5a418daSToby Isaac }
23*b5a418daSToby Isaac PETSC_EXTERN void PETSC_STDCALL  petscsectiongetfieldpointsyms_(PetscSection section,PetscInt *field,PetscInt *numPoints, PetscInt *points, PetscInt ***perms, PetscScalar ***rots, int *__ierr ){
24*b5a418daSToby Isaac *__ierr = PetscSectionGetFieldPointSyms(section,*field,*numPoints,points,(const PetscInt ***)perms,(const PetscScalar ***)rots);
25*b5a418daSToby Isaac }
26*b5a418daSToby Isaac PETSC_EXTERN void PETSC_STDCALL  petscsectionrestorefieldpointsyms_(PetscSection section,PetscInt *field,PetscInt *numPoints, PetscInt *points, PetscInt ***perms, PetscScalar ***rots, int *__ierr ){
27*b5a418daSToby Isaac *__ierr = PetscSectionRestoreFieldPointSyms(section,*field,*numPoints,points,(const PetscInt ***)perms,(const PetscScalar ***)rots);
28*b5a418daSToby Isaac }
29