aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/IsoSurfacer.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/IsoSurfacer.c b/src/IsoSurfacer.c
index 18434f7..d904a86 100644
--- a/src/IsoSurfacer.c
+++ b/src/IsoSurfacer.c
@@ -128,6 +128,7 @@ static int IsoSurfacerHandleCommands(cGH *GH)
PUGH_MPI_REAL,0, /* ugh. nor REAL8 */
pughGH->PUGH_COMM_WORLD));
myGH->isovalue=tmpval; /* copyback */
+ CCTK_ParameterSet("isovalue","isosurfacer",&(myGH->isovalue));
/* CCTK_SetParameter(); how? */
}
#else
@@ -140,6 +141,7 @@ static int IsoSurfacerHandleCommands(cGH *GH)
/* If we have MPI, must propagate the steering info
to all processes */
/* CCTK_SetParameter(); how? */
+ CCTK_ParameterSet("isovalue","isosurfacer",&(myGH->isovalue));
}
#endif
return 0;
@@ -264,10 +266,12 @@ static void computeIso(int index, cGH *GH, isosurfacerGH *myGH)
}
int IsoSurfacer(cGH *GH){
+ DECLARE_CCTK_PARAMETERS
int i,n;
isosurfacerGH *myGH = (isosurfacerGH *) GH->extensions [CCTK_GHExtensionHandle ("IsoSurfacer")];
if(!myGH->RunIsoSurfacer) return 0; /* not running */
IsoSurfacerHandleCommands(GH);
+ myGH->isovalue=isovalue; /* take the contents of the "steered" isosurface value and put it here */
/* do a check for new isosurfaces */
/* Perhaps do a bcast for "changed" flags.
which are embedded in each iso. */