IOSS 2.0
Loading...
Searching...
No Matches
IossApplication Class Reference

#include <IossApplication.h>

Collaboration diagram for IossApplication:
[legend]

Public Member Functions

 IossApplication (int argc, char **argv)
 
 IossApplication ()
 
 ~IossApplication ()
 
void runApplication ()
 
int getApplicationExitCode ()
 
bool printIOSSRegionReportON ()
 
void setPrintIOSSRegionReport (bool status)
 
bool outputCopyOfInputDatabaseON ()
 
void setOutputCopyOfInputDatabase (bool status)
 
bool outputCatalystMeshOneFileON ()
 
void setOutputCatalystMeshOneFile (bool status)
 
bool outputCatalystMeshFilePerProcON ()
 
void setOutputCatalystMeshFilePerProc (bool status)
 
bool forceCGNSOutputON ()
 
void setForceCGNSOutput (bool status)
 
bool forceExodusOutputON ()
 
void setForceExodusOutput (bool status)
 
bool useIOSSInputDBTypeON ()
 
std::string getIOSSInputDBType ()
 
void setIOSSInputDBType (const std::string &dbType)
 
bool usePhactoriInputScriptON ()
 
std::string getPhactoriInputScript ()
 
void setPhactoriInputScript (const std::string &scriptFilePath)
 
bool usePhactoriInputJSONON ()
 
int getNumberOfPhactoriInputJSONs ()
 
std::string getPhactoriInputJSON (int ndx)
 
void addPhactoriInputJSON (const std::string &jsonFilePath)
 
bool useParaViewExportedScriptON ()
 
std::string getParaViewExportedScript ()
 
void setParaViewExportedScript (const std::string &exportedScriptFilePath)
 
bool useCatalystStartTimeStepON ()
 
int getCatalystStartTimeStep ()
 
void setCatalystStartTimeStep (int timeStep)
 
bool useCatalystStopTimeStepON ()
 
int getCatalystStopTimeStep ()
 
void setCatalystStopTimeStep (int timeStep)
 
bool sendMultipleGridsToTheSamePipelineON ()
 
void setSendMultipleGridsToTheSamePipeline (bool onOffFlag)
 
std::string & getFileName (int ndx)
 
int getNumberOfFileNames ()
 
void addFileName (const std::string &name)
 
void setAdditionalProperties (Ioss::PropertyManager *additionalProperties)
 
Ioss::PropertyManagergetAdditionalProperties ()
 

Private Member Functions

int getMyRank ()
 
int getNumRanks ()
 
bool isRankZero ()
 
bool isSerial ()
 
bool decomposedMeshExists (int ndx)
 
int getNumberOfInputIOSSRegions ()
 
Ioss::RegiongetInputIOSSRegion (int ndx)
 
void copyInputIOSSDatabaseOnRank ()
 
void printMessage (const std::string &message)
 
void printErrorMessage (const std::string &message)
 
void printIOSSRegionReportsForRank ()
 
void exitApplicationSuccess ()
 
void exitApplicationFailure ()
 
void exitApplication ()
 
void initialize ()
 
void SetUpDefaultProperties (Ioss::PropertyManager *outputProperties)
 
void addAdditionalProperties (Ioss::PropertyManager *outputProperties)
 
void callCatalystIOSSDatabaseOnRank ()
 
void callCatalystIOSSDatabaseOnRankOneGrid ()
 
void callCatalystIOSSDatabaseOnRankMultiGrid (bool sendAllGridsToOnePipeline)
 
void openInputIOSSDatabase (int ndx)
 
void openInputIOSSDatabases ()
 
void processCommandLine (int argc, char **argv)
 
void initializeMPI (int argc, char **argv)
 
void initMPIRankAndSize ()
 
void finalizeMPI ()
 
void printUsageMessage ()
 
void checkForOnlyOneCatalystOutputPath ()
 
void checkForOnlyOneCatalystOutputType ()
 
void getStartStopTimeSteps (int numTimeSteps, int &startTimeStep, int &stopTimeStep)
 
std::string getIOSSDatabaseTypeFromFile (int ndx)
 
std::string getIOSSDatabaseType (int ndx)
 
std::string getCatalystDatabaseType (int ndx)
 
std::string getFileSuffix (int ndx)
 
std::string getParallelFileName (int ndx)
 
std::string getPhactoriDefaultJSON ()
 

Private Attributes

