IOSS 2.0
Loading...
Searching...
No Matches
Iocatalyst::CatalystManager Class Reference

#include <Iocatalyst_CatalystManager.h>

Classes

struct  CatalystProps
 

Public Types

enum  mState { mInit , mExecute , mFinalize }
 
enum  pState { pWaitExecute , pExecute , pFinalize }
 
using CatalystPipelineID = unsigned int
 

Public Member Functions

std::string getCatalystPythonDriverPath ()
 
conduit_cpp::Node getInitializeConduit ()
 
mState getManagerState ()
 
pState getPipelineState (CatalystPipelineID id)
 
void writeToCatalystLogFile (const Ioss::ParallelUtils &putils, const Ioss::PropertyManager &props)
 
CatalystPipelineID initialize (const Ioss::PropertyManager &props, const Ioss::ParallelUtils &putils)
 
void execute (CatalystPipelineID id, int state, double time, conduit_cpp::Node &data)
 
void finalize (CatalystPipelineID id)
 
void addScriptProps (conduit_cpp::Node &n, const CatalystProps &p)
 
void addExecuteProps (conduit_cpp::Node &n, const CatalystProps &p, int state, double time)
 
void addExecuteData (conduit_cpp::Node &n, const std::string &channelName, int state, double time, conduit_cpp::Node &data)
 
CatalystPropsgetCatalystProps (CatalystPipelineID id)
 
std::string getCatDataPath (const Ioss::PropertyManager &props)
 
void setMultiInputWaitState (CatalystPipelineID id, int state, double time, conduit_cpp::Node &data)
 
bool canExecuteMultiInputScript (CatalystPipelineID id)
 
void clearAllMultiInputWaitStates (CatalystPipelineID id)
 
void reset ()
 
std::string getCatScriptFnamePath (const CatalystProps &p)
 
std::string getCatScriptArgsPath (const CatalystProps &p)
 
std::string getCatScriptPath (const CatalystProps &p)
 
std::string getCatStatePath ()
 
std::string getCatChannelsPath ()
 

Static Public Member Functions

static CatalystManagergetInstance ()
 

Static Public Attributes

static const std::string ARGS = "args"
 
static const std::string CATALYST = "catalyst"
 
static const std::string CATALYST_BLOCK_PARSE_INPUT_DECK_NAME
 
static const std::string CATALYST_BLOCK_PARSE_JSON_STRING
 
static const std::string CATALYST_DEBUG_LEVEL = "CATALYST_DEBUG_LEVEL"
 
static const std::string CATALYST_ENABLE_LOGGING = "CATALYST_ENABLE_LOGGING"
 
static const std::string CATALYST_OUTPUT_DIRECTORY = "CATALYST_OUTPUT_DIRECTORY"
 
static const std::string CATALYST_OUTPUT_DEFAULT = "CatalystOutput"
 
static const std::string CATALYST_INPUT_NAME = "CATALYST_INPUT_NAME"
 
static const std::string CATALYST_INPUT_DEFAULT = "input"
 
static const std::string CATALYST_MULTI_INPUT_PIPELINE_NAME
 
static const std::string CATALYST_SCRIPT = "CATALYST_SCRIPT"
 
static const std::string CATALYST_SCRIPT_EXTRA_FILE = "CATALYST_SCRIPT_EXTRA_FILE"
 
static const std::string CHANNELS = "channels"
 
static const std::string CYCLE = "cycle"
 
static const std::string DATA = "data"
 
static const std::string PHACTORI_JSON_SCRIPT = "PHACTORI_JSON_SCRIPT"
 
static const std::string PIPELINES = "pipelines"
 
static const std::string FILENAME = "filename"
 
static const std::string FS = "/"
 
static const std::string IOSS = "ioss"
 
static const std::string SCRIPTS = "scripts"
 
static const std::string STATE = "state"
 
static const std::string TIME = "time"
 
static const std::string TIMESTEP = "timestep"
 
static const std::string TYPE = "type"
 

Private Member Functions

 CatalystManager ()
 
 ~CatalystManager ()
 
 CatalystManager (const CatalystManager &)=delete
 
CatalystManageroperator= (const CatalystManager &)=delete
 
void broadCastString (std::string &s, const Ioss::ParallelUtils &putils)
 
void broadCastStatusCode (bool &statusCode, const Ioss::ParallelUtils &putils)
 
void incrementOutputCounts ()
 

Private Attributes

CatalystPipelineID catalystOutputIDNumber
 
std::map< CatalystPipelineID, CatalystPropscatPipes
 
mState managerState
 

Member Typedef Documentation

◆ CatalystPipelineID

Member Enumeration Documentation

