From c547c0907680586bbdfab70cb039b74c8b698bb3 Mon Sep 17 00:00:00 2001 From: goodale Date: Fri, 8 Dec 2000 09:17:48 +0000 Subject: CCTK_ParameterSet takes three strings. Tom git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGHIO/IsoSurfacer/trunk@26 bfcf8e34-485d-4d46-a995-1fd6fa6fb178 --- src/IsoSurfacer.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src') 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; -- cgit v1.2.3