From c88b671dceaf9e342382ec508fe8648bed6bb102 Mon Sep 17 00:00:00 2001 From: jshalf Date: Fri, 8 Dec 2000 06:49:22 +0000 Subject: 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 --- src/IsoSurfacer.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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. */ -- cgit v1.2.3