◆ mState

Enumerator
mInit 
mExecute 
mFinalize 

◆ pState

Enumerator
pWaitExecute 
pExecute 
pFinalize 

Constructor & Destructor Documentation

◆ CatalystManager() [1/2]

Iocatalyst::CatalystManager::CatalystManager ( )
private

◆ ~CatalystManager()

Iocatalyst::CatalystManager::~CatalystManager ( )
private

◆ CatalystManager() [2/2]

Iocatalyst::CatalystManager::CatalystManager ( const CatalystManager & )
privatedelete

Member Function Documentation

◆ addExecuteData()

void Iocatalyst::CatalystManager::addExecuteData ( conduit_cpp::Node & n,
const std::string & channelName,
int state,
double time,
conduit_cpp::Node & data )

◆ addExecuteProps()

void Iocatalyst::CatalystManager::addExecuteProps ( conduit_cpp::Node & n,
const CatalystProps & p,
int state,
double time )

◆ addScriptProps()

void Iocatalyst::CatalystManager::addScriptProps ( conduit_cpp::Node & n,
const CatalystProps & p )

◆ broadCastStatusCode()

void Iocatalyst::CatalystManager::broadCastStatusCode ( bool & statusCode,
const Ioss::ParallelUtils & putils )
private

◆ broadCastString()

void Iocatalyst::CatalystManager::broadCastString ( std::string & s,
const Ioss::ParallelUtils & putils )
private

◆ canExecuteMultiInputScript()

bool Iocatalyst::CatalystManager::canExecuteMultiInputScript ( CatalystPipelineID id)

◆ clearAllMultiInputWaitStates()

void Iocatalyst::CatalystManager::clearAllMultiInputWaitStates ( CatalystPipelineID id)

◆ execute()

void Iocatalyst::CatalystManager::execute ( CatalystManager::CatalystPipelineID id,
int state,
double time,
conduit_cpp::Node & data )

◆ finalize()

void Iocatalyst::CatalystManager::finalize ( CatalystPipelineID id)

◆ getCatalystProps()

CatalystManager::CatalystProps & Iocatalyst::CatalystManager::getCatalystProps ( CatalystPipelineID id)

◆ getCatalystPythonDriverPath()

std::string Iocatalyst::CatalystManager::getCatalystPythonDriverPath ( )
inline

◆ getCatChannelsPath()

std::string Iocatalyst::CatalystManager::getCatChannelsPath ( )
inline

◆ getCatDataPath()

std::string Iocatalyst::CatalystManager::getCatDataPath ( const Ioss::PropertyManager & props)

◆ getCatScriptArgsPath()

std::string Iocatalyst::CatalystManager::getCatScriptArgsPath ( const CatalystProps & p)
inline

◆ getCatScriptFnamePath()

std::string Iocatalyst::CatalystManager::getCatScriptFnamePath ( const CatalystProps & p)
inline

◆ getCatScriptPath()

std::string Iocatalyst::CatalystManager::getCatScriptPath ( const CatalystProps & p)
inline

◆ getCatStatePath()

std::string Iocatalyst::CatalystManager::getCatStatePath ( )
inline

◆ getInitializeConduit()

conduit_cpp::Node Iocatalyst::CatalystManager::getInitializeConduit ( )

◆ getInstance()

static CatalystManager & Iocatalyst::CatalystManager::getInstance ( )
inlinestatic

◆ getManagerState()

mState Iocatalyst::CatalystManager::getManagerState ( )
inline

◆ getPipelineState()

CatalystManager::pState Iocatalyst::CatalystManager::getPipelineState ( CatalystPipelineID id)

◆ incrementOutputCounts()

void Iocatalyst::CatalystManager::incrementOutputCounts ( )
private

◆ initialize()

CatalystManager::CatalystPipelineID Iocatalyst::CatalystManager::initialize ( const Ioss::PropertyManager & props,
const Ioss::ParallelUtils & putils )

◆ operator=()

CatalystManager & Iocatalyst::CatalystManager::operator= ( const CatalystManager & )
privatedelete

◆ reset()

void Iocatalyst::CatalystManager::reset ( )
inline

◆ setMultiInputWaitState()

void Iocatalyst::CatalystManager::setMultiInputWaitState ( CatalystPipelineID id,
int state,
double time,
conduit_cpp::Node & data )

◆ writeToCatalystLogFile()

void Iocatalyst::CatalystManager::writeToCatalystLogFile ( const Ioss::ParallelUtils & putils,
const Ioss::PropertyManager & props )

Member Data Documentation

◆ ARGS

const std::string Iocatalyst::CatalystManager::ARGS = "args"
inlinestatic

◆ CATALYST

const std::string Iocatalyst::CatalystManager::CATALYST = "catalyst"
inlinestatic

◆ CATALYST_BLOCK_PARSE_INPUT_DECK_NAME

const std::string Iocatalyst::CatalystManager::CATALYST_BLOCK_PARSE_INPUT_DECK_NAME
inlinestatic
Initial value:
=
"CATALYST_BLOCK_PARSE_INPUT_DECK_NAME"

◆ CATALYST_BLOCK_PARSE_JSON_STRING

const std::string Iocatalyst::CatalystManager::CATALYST_BLOCK_PARSE_JSON_STRING
inlinestatic
Initial value:
=
"CATALYST_BLOCK_PARSE_JSON_STRING"

◆ CATALYST_DEBUG_LEVEL

const std::string Iocatalyst::CatalystManager::CATALYST_DEBUG_LEVEL = "CATALYST_DEBUG_LEVEL"
inlinestatic

◆ CATALYST_ENABLE_LOGGING

const std::string Iocatalyst::CatalystManager::CATALYST_ENABLE_LOGGING = "CATALYST_ENABLE_LOGGING"
inlinestatic

◆ CATALYST_INPUT_DEFAULT

const std::string Iocatalyst::CatalystManager::CATALYST_INPUT_DEFAULT = "input"
inlinestatic

◆ CATALYST_INPUT_NAME

const std::string Iocatalyst::CatalystManager::CATALYST_INPUT_NAME = "CATALYST_INPUT_NAME"
inlinestatic

◆ CATALYST_MULTI_INPUT_PIPELINE_NAME

const std::string Iocatalyst::CatalystManager::CATALYST_MULTI_INPUT_PIPELINE_NAME
inlinestatic
Initial value:
=
"CATALYST_MULTI_INPUT_PIPELINE_NAME"

◆ CATALYST_OUTPUT_DEFAULT

const std::string Iocatalyst::CatalystManager::CATALYST_OUTPUT_DEFAULT = "CatalystOutput"
inlinestatic

◆ CATALYST_OUTPUT_DIRECTORY

const std::string Iocatalyst::CatalystManager::CATALYST_OUTPUT_DIRECTORY = "CATALYST_OUTPUT_DIRECTORY"
inlinestatic

◆ CATALYST_SCRIPT

const std::string Iocatalyst::CatalystManager::CATALYST_SCRIPT = "CATALYST_SCRIPT"
inlinestatic

◆ CATALYST_SCRIPT_EXTRA_FILE

const std::string Iocatalyst::CatalystManager::CATALYST_SCRIPT_EXTRA_FILE = "CATALYST_SCRIPT_EXTRA_FILE"
inlinestatic

◆ catalystOutputIDNumber

CatalystPipelineID Iocatalyst::CatalystManager::catalystOutputIDNumber
private

◆ catPipes

std::map<CatalystPipelineID, CatalystProps> Iocatalyst::CatalystManager::catPipes
private

◆ CHANNELS

const std::string Iocatalyst::CatalystManager::CHANNELS = "channels"
inlinestatic

◆ CYCLE

const std::string Iocatalyst::CatalystManager::CYCLE = "cycle"
inlinestatic

◆ DATA

const std::string Iocatalyst::CatalystManager::DATA = "data"
inlinestatic

◆ FILENAME

const std::string Iocatalyst::CatalystManager::FILENAME = "filename"
inlinestatic

◆ FS

const std::string Iocatalyst::CatalystManager::FS = "/"
inlinestatic

◆ IOSS

const std::string Iocatalyst::CatalystManager::IOSS = "ioss"
inlinestatic

◆ managerState

mState Iocatalyst::CatalystManager::managerState
private

◆ PHACTORI_JSON_SCRIPT

const std::string Iocatalyst::CatalystManager::PHACTORI_JSON_SCRIPT = "PHACTORI_JSON_SCRIPT"
inlinestatic

◆ PIPELINES

const std::string Iocatalyst::CatalystManager::PIPELINES = "pipelines"
inlinestatic

◆ SCRIPTS

const std::string Iocatalyst::CatalystManager::SCRIPTS = "scripts"
inlinestatic

◆ STATE

const std::string Iocatalyst::CatalystManager::STATE = "state"
inlinestatic

◆ TIME

const std::string Iocatalyst::CatalystManager::TIME = "time"
inlinestatic

◆ TIMESTEP

const std::string Iocatalyst::CatalystManager::TIMESTEP = "timestep"
inlinestatic

◆ TYPE

const std::string Iocatalyst::CatalystManager::TYPE = "type"
inlinestatic

The documentation for this class was generated from the following files: