aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}