diff options
author | allen <allen@c78560ca-4b45-4335-b268-5f3340f3cb52> | 1999-07-08 12:35:15 +0000 |
---|---|---|
committer | allen <allen@c78560ca-4b45-4335-b268-5f3340f3cb52> | 1999-07-08 12:35:15 +0000 |
commit | 99b470e1b03e70b940b52e53a89d321ce28a3141 (patch) | |
tree | cea2fa9301d861c6e0cff90db2c1df5cb9510ff5 /src/GHExtension.c | |
parent | ab0518e7f2589c2e913c45086e436617b18cf182 (diff) |
New Group function names
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/CartGrid3D/trunk@34 c78560ca-4b45-4335-b268-5f3340f3cb52
Diffstat (limited to 'src/GHExtension.c')
-rw-r--r-- | src/GHExtension.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/GHExtension.c b/src/GHExtension.c index 5177424..fe93fd3 100644 --- a/src/GHExtension.c +++ b/src/GHExtension.c @@ -15,8 +15,8 @@ void *Symmetry_AllocGHex(tFleshConfig *config, int convlevel, cGH *GH) { SymmetryGHex *newGHex; /* Type of GHextension is EinsteinBoundGHex */ printf("Setting up GH extension\n"); - NumVars = CCTK_GetNumVars(); /* Get number of grid functions */ - grid_dim = CCTK_GetMaxDim(); /* Get maximal dimension of the grid */ + NumVars = CCTK_NumVars(); /* Get number of grid functions */ + grid_dim = CCTK_MaxDim(); /* Get maximal dimension of the grid */ /* allocate the GHextension */ newGHex = (SymmetryGHex*)malloc(sizeof(SymmetryGHex)); @@ -32,7 +32,7 @@ void *Symmetry_AllocGHex(tFleshConfig *config, int convlevel, cGH *GH) { /* Now we have something, that looks like [0..NumVars-1][0..grid_dim-1] and we return that. For the progammer (that's me): This will be merged into the GH and can be referenced in the following manner: - int handle = CCTK_GetGHExtensionHandle("Symmetry"); + int handle = CCTK_GHExtensionHandle("Symmetry"); ..... which returns a pointer the GHextension BoundGHEx = ((pGH *)GH->extensions[handle]); ..... BoundGHex can now be used as: @@ -47,11 +47,11 @@ void Symmetry_InitGHex(cGH *GH) { SymmetryGHex *newGHex; int handle; int gf,d; - int NumVars =CCTK_GetNumVars(); + int NumVars =CCTK_NumVars(); int grid_dim; - grid_dim = CCTK_GetMaxDim(); - handle = CCTK_GetGHExtensionHandle("Symmetry"); + grid_dim = CCTK_MaxDim(); + handle = CCTK_GHExtensionHandle("Symmetry"); newGHex = (SymmetryGHex*) GH->extensions[handle]; /* ... and initialize them: */ |