diff options
author | allen <allen@b61c5cb5-eaca-4651-9a7a-d64986f99364> | 2000-03-05 16:02:31 +0000 |
---|---|---|
committer | allen <allen@b61c5cb5-eaca-4651-9a7a-d64986f99364> | 2000-03-05 16:02:31 +0000 |
commit | b9a3a596467e5771bae1c5b096bc4da1f99a2993 (patch) | |
tree | a95886aed3fbdcbafd501dfe52a3151e0643ca36 /src/Comm.c | |
parent | c1af4abae8cf33396775ec0ca472ea2b53169f5c (diff) |
Adding prototypes and removing warning messages
Fixed CactusPUGH-PUGH/256 (missing prototype)
git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@172 b61c5cb5-eaca-4651-9a7a-d64986f99364
Diffstat (limited to 'src/Comm.c')
-rw-r--r-- | src/Comm.c | 30 |
1 files changed, 25 insertions, 5 deletions
@@ -37,7 +37,15 @@ int pugh_SyncGroupGA (cGH *GH, int vtype, int n_vars, int timelevel); -int pugh_SyncGFs(pGH *pughGH, int first_var, int n_vars, int timelevel); +int pugh_SyncGFs(pGH *pughGH, + int first_var, + int n_vars, + int timelevel); +int pugh_SyncGAs(pGH *pughGH, + int dim, + int first_var, + int n_vars, + int timelevel); void DisableGFDataStorage(pGH *GH, pGF *GF); void EnableGFDataStorage(pGH *GH, pGF *GF); int pugh_DisableGFGroupStorage(cGH *GH, @@ -64,6 +72,13 @@ int pugh_EnableGFGroupStorage(cGH *GH, int dim, int n_variables, int n_timelevels); +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); 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); @@ -190,7 +205,7 @@ int pugh_SyncGroup (cGH *GH, const char *groupname) int *pugh_ArrayGroupSize (cGH *GH, int dir, int group, const char *groupname) { int first; - int *sizep; + int *sizep=NULL; pGH *pughGH; pGF *pughGF; pGA *pughGA; @@ -302,7 +317,8 @@ int *pugh_ArrayGroupSize (cGH *GH, int dir, int group, const char *groupname) int pugh_QueryGroupStorage(cGH *GH, int group, const char *groupname) { - int first,storage; + int first; + int storage=PUGH_UNDEFINEDSTORAGE; int retval; int grouptype; pGH *pughGH; @@ -332,14 +348,18 @@ int pugh_QueryGroupStorage(cGH *GH, int group, const char *groupname) { storage = PUGH_STORAGE; } - else if (grouptype==CCTK_GF) + else if (grouptype == CCTK_GF) { storage = ((pGF *)(pughGH->variables[first][0]))->storage; } - else if (grouptype==CCTK_ARRAY) + else if (grouptype == CCTK_ARRAY) { storage = ((pGA *)(pughGH->variables[first][0]))->storage; } + else + { + CCTK_WARN(0,"Unknown group type in pugh_QueryGroupStorage"); + } if (storage == PUGH_STORAGE) { |