parameters: (datadescription)
docstring: Callback to do co-processing for current timestep
docstring_summary: Callback to do co-processing for current timestep
docstring_tokens: Callback to do co - processing for current timestep
function: def DoCoProcessing(datadescription):
      "Callback to do co-processing for current timestep"
      global coprocessor
  
      # Update the coprocessor by providing it the newly generated simulation data.
      # If the pipeline hasn't been setup yet, this will setup the pipeline.
      coprocessor.UpdateProducers(datadescription)
  
      # Write output data, if appropriate.
      coprocessor.WriteData(datadescription);
  
      # Write image capture (Last arg: rescale lookup table), if appropriate.
      coprocessor.WriteImages(datadescription, rescale_lookuptable=False)
  
      # Live Visualization, if enabled.
      coprocessor.DoLiveVisualization(datadescription, "localhost", 22222)
function_tokens: def DoCoProcessing ( datadescription ) : global coprocessor # Update the coprocessor by providing it the newly generated simulation data. # If the pipeline hasn't been setup yet, this will setup the pipeline. coprocessor . UpdateProducers ( datadescription ) # Write output data, if appropriate. coprocessor . WriteData ( datadescription ) # Write image capture (Last arg: rescale lookup table), if appropriate. coprocessor . WriteImages ( datadescription , rescale_lookuptable = False ) # Live Visualization, if enabled. coprocessor . DoLiveVisualization ( datadescription , "localhost" , 22222 )