diff options
author | goodale <goodale@bfcf8e34-485d-4d46-a995-1fd6fa6fb178> | 2000-12-08 09:17:48 +0000 |
---|---|---|
committer | goodale <goodale@bfcf8e34-485d-4d46-a995-1fd6fa6fb178> | 2000-12-08 09:17:48 +0000 |
commit | c547c0907680586bbdfab70cb039b74c8b698bb3 (patch) | |
tree | b63ceb3e87244ef39ae13d30c912cc5529f8c969 | |
parent | 338e1d9f4fbfcf3c18f9bb6e02fcf9fb070031ae (diff) |
CCTK_ParameterSet takes three strings.
Tom
git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGHIO/IsoSurfacer/trunk@26 bfcf8e34-485d-4d46-a995-1fd6fa6fb178
-rw-r--r-- | src/IsoSurfacer.c | 7 |
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; |