Actual source code: petscdmda.h


  2: !
  3: !  Include file for Fortran use of the DMDA (distributed array) package in PETSc
  4: !
  5: #if !defined (PETSCDMDADEF_H)
  6: #define PETSCDMDADEF_H

  8: #include "petsc/finclude/petscis.h"
  9: #include "petsc/finclude/petscvec.h"
 10: #include "petsc/finclude/petscmat.h"
 11: #include "petsc/finclude/petscdm.h"

 13: #define DMDAStencilType PetscEnum

 15: #define DMDALocalInfo PetscInt
 16: !
 17: !   DMDA_LOCAL_INFO_SIZE is one large than the size incase the DA is larger than an integer (on 64 bit systems).
 18: !   non-int fields are not accessiable from fortran.
 19: !
 20: #define DMDA_LOCAL_INFO_SIZE 25
 21: #define DMDA_LOCAL_INFO_DIM 1
 22: #define DMDA_LOCAL_INFO_DOF 2
 23: #define DMDA_LOCAL_INFO_MX 4
 24: #define DMDA_LOCAL_INFO_MY 5
 25: #define DMDA_LOCAL_INFO_MZ 6
 26: #define DMDA_LOCAL_INFO_XS 7
 27: #define DMDA_LOCAL_INFO_YS 8
 28: #define DMDA_LOCAL_INFO_ZS 9
 29: #define DMDA_LOCAL_INFO_XM 10
 30: #define DMDA_LOCAL_INFO_YM 11
 31: #define DMDA_LOCAL_INFO_ZM 12
 32: #define DMDA_LOCAL_INFO_GXS 13
 33: #define DMDA_LOCAL_INFO_GYS 14
 34: #define DMDA_LOCAL_INFO_GZS 15
 35: #define DMDA_LOCAL_INFO_GXM 16
 36: #define DMDA_LOCAL_INFO_GYM 17
 37: #define DMDA_LOCAL_INFO_GZM 18

 39: #define XG_RANGE in(DMDA_LOCAL_INFO_GXS)+1:in(DMDA_LOCAL_INFO_GXS)+in(DMDA_LOCAL_INFO_GXM)
 40: #define YG_RANGE in(DMDA_LOCAL_INFO_GYS)+1:in(DMDA_LOCAL_INFO_GYS)+in(DMDA_LOCAL_INFO_GYM)
 41: #define ZG_RANGE in(DMDA_LOCAL_INFO_GZS)+1:in(DMDA_LOCAL_INFO_GZS)+in(DMDA_LOCAL_INFO_GZM)
 42: #define X_RANGE in(DMDA_LOCAL_INFO_XS)+1:in(DMDA_LOCAL_INFO_XS)+in(DMDA_LOCAL_INFO_XM)
 43: #define Y_RANGE in(DMDA_LOCAL_INFO_YS)+1:in(DMDA_LOCAL_INFO_YS)+in(DMDA_LOCAL_INFO_YM)
 44: #define Z_RANGE in(DMDA_LOCAL_INFO_ZS)+1:in(DMDA_LOCAL_INFO_ZS)+in(DMDA_LOCAL_INFO_ZM)

 46: #define DMDAInterpolationType PetscEnum
 47: #define DMDAElementType PetscEnum

 49: #define PetscGLL   PetscFortranAddr

 51: #endif