int myRank
 
int numRanks
 
bool useCatalystStartTimeStep
 
int catalystStartTimeStep
 
bool useCatalystStopTimeStep
 
int catalystStopTimeStep
 
bool printIOSSReport
 
bool copyDatabase
 
bool writeCatalystMeshOneFile
 
bool writeCatalystMeshFilePerProc
 
bool usePhactoriInputScript
 
bool usePhactoriInputJSON
 
bool useParaViewExportedScript
 
bool forceCGNSOutput
 
bool forceExodusOutput
 
bool useIOSSInputDBType
 
bool hasCommandLineArguments
 
int applicationExitCode
 
bool sendMultipleGridsToTheSamePipeline
 
std::string iossInputDBType
 
std::string phactoriInputScriptFilePath
 
std::string phactoriInputJSONFilePath
 
std::string paraViewExportedScriptFilePath
 
std::vector< std::string > fileName
 
std::vector< std::string > phctriInptJSONFilePathList
 
std::string copyOutputDatabaseName = "iossDatabaseCopy"
 
std::string outputCatalystMeshFileName = "iossDatabaseCatalystMesh"
 
std::string iossReportFileName = "IossRegionReport"
 
const std::string applicationName = "ioss2catalyst"
 
std::vector< Ioss::Region * > inputIOSSRegion
 
Ioss::PropertyManageradditionalProperties
 
const char * CATALYST_PLUGIN_DYNAMIC_LIBRARY = "libcatalystioss.so"
 

Constructor & Destructor Documentation

◆ IossApplication() [1/2]

IossApplication::IossApplication ( int argc,
char ** argv )

◆ IossApplication() [2/2]

IossApplication::IossApplication ( )

◆ ~IossApplication()

IossApplication::~IossApplication ( )

Member Function Documentation

◆ addAdditionalProperties()

void IossApplication::addAdditionalProperties ( Ioss::PropertyManager * outputProperties)
private

◆ addFileName()

void IossApplication::addFileName ( const std::string & name)

◆ addPhactoriInputJSON()

void IossApplication::addPhactoriInputJSON ( const std::string & jsonFilePath)

◆ callCatalystIOSSDatabaseOnRank()

void IossApplication::callCatalystIOSSDatabaseOnRank ( )
private

◆ callCatalystIOSSDatabaseOnRankMultiGrid()

void IossApplication::callCatalystIOSSDatabaseOnRankMultiGrid ( bool sendAllGridsToOnePipeline)
private

◆ callCatalystIOSSDatabaseOnRankOneGrid()

void IossApplication::callCatalystIOSSDatabaseOnRankOneGrid ( )
private

◆ checkForOnlyOneCatalystOutputPath()

void IossApplication::checkForOnlyOneCatalystOutputPath ( )
private

◆ checkForOnlyOneCatalystOutputType()

void IossApplication::checkForOnlyOneCatalystOutputType ( )
private

◆ copyInputIOSSDatabaseOnRank()

void IossApplication::copyInputIOSSDatabaseOnRank ( )
private

◆ decomposedMeshExists()

bool IossApplication::decomposedMeshExists ( int ndx)
private

◆ exitApplication()

void IossApplication::exitApplication ( )
private

◆ exitApplicationFailure()

void IossApplication::exitApplicationFailure ( )
private

◆ exitApplicationSuccess()

void IossApplication::exitApplicationSuccess ( )
private

◆ finalizeMPI()

void IossApplication::finalizeMPI ( )
private

◆ forceCGNSOutputON()

bool IossApplication::forceCGNSOutputON ( )

◆ forceExodusOutputON()

bool IossApplication::forceExodusOutputON ( )

◆ getAdditionalProperties()

Ioss::PropertyManager * IossApplication::getAdditionalProperties ( )

◆ getApplicationExitCode()

int IossApplication::getApplicationExitCode ( )

◆ getCatalystDatabaseType()

std::string IossApplication::getCatalystDatabaseType ( int ndx)
private

◆ getCatalystStartTimeStep()

int IossApplication::getCatalystStartTimeStep ( )

◆ getCatalystStopTimeStep()

int IossApplication::getCatalystStopTimeStep ( )

◆ getFileName()

std::string & IossApplication::getFileName ( int ndx)

◆ getFileSuffix()

std::string IossApplication::getFileSuffix ( int ndx)
private

◆ getInputIOSSRegion()

