aboutsummaryrefslogtreecommitdiff
path: root/src/IsoSurfacer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/IsoSurfacer.c')
-rw-r--r--src/IsoSurfacer.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/IsoSurfacer.c b/src/IsoSurfacer.c
index d761ada..b81edfc 100644
--- a/src/IsoSurfacer.c
+++ b/src/IsoSurfacer.c
@@ -58,6 +58,7 @@ static void WriteHDF5(cGH *GH, polypatch *totals, isosurfacerGH *myGH,
/***************************************************************************/
static int IsoSurfacerHandleCommands(cGH *GH)
{
+ IsoCommand command;
isosurfacerGH *myGH = (isosurfacerGH *) GH->extensions [CCTK_GHExtensionHandle ("IsoSurfacer")];
/* Grab all events that are waiting in queue */
@@ -108,6 +109,15 @@ static int IsoSurfacerHandleCommands(cGH *GH)
/* puts("Nuthin to do (yet)"); */
/* Here it just needs to read from the control socket
and then change the isosurface appropriately */
+ IsoCommand *Iso_PollCommand(cGH *cctkGH,IsoCommand *cmd);
+
+ if(Iso_PollCommand(GH,&command)){
+#ifdef VERBOSE
+ printf("+++++++++Process Command [%s] [%s] [%s]\n",
+ command.cmd.object,command.cmd.target,command.cmd.value);
+#endif
+ myGH->isovalue=atof(command.cmd.value); /* steer it. */
+ }
return 0;
}