aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjshalf <jshalf@bfcf8e34-485d-4d46-a995-1fd6fa6fb178>2000-12-08 06:49:22 +0000
committerjshalf <jshalf@bfcf8e34-485d-4d46-a995-1fd6fa6fb178>2000-12-08 06:49:22 +0000
commitc88b671dceaf9e342382ec508fe8648bed6bb102 (patch)
treebb7a915dc6b1121bd292818c9244352d4f10a778 /src
parent253b44155d17ef56b0d342f98e8e1c269ab85509 (diff)
Added the CCTK_ParameterSet() stuff and copy value of isosurfacer::isovalue
to myGH->isovalue on each cycle. git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGHIO/IsoSurfacer/trunk@24 bfcf8e34-485d-4d46-a995-1fd6fa6fb178
Diffstat (limited to 'src')
-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. */