Ioss::Region * IossApplication::getInputIOSSRegion ( int ndx)
private

◆ getIOSSDatabaseType()

std::string IossApplication::getIOSSDatabaseType ( int ndx)
private

◆ getIOSSDatabaseTypeFromFile()

std::string IossApplication::getIOSSDatabaseTypeFromFile ( int ndx)
private

◆ getIOSSInputDBType()

std::string IossApplication::getIOSSInputDBType ( )

◆ getMyRank()

int IossApplication::getMyRank ( )
private

◆ getNumberOfFileNames()

int IossApplication::getNumberOfFileNames ( )

◆ getNumberOfInputIOSSRegions()

int IossApplication::getNumberOfInputIOSSRegions ( )
private

◆ getNumberOfPhactoriInputJSONs()

int IossApplication::getNumberOfPhactoriInputJSONs ( )

◆ getNumRanks()

int IossApplication::getNumRanks ( )
private

◆ getParallelFileName()

std::string IossApplication::getParallelFileName ( int ndx)
private

◆ getParaViewExportedScript()

std::string IossApplication::getParaViewExportedScript ( )

◆ getPhactoriDefaultJSON()

std::string IossApplication::getPhactoriDefaultJSON ( )
private

◆ getPhactoriInputJSON()

std::string IossApplication::getPhactoriInputJSON ( int ndx)

◆ getPhactoriInputScript()

std::string IossApplication::getPhactoriInputScript ( )

◆ getStartStopTimeSteps()

void IossApplication::getStartStopTimeSteps ( int numTimeSteps,
int & startTimeStep,
int & stopTimeStep )
private

◆ initialize()

void IossApplication::initialize ( )
private

◆ initializeMPI()

void IossApplication::initializeMPI ( int argc,
char ** argv )
private

◆ initMPIRankAndSize()

void IossApplication::initMPIRankAndSize ( )
private

◆ isRankZero()

bool IossApplication::isRankZero ( )
private

◆ isSerial()

bool IossApplication::isSerial ( )
private

◆ openInputIOSSDatabase()

void IossApplication::openInputIOSSDatabase ( int ndx)
private

◆ openInputIOSSDatabases()

void IossApplication::openInputIOSSDatabases ( )
private

◆ outputCatalystMeshFilePerProcON()

bool IossApplication::outputCatalystMeshFilePerProcON ( )

◆ outputCatalystMeshOneFileON()

bool IossApplication::outputCatalystMeshOneFileON ( )

◆ outputCopyOfInputDatabaseON()

bool IossApplication::outputCopyOfInputDatabaseON ( )

◆ printErrorMessage()

void IossApplication::printErrorMessage ( const std::string & message)
private

◆ printIOSSRegionReportON()

bool IossApplication::printIOSSRegionReportON ( )

◆ printIOSSRegionReportsForRank()

void IossApplication::printIOSSRegionReportsForRank ( )
private

◆ printMessage()

void IossApplication::printMessage ( const std::string & message)
private

◆ printUsageMessage()

void IossApplication::printUsageMessage ( )
private

◆ processCommandLine()

void IossApplication::processCommandLine ( int argc,
char ** argv )
private

◆ runApplication()

void IossApplication::runApplication ( )

◆ sendMultipleGridsToTheSamePipelineON()

bool IossApplication::sendMultipleGridsToTheSamePipelineON ( )

◆ setAdditionalProperties()

void IossApplication::setAdditionalProperties ( Ioss::PropertyManager * additionalProperties)

◆ setCatalystStartTimeStep()

void IossApplication::setCatalystStartTimeStep ( int timeStep)

◆ setCatalystStopTimeStep()

void IossApplication::setCatalystStopTimeStep ( int timeStep)

◆ setForceCGNSOutput()

void IossApplication::setForceCGNSOutput ( bool status)

◆ setForceExodusOutput()

void IossApplication::setForceExodusOutput ( bool status)

◆ setIOSSInputDBType()

void IossApplication::setIOSSInputDBType ( const std::string & dbType)

◆ setOutputCatalystMeshFilePerProc()

void IossApplication::setOutputCatalystMeshFilePerProc ( bool status)

◆ setOutputCatalystMeshOneFile()

void IossApplication::setOutputCatalystMeshOneFile ( bool status)

◆ setOutputCopyOfInputDatabase()

void IossApplication::setOutputCopyOfInputDatabase ( bool status)

◆ setParaViewExportedScript()

