aboutsummaryrefslogtreecommitdiff
path: root/src/GHExtension.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/GHExtension.c')
-rw-r--r--src/GHExtension.c12
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: */