7#ifndef __CATALYST_MANAGER_H
8#define __CATALYST_MANAGER_H
10#include "vtkCPDataDescription.h"
14#include <vtkSmartPointer.h>
18class vtkCPPythonPipeline;
44 std::unique_ptr<Iovs_exodus::CatalystExodusMeshBase>
47 std::unique_ptr<Iovs_cgns::CatalystCGNSMeshBase>
70 std::vector<std::string> &error_and_warning_messages,
129 unsigned int retVal = 0;
169 std::map<CatalystPipelineID, CatalystPipelineState>
pipelines;
170 std::map<CatalystPipelineID, LoggingPair>
logging;
Definition CatalystManagerBase.h:25
Definition CatalystManager.h:92
unsigned int performCoProcessingCount
Definition CatalystManager.h:136
std::shared_ptr< CatalystMeshWriter > meshWriter
Definition CatalystManager.h:141
vtkSmartPointer< vtkCPPythonPipeline > & getPipeline()
Definition CatalystManager.h:101
vtkSmartPointer< vtkCPDataDescription > & getDataDescription()
Definition CatalystManager.h:103
unsigned int deletePipelineCount
Definition CatalystManager.h:137
CatalystPipelineState()
Definition CatalystManager.h:94
vtkSmartPointer< vtkCPPythonPipeline > pipeline
Definition CatalystManager.h:139
unsigned int getNumberOfInputs()
Definition CatalystManager.h:127
bool canDoOperation(unsigned int &operationCount)
Definition CatalystManager.h:114
unsigned int setTimeDataCount
Definition CatalystManager.h:138
bool canPerformCoProcessing()
Definition CatalystManager.h:107
bool canDeletePipeline()
Definition CatalystManager.h:109
vtkSmartPointer< vtkCPDataDescription > dataDescription
Definition CatalystManager.h:140
bool canSetTimeData()
Definition CatalystManager.h:111
std::shared_ptr< CatalystMeshWriter > & getMeshWriter()
Definition CatalystManager.h:105
Definition CatalystManager.h:27
void initCatalystPipeline(CatalystMeshInit &cmInit, vtkDataObject *vobj, const CatalystPipelineInfo &cpi)
CatalystPipelineID getCatalystPipelineID(CatalystMeshInit &cmInit)
void initCatalystPythonSystemPaths()
void addInputToPipeline(vtkDataObject *vobj, const CatalystPipelineInfo &cpi)
CatalystPipelineInfo createCatalystPipelineInfo(CatalystMeshInit &cmInit)
bool writeMeshON(const CatalystPipelineInfo &cpi)
void PerformCoProcessing(std::vector< int > &error_and_warning_codes, std::vector< std::string > &error_and_warning_messages, const CatalystPipelineInfo &cpi)
std::map< CatalystMultiInputPipelineName, CatalystPipelineID > multiInputPipelines
Definition CatalystManager.h:171
void logMemoryUsageAndTakeTimerReading(const CatalystPipelineInfo &cpi)
std::map< CatalystPipelineID, LoggingPair > logging
Definition CatalystManager.h:170
void writeMesh(const CatalystPipelineInfo &cpi)
void parsePhactoriFile(const std::string &filepath, ParseResult &pres)
int getCatalystOutputIDNumber()
std::map< CatalystPipelineID, CatalystPipelineState > pipelines
Definition CatalystManager.h:169
CatalystManager & operator=(const CatalystManager &)=delete
std::string CatalystMultiInputPipelineName
Definition CatalystManager.h:33
CatalystManager(const CatalystManager &)=delete
std::pair< clock_t, clock_t > TimerPair
Definition CatalystManager.h:144
std::string getCatalystPluginVersion()
void SetTimeData(double currentTime, int timeStep, const CatalystPipelineInfo &cpi)
unsigned int CatalystPipelineID
Definition CatalystManager.h:31
vtkCPProcessor * coProcessor
Definition CatalystManager.h:168
CatalystPipelineID catalystOutputIDNumber
Definition CatalystManager.h:166
std::unique_ptr< Iovs_cgns::CatalystCGNSMeshBase > createCatalystCGNSMesh(CatalystMeshInit &cmInit)
std::pair< TimerPair, vtkDoubleArray * > LoggingPair
Definition CatalystManager.h:145
void parsePhactoriString(const std::string &phactori, ParseResult &pres)
void initCatalystLogging(const CatalystPipelineInfo &cpi)
std::string CatalystInputName
Definition CatalystManager.h:32
void WriteToLogFile(const CatalystPipelineInfo &cpi)
std::unique_ptr< Iovs_exodus::CatalystExodusMeshBase > createCatalystExodusMesh(CatalystExodusMeshInit &cmInit)
const std::string catalystPluginVersion
Definition CatalystManager.h:30
CatalystPipelineID catalystOutputReferenceCount
Definition CatalystManager.h:167
void DeletePipeline(const CatalystPipelineInfo &cpi)
void initializeIfNeeded()
void registerMeshInPipeline(CatalystMeshInit &cmInit, vtkDataObject *vobj, const CatalystPipelineInfo &cpi)
void incrementOutputCounts()
Definition CatalystMeshWriter.h:17
Definition CatalystManager.h:22
CatalystManagerBase * CreateCatalystManagerInstance()
Definition CatalystManagerBase.h:83
Definition CatalystManagerBase.h:55
Definition CatalystManagerBase.h:32
Definition CatalystManager.h:53
CatalystPipelineID catalystPipelineID
Definition CatalystManager.h:54
CatalystInputName catalystInputName
Definition CatalystManager.h:55
std::string getLogFileName() const
Definition CatalystManager.h:56