void IossApplication::setParaViewExportedScript ( const std::string & exportedScriptFilePath)

◆ setPhactoriInputScript()

void IossApplication::setPhactoriInputScript ( const std::string & scriptFilePath)

◆ setPrintIOSSRegionReport()

void IossApplication::setPrintIOSSRegionReport ( bool status)

◆ setSendMultipleGridsToTheSamePipeline()

void IossApplication::setSendMultipleGridsToTheSamePipeline ( bool onOffFlag)

◆ SetUpDefaultProperties()

void IossApplication::SetUpDefaultProperties ( Ioss::PropertyManager * outputProperties)
private

◆ useCatalystStartTimeStepON()

bool IossApplication::useCatalystStartTimeStepON ( )

◆ useCatalystStopTimeStepON()

bool IossApplication::useCatalystStopTimeStepON ( )

◆ useIOSSInputDBTypeON()

bool IossApplication::useIOSSInputDBTypeON ( )

◆ useParaViewExportedScriptON()

bool IossApplication::useParaViewExportedScriptON ( )

◆ usePhactoriInputJSONON()

bool IossApplication::usePhactoriInputJSONON ( )

◆ usePhactoriInputScriptON()

bool IossApplication::usePhactoriInputScriptON ( )

Member Data Documentation

◆ additionalProperties

Ioss::PropertyManager* IossApplication::additionalProperties
private

◆ applicationExitCode

int IossApplication::applicationExitCode
private

◆ applicationName

const std::string IossApplication::applicationName = "ioss2catalyst"
private

◆ CATALYST_PLUGIN_DYNAMIC_LIBRARY

const char* IossApplication::CATALYST_PLUGIN_DYNAMIC_LIBRARY = "libcatalystioss.so"
private

◆ catalystStartTimeStep

int IossApplication::catalystStartTimeStep
private

◆ catalystStopTimeStep

int IossApplication::catalystStopTimeStep
private

◆ copyDatabase

bool IossApplication::copyDatabase
private

◆ copyOutputDatabaseName

std::string IossApplication::copyOutputDatabaseName = "iossDatabaseCopy"
private

◆ fileName

std::vector<std::string> IossApplication::fileName
private

◆ forceCGNSOutput

bool IossApplication::forceCGNSOutput
private

◆ forceExodusOutput

bool IossApplication::forceExodusOutput
private

◆ hasCommandLineArguments

bool IossApplication::hasCommandLineArguments
private

◆ inputIOSSRegion

std::vector<Ioss::Region *> IossApplication::inputIOSSRegion
private

◆ iossInputDBType

std::string IossApplication::iossInputDBType
private

◆ iossReportFileName

std::string IossApplication::iossReportFileName = "IossRegionReport"
private

◆ myRank

int IossApplication::myRank
private

◆ numRanks

int IossApplication::numRanks
private

◆ outputCatalystMeshFileName

std::string IossApplication::outputCatalystMeshFileName = "iossDatabaseCatalystMesh"
private

◆ paraViewExportedScriptFilePath

std::string IossApplication::paraViewExportedScriptFilePath
private

◆ phactoriInputJSONFilePath

std::string IossApplication::phactoriInputJSONFilePath
private

◆ phactoriInputScriptFilePath

std::string IossApplication::phactoriInputScriptFilePath
private

◆ phctriInptJSONFilePathList

std::vector<std::string> IossApplication::phctriInptJSONFilePathList
private

◆ printIOSSReport

bool IossApplication::printIOSSReport
private

◆ sendMultipleGridsToTheSamePipeline

bool IossApplication::sendMultipleGridsToTheSamePipeline
private

◆ useCatalystStartTimeStep

bool IossApplication::useCatalystStartTimeStep
private

◆ useCatalystStopTimeStep

bool IossApplication::useCatalystStopTimeStep
private

◆ useIOSSInputDBType

bool IossApplication::useIOSSInputDBType
private

◆ useParaViewExportedScript

bool IossApplication::useParaViewExportedScript
private

◆ usePhactoriInputJSON

bool IossApplication::usePhactoriInputJSON
private

◆ usePhactoriInputScript

bool IossApplication::usePhactoriInputScript
private

◆ writeCatalystMeshFilePerProc

bool IossApplication::writeCatalystMeshFilePerProc
private

◆ writeCatalystMeshOneFile

bool IossApplication::writeCatalystMeshOneFile
private

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