Commit 41737db5 authored by bonnell's avatar bonnell

Add synchronization to the update plots simulation test

git-svn-id: http://visit.ilight.com/svn/visit/trunk/src@23655 18c085ea-50e0-402c-830e-de6fd14e8384
parent e6ec953f
...@@ -91,6 +91,7 @@ typedef struct ...@@ -91,6 +91,7 @@ typedef struct
int pcId; int pcId;
int meshId; int meshId;
int echo;
} simulation_data; } simulation_data;
void void
...@@ -111,6 +112,7 @@ simulation_data_ctor(simulation_data *sim) ...@@ -111,6 +112,7 @@ simulation_data_ctor(simulation_data *sim)
sim->pcId = -1; sim->pcId = -1;
sim->meshId = -1; sim->meshId = -1;
sim->echo = 0;
} }
void void
...@@ -353,6 +355,12 @@ ProcessConsoleCommand(simulation_data *sim) ...@@ -353,6 +355,12 @@ ProcessConsoleCommand(simulation_data *sim)
else if(strcmp(cmd, "export") == 0) else if(strcmp(cmd, "export") == 0)
sim->export = 1; sim->export = 1;
#endif #endif
if(sim->echo && sim->par_rank == 0)
{
fprintf(stderr, "Command '%s' completed.\n", cmd);
fflush(stderr);
}
} }
/****************************************************************************** /******************************************************************************
...@@ -526,8 +534,12 @@ int main(int argc, char **argv) ...@@ -526,8 +534,12 @@ int main(int argc, char **argv)
/* Check for command line arguments. */ /* Check for command line arguments. */
for(i = 1; i < argc; ++i) for(i = 1; i < argc; ++i)
{
if(strcmp(argv[i], "-batch") == 0) if(strcmp(argv[i], "-batch") == 0)
sim.batch = 1; sim.batch = 1;
else if(strcmp(argv[i], "-echo") == 0)
sim.echo = 1;
}
/* Initialize environment variables. */ /* Initialize environment variables. */
SimulationArguments(argc, argv); SimulationArguments(argc, argv);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment