/[escript]/trunk/weipa/src/VisItControl.cpp
ViewVC logotype

Diff of /trunk/weipa/src/VisItControl.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3096 by caltinay, Thu Aug 19 01:40:52 2010 UTC revision 3128 by caltinay, Wed Sep 1 03:54:09 2010 UTC
# Line 202  bool initialize(const std::string& simFi Line 202  bool initialize(const std::string& simFi
202  }  }
203    
204  // Main entry point that checks for client input and publishes new data  // Main entry point that checks for client input and publishes new data
205  void publishData(int cycle, double time, escript::Domain_ptr domain,  void publishData(EscriptDataset_ptr dataset)
                  const boost::python::dict& datavars)  
206  {  {
207  #ifdef USE_VISIT  #ifdef USE_VISIT
208      int visitState = 0, err = 0;      int visitState = 0, err = 0;
209    
210      if (connected) {      if (connected) {
211          visitData->publishData(domain, datavars);          visitData->publishData(dataset);
212          visitData->setSimulationStatus(runFlag, time, cycle);          visitData->setSimulationStatus(runFlag);
213          VisItTimeStepChanged();          VisItTimeStepChanged();
214      }      }
215    
# Line 222  void publishData(int cycle, double time, Line 221  void publishData(int cycle, double time,
221          }          }
222    
223  #ifdef PASO_MPI  #ifdef PASO_MPI
224          MPI_Bcast(&visitState, 1, MPI_INT, 0, domain->getMPIComm());          MPI_Bcast(&visitState, 1, MPI_INT, 0, dataset->getMPIComm());
225  #endif  #endif
226    
227          // visitState values:          // visitState values:
# Line 238  void publishData(int cycle, double time, Line 237  void publishData(int cycle, double time,
237              if (VisItAttemptToCompleteConnection() == VISIT_OKAY) {              if (VisItAttemptToCompleteConnection() == VISIT_OKAY) {
238                  std::cout << "Client connected!" << std::endl;                  std::cout << "Client connected!" << std::endl;
239                  // publish latest data                  // publish latest data
240                  visitData->publishData(domain, datavars);                  visitData->publishData(dataset);
241                  visitData->setSimulationStatus(runFlag, time, cycle);                  visitData->setSimulationStatus(runFlag);
242                  void* cbdata = NULL;                  void* cbdata = NULL;
243                  VisItSetCommandCallback(controlCommandCallback, cbdata);                  VisItSetCommandCallback(controlCommandCallback, cbdata);
244                  VisItSetSlaveProcessCallback(slaveProcessCallback);                  VisItSetSlaveProcessCallback(slaveProcessCallback);

Legend:
Removed from v.3096  
changed lines
  Added in v.3128

  ViewVC Help
Powered by ViewVC 1.1.26