aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgoodale <goodale@b61c5cb5-eaca-4651-9a7a-d64986f99364>1999-02-09 09:23:56 +0000
committergoodale <goodale@b61c5cb5-eaca-4651-9a7a-d64986f99364>1999-02-09 09:23:56 +0000
commite3d49cea21dfeddf50636ea42d11ae4968f3b1a9 (patch)
tree2d14176c948f914cfc75da9c215a09ab7b396006
parenta879b7574c9de7d593d76ff1a954cbab03f6690d (diff)
Missed this file yesterday. It now calls the routines to setup variables
on a pGH. Tom git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@5 b61c5cb5-eaca-4651-9a7a-d64986f99364
-rw-r--r--src/GHExtension.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/GHExtension.c b/src/GHExtension.c
index 6880379..5005514 100644
--- a/src/GHExtension.c
+++ b/src/GHExtension.c
@@ -10,9 +10,12 @@
#include <stdio.h>
#include <stdlib.h>
#include "flesh.h"
+#include "Groups.h"
+
#include "pugh.h"
#include "declare_parameters.h"
+
static char *rcsid = "$Header$";
pGH *SetupPGH(int nx, int ny, int nz, int ghost_size, int stagger);
@@ -23,6 +26,8 @@ void *pugh_SetupGH(tFleshConfig *config,
{
DECLARE_PARAMETERS
pGH *newGH;
+ int group;
+ int gtype, vtype, n_variables;
newGH = SetupPGH(global_nx, global_ny, global_nz,
ghost_size, PUGH_NO_STAGGER);
@@ -33,6 +38,15 @@ void *pugh_SetupGH(tFleshConfig *config,
exit(2);
}
+ for(group = 0; group < CCTK_GetNumGroups(); group++)
+ {
+ CCTK_GetGroupData(group, &gtype, &vtype, &n_variables);
+
+ pugh_SetupGroup(newGH, gtype, vtype, n_variables);
+
+ }
+
+
return newGH;
}