diff options
author | goodale <goodale@b61c5cb5-eaca-4651-9a7a-d64986f99364> | 1999-11-30 23:43:58 +0000 |
---|---|---|
committer | goodale <goodale@b61c5cb5-eaca-4651-9a7a-d64986f99364> | 1999-11-30 23:43:58 +0000 |
commit | 3e4301c03fc5a2fafe71ca1dc2ac43fdb43d9f76 (patch) | |
tree | 70f94c6c96d5cacab6d036891521a6e0bb534a4c | |
parent | f0570f4d024b5bc94f86f64d3f7543b5afca506d (diff) |
Added lots of missing function prototypes.
Tom
git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@136 b61c5cb5-eaca-4651-9a7a-d64986f99364
-rw-r--r-- | src/Comm.c | 26 | ||||
-rw-r--r-- | src/SetupGroup.c | 2 | ||||
-rw-r--r-- | src/SetupPGH.c | 8 | ||||
-rw-r--r-- | src/SetupPGV.c | 89 |
4 files changed, 123 insertions, 2 deletions
@@ -30,6 +30,32 @@ void pGF_FinishRecv(pGH *GH, pGF *GF, int dir); void pGF_PostRecv(pGH *GH, pGF *GF, int dir); void pGF_PostSend(pGH *GH, pGF *GF, int dir); void SetGFComm(pGH *GH, pGF *res, int docomm); +int pugh_EnableArrayGroupStorage(cGH *GH, + int group, + int vtype, + int dim, + int n_variables, + int n_timelevels); + +int pugh_EnableGFGroupStorage(cGH *GH, + int group, + int vtype, + int dim, + int n_variables, + int n_timelevels); +int pugh_DisableArrayGroupStorage(cGH *GH, + int group, + int vtype, + int dim, + int n_variables, + int n_timelevels); + +int pugh_DisableGFGroupStorage(cGH *GH, + int group, + int vtype, + int dim, + int n_variables, + int n_timelevels); /*@@ @routine pugh_SyncGroup diff --git a/src/SetupGroup.c b/src/SetupGroup.c index f313274..f44ebd5 100644 --- a/src/SetupGroup.c +++ b/src/SetupGroup.c @@ -92,7 +92,7 @@ int pugh_SetupScalarGroup(pGH *newGH, int vtype, int n_variables, int n_timeleve switch(vtype) { case CCTK_VARIABLE_CHAR : var_size = sizeof(CCTK_CHAR); break; - case CCTK_VARIABLE_INT : var_size = sizeof(CCTK_INT) ; break; + case CCTK_VARIABLE_INT : var_size = sizeof(CCTK_INT) ; break; case CCTK_VARIABLE_REAL : var_size = sizeof(CCTK_REAL); break; case CCTK_VARIABLE_COMPLEX : var_size = sizeof(CCTK_COMPLEX); break; default : CCTK_WARN(0,"Unknown variable type in pugh_SetupScalarGroup"); diff --git a/src/SetupPGH.c b/src/SetupPGH.c index 14d606a..84e0783 100644 --- a/src/SetupPGH.c +++ b/src/SetupPGH.c @@ -9,6 +9,8 @@ @enddesc @@*/ +static char *rcsid = "$Id$"; + #include <stdio.h> #include <stdlib.h> #include <math.h> @@ -17,7 +19,11 @@ #include "pugh.h" #include "cctk_parameters.h" -static char *rcsid = "$Id$"; + +void BoundingBox(pGH *GH, int *nproc, int staggertype); +void Neighbours1D(pGH *GH, int *nproc, int *maxpoints, int *minpoints, double *avgpoints); +void Neighbours3D(pGH *GH, int *nproc, int *maxpoints, int *minpoints, double *avgpoints); +void DestroyPGF(pGH *GH, pGF **GFin); /*@@ @routine SetupPGH diff --git a/src/SetupPGV.c b/src/SetupPGV.c index d1f1844..b66a9a2 100644 --- a/src/SetupPGV.c +++ b/src/SetupPGV.c @@ -18,6 +18,95 @@ static char *rcsid = "$Header$"; #include "pugh.h" +/* Prototypes */ + +pGExtras *pugh_SetupPGExtras(int dim, + int periodic, + int stagger, + int *sh, + int *nghosts, + int total_procs, + int *nprocs, + int this_proc); + +pConnectivity *pugh_SetupConnectivity(int dim, + int total_procs, + int *nprocs, + int periodic); + +int pugh_GenerateTopology(int dim, int total_procs, int *nprocs); + +int pugh_GenerateNeighbours(int dim, int total_procs, int *nprocs, int **neighbours, int periodic); + +int pugh_DecomposeIJK(int dim, int ijk, int *nprocs, int *pos); + +int pugh_ComposeIJK(int dim, + int *nprocs, + int *pos); + +int pugh_SetupPGExtrasMemory(int dim, + int total_procs, + int *nprocs, + pGExtras *this); + +int pugh_SetupPGExtrasSizes(int dim, + int periodic, + int stagger, + int *sh, + int *nghosts, + int total_procs, + int *nprocs, + int this_proc, + pGExtras *this); + +int pugh_SetupPGExtrasOwnership(int dim, + int periodic, + int stagger, + int *sh, + int *nghosts, + int total_procs, + int *nprocs, + int this_proc, + pGExtras *this); + +int pugh_SetupBoundingBox(int dim, + int periodic, + int stagger, + int *sh, + int *nghosts, + int total_procs, + int *nprocs, + pGExtras *this); + +int pugh_SetupRemoteSizes(int dim, + int periodic, + int stagger, + int *sh, + int *nghosts, + int total_procs, + int *nprocs, + pGExtras *this); + +pGA *SetupPGA(void *parent, + pGExtras *extras, + pConnectivity *connectivity, + const char *name, + int id, + int varsize, + int vtype, + int stagger) ; + +int pugh_EnablePGAStorage(pGA *GA, + int this_proc, + int zero_memory, + int padding_active, + int padding_cacheline_bits, + int padding_size, + int padding_address_spacing); + +int pugh_DisableGADataStorage(pGA *GA); + + /*@@ @routine pugh_SetupPGExtras @date Tue Nov 9 09:23:27 1999 |