diff options
author | goodale <goodale@b61c5cb5-eaca-4651-9a7a-d64986f99364> | 2000-02-17 17:38:50 +0000 |
---|---|---|
committer | goodale <goodale@b61c5cb5-eaca-4651-9a7a-d64986f99364> | 2000-02-17 17:38:50 +0000 |
commit | c06576a3bcd5cace72592c6041e6fb2827ffbff6 (patch) | |
tree | 5565cc938c0841bcf8372b15496b72b6b98b221f /src/include/pGV.h | |
parent | 539cd2636da010382f41c9ff1ba237ec080e5341 (diff) |
Untabified.
Got rid of redundant file.
Did some formatting changes in line with the coding guidelines.
Tom
git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@164 b61c5cb5-eaca-4651-9a7a-d64986f99364
Diffstat (limited to 'src/include/pGV.h')
-rw-r--r-- | src/include/pGV.h | 99 |
1 files changed, 50 insertions, 49 deletions
diff --git a/src/include/pGV.h b/src/include/pGV.h index e8dc3e7..4cae517 100644 --- a/src/include/pGV.h +++ b/src/include/pGV.h @@ -9,10 +9,11 @@ @@*/ #ifndef _PGV_H_ -#define _PGV_H_ +#define _PGV_H_ 1 #ifdef __cplusplus -extern "C" { +extern "C" +{ #endif typedef enum {pgv_none, pgv_scalar, pgv_array, pgv_gf} pgv_type; @@ -22,7 +23,7 @@ typedef struct PConnectivity int dim; int *nprocs; int **neighbours; - int periodic; /* Is the system periodic? */ + int periodic; /* Is the system periodic? */ } pConnectivity; typedef struct PGS @@ -33,64 +34,64 @@ typedef struct PGS typedef struct PGExtras { - int dim; /* dimension of GA */ + int dim; /* dimension of GA */ - int *nsize; /* The global size of the array */ + int *nsize; /* The global size of the array */ /* Processor group layouts */ - double maxskew; /* Maximum point skew */ - int **lb; /* Lower bound (nprocs X dim) for each proc */ - int **ub; /* Upper bound (same sizes) */ - int *lnsize; /* Size on this processor */ - int npoints; /* LOCAL number of points on this proc. */ - int *rnpoints; /* Number of points on each proc */ - int **rnsize; /* [#points on a proc][in each dir] */ + double maxskew; /* Maximum point skew */ + int **lb; /* Lower bound (nprocs X dim) for each proc */ + int **ub; /* Upper bound (same sizes) */ + int *lnsize; /* Size on this processor */ + int npoints; /* LOCAL number of points on this proc. */ + int *rnpoints; /* Number of points on each proc */ + int **rnsize; /* [#points on a proc][in each dir] */ /* Ghosts and overlaps. */ - int *nghostzones; /* Width of ghost zone */ - int *ownership[PUGH_NSTAGGER][2]; - /* The box owned in each direction. */ - /* [stagger][min/max][dir] */ - - int **ghosts[PUGH_NSTAGGER][2]; - /* The ghost zones on each face. */ - /* [stagger][min/max][face][dir] */ - - int **overlap[PUGH_NSTAGGER][2]; - /* The overlap region owned on each face. */ - /* [stagger][min/max][face][ijk] */ + int *nghostzones; /* Width of ghost zone */ + int *ownership[PUGH_NSTAGGER][2]; + /* The box owned in each direction. */ + /* [stagger][min/max][dir] */ + + int **ghosts[PUGH_NSTAGGER][2]; + /* The ghost zones on each face. */ + /* [stagger][min/max][face][dir] */ + + int **overlap[PUGH_NSTAGGER][2]; + /* The overlap region owned on each face. */ + /* [stagger][min/max][face][ijk] */ } pGExtras; typedef struct PGA { - char *name; /* The name of the grid function */ - int id; /* My ID number in my GH parent. */ - void *padddata; /* Storage for the data. */ - void *data; /* See the note above. */ - /* buffer_sz[2*dim] */ - int *buffer_sz; /* Size of the face ghost zones */ - void **send_buffer; /* Storage for buffered Comm if */ - void **recv_buffer; /* we don't use derived types */ - int commflag; /* What is the comm flag set to? */ - /* do_comm[2*dim] */ - int *docomm; /* Do we do comm or not? */ - int storage; /* Do we have storage or not? */ - int stagger; /* Only Vertex Centered now... */ - - void *parent; /* The GH to which I belong */ - /* Note this is struct PGH whic is - typedeffed to pGH in pGH.h, but - that is included AFTER this so we - need the full name for the lookahead - structure reference thingy. - */ - - int varsize; /* The size of the data */ - int vtype; /* The type of the data */ + char *name; /* The name of the grid function */ + int id; /* My ID number in my GH parent. */ + void *padddata; /* Storage for the data. */ + void *data; /* See the note above. */ + /* buffer_sz[2*dim] */ + int *buffer_sz; /* Size of the face ghost zones */ + void **send_buffer; /* Storage for buffered Comm if */ + void **recv_buffer; /* we don't use derived types */ + int commflag; /* What is the comm flag set to? */ + /* do_comm[2*dim] */ + int *docomm; /* Do we do comm or not? */ + int storage; /* Do we have storage or not? */ + int stagger; /* Only Vertex Centered now... */ + + void *parent; /* The GH to which I belong */ + /* Note this is struct PGH whic is + typedeffed to pGH in pGH.h, but + that is included AFTER this so we + need the full name for the lookahead + structure reference thingy. + */ + + int varsize; /* The size of the data */ + int vtype; /* The type of the data */ #ifdef MPI - MPI_Request *sreq, *rreq; /* Comm requests and statuses. */ + MPI_Request *sreq, *rreq; /* Comm requests and statuses. */ MPI_Status ms; #endif |