diff options
author | goodale <goodale@b61c5cb5-eaca-4651-9a7a-d64986f99364> | 2000-02-02 12:46:07 +0000 |
---|---|---|
committer | goodale <goodale@b61c5cb5-eaca-4651-9a7a-d64986f99364> | 2000-02-02 12:46:07 +0000 |
commit | 89aecf06c6c5f4576d987727c11ee9923ced5221 (patch) | |
tree | af95cca7a85e3b4f9cb34a911aa9e875205093e5 /src/include | |
parent | 3aa37af3c2186fae78174580edf400b778cf0ebf (diff) |
Added a function
pGH *pugh_pGH(cGH *GH)
which takes a cGH and returns the associated pGH.
Added identity_string to the pGH.
These changes are for future multi-patch or multi-block changes to PUGH.
When that happens the PUGH GHExtension will no longer be a pGH, but instead
a structure containing a list or array of pGHs and status stuff so
PUGH knows which pGH is active when its routines are called.
If your thorn uses a pGH directly from the GH Extension, please change it
to use the new function.
Of course in principle no-one should be using the pGH anyway, alas currently
a fair number of things need it 8-( Ho hum.
Also removed obsolete rfrTraverse stuff completely from PUGH.
Tom
git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@156 b61c5cb5-eaca-4651-9a7a-d64986f99364
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/pGH.h | 4 | ||||
-rw-r--r-- | src/include/pugh.h | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/include/pGH.h b/src/include/pGH.h index f0b9b9f..91aae1d 100644 --- a/src/include/pGH.h +++ b/src/include/pGH.h @@ -129,6 +129,10 @@ typedef struct PGH /* #include "pGH_Extensions.h" */ + /* FIXME : should be a dynamically allocated string. + * If you change this, please change the line in pugh_SetupGH. + */ + char identity_string[20]; } pGH; #define XDP 1 diff --git a/src/include/pugh.h b/src/include/pugh.h index 16f62ec..4576cca 100644 --- a/src/include/pugh.h +++ b/src/include/pugh.h @@ -116,6 +116,8 @@ int pugh_GFSize(int dim, int pugh_GFGhostsize(int dim, int *ghostsize); +pGH *pugh_pGH(cGH *GH); + #ifdef _cplusplus } #endif |