| packimpl.h (e1b06f76ad35ce2a89fc667d1feb3b2de35f6e0a) | packimpl.h (bebe2cf65d55febe21a5af8db2bd2e168caaa2e7) |
|---|---|
| 1#if !defined(_packimpl_h) 2#define _packimpl_h 3 4#include <petscdmcomposite.h> /*I "petscdmcomposite.h" I*/ 5#include <petsc/private/dmimpl.h> /*I "petscdm.h" I*/ 6 7/* 8 rstart is where an array/subvector starts in the global parallel vector, so arrays --- 10 unchanged lines hidden (view full) --- 19 /* only used for DMCOMPOSITE_DM */ 20 PetscInt *grstarts; /* global row for first unknown of this DM on each process */ 21 DM dm; 22}; 23 24typedef struct { 25 PetscInt n,N,rstart; /* rstart is relative to all processors, n unknowns owned by this process, N is total unknowns */ 26 PetscInt nghost; /* number of all local entries (includes DMDA ghost points) */ | 1#if !defined(_packimpl_h) 2#define _packimpl_h 3 4#include <petscdmcomposite.h> /*I "petscdmcomposite.h" I*/ 5#include <petsc/private/dmimpl.h> /*I "petscdm.h" I*/ 6 7/* 8 rstart is where an array/subvector starts in the global parallel vector, so arrays --- 10 unchanged lines hidden (view full) --- 19 /* only used for DMCOMPOSITE_DM */ 20 PetscInt *grstarts; /* global row for first unknown of this DM on each process */ 21 DM dm; 22}; 23 24typedef struct { 25 PetscInt n,N,rstart; /* rstart is relative to all processors, n unknowns owned by this process, N is total unknowns */ 26 PetscInt nghost; /* number of all local entries (includes DMDA ghost points) */ |
| 27 PetscInt nDM,nmine; /* how many DM's and seperate redundant arrays used to build DM(nmine is ones on this process) */ | 27 PetscInt nDM,nmine; /* how many DM's and separate redundant arrays used to build DM(nmine is ones on this process) */ |
| 28 PetscBool setup; /* after this is set, cannot add new links to the DM*/ 29 struct DMCompositeLink *next; 30 31 PetscErrorCode (*FormCoupleLocations)(DM,Mat,PetscInt*,PetscInt*,PetscInt,PetscInt,PetscInt,PetscInt); 32} DM_Composite; 33 34PETSC_INTERN PetscErrorCode DMCreateMatrix_Composite(DM,Mat*); 35 36#endif | 28 PetscBool setup; /* after this is set, cannot add new links to the DM*/ 29 struct DMCompositeLink *next; 30 31 PetscErrorCode (*FormCoupleLocations)(DM,Mat,PetscInt*,PetscInt*,PetscInt,PetscInt,PetscInt,PetscInt); 32} DM_Composite; 33 34PETSC_INTERN PetscErrorCode DMCreateMatrix_Composite(DM,Mat*); 35 36#endif |