aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/IsoSurfacer.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/IsoSurfacer.c b/src/IsoSurfacer.c
index d904a86..e5e87ed 100644
--- a/src/IsoSurfacer.c
+++ b/src/IsoSurfacer.c
@@ -114,6 +114,7 @@ static int IsoSurfacerHandleCommands(cGH *GH)
#ifdef CCTK_MPI
/* now we need to bcast this value to all procs */
{
+ char stringval[200];
CCTK_REAL tmpval;
pGH *pughGH = PUGH_pGH (GH);
if(pughGH->myproc==0 && Iso_PollCommand(GH,&command)){
@@ -128,7 +129,9 @@ 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));
+
+ sprintf(stringval,"%f", tmpval);
+ CCTK_ParameterSet("isovalue","isosurfacer",stringval);
/* CCTK_SetParameter(); how? */
}
#else
@@ -141,7 +144,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));
+ CCTK_ParameterSet("isovalue","isosurfacer",command.cmd.value);
}
#endif
return 0;