IOSS 2.0
Loading...
Searching...
No Matches
Iovs::Utils Class Reference

#include <Iovs_Utils.h>

Collaboration diagram for Iovs::Utils:
[legend]

Classes

struct  DatabaseInfo
 

Public Member Functions

std::string getCatalystPythonDriverPath ()
 
void checkDbUsage (Ioss::DatabaseUsage db_usage)
 
void createDatabaseOutputFile (const DatabaseInfo &dbinfo)
 
std::unique_ptr< Iovs_exodus::CatalystExodusMeshBasecreateCatalystExodusMesh (const DatabaseInfo &dbinfo, const Ioss::PropertyManager &props)
 
std::unique_ptr< Iovs_cgns::CatalystCGNSMeshBasecreateCatalystCGNSMesh (const DatabaseInfo &dbinfo, const Ioss::PropertyManager &props)
 
std::string getDatabaseOutputFilePath (const std::string &databaseFilename, const Ioss::PropertyManager &properties)
 
void reportCatalystErrorMessages (const std::vector< int > &error_codes, const std::vector< std::string > &error_messages, int myRank)
 
void writeToCatalystLogFile (const DatabaseInfo &dbinfo, const Ioss::PropertyManager &props)
 
CatalystManagerBasegetCatalystManager ()
 

Static Public Member Functions

static UtilsgetInstance ()
 
static bool fileExists (const std::string &filepath)
 

Private Member Functions

 Utils ()
 
 ~Utils ()
 
 Utils (const Utils &)=delete
 
Utilsoperator= (const Utils &)=delete
 
CatalystManagerBasecreateCatalystManagerInstance ()
 
void checkCatalystInterfaceAndPluginVersions ()
 
void initMeshFromIOSSProps (CatalystManagerBase::CatalystMeshInit &cmInit, const DatabaseInfo &dbinfo, const Ioss::PropertyManager &props)
 
std::string getRestartTag (const std::string &databaseFilename)
 
void broadCastString (std::string &s, const DatabaseInfo &dbinfo)
 
void broadCastStatusCode (bool &statusCode, const DatabaseInfo &dbinfo)
 
void loadPluginLibrary ()
 
void setPythonPathForParaViewPythonZipFile (std::string &paraviewPythonZipFilePath)
 
bool getCatalystPluginPath (std::string &catalystPluginPath, std::string &libOSMesaPath)
 
std::string getSierraInstallDirectory ()
 
std::string getCatalystAdapterInstallDirectory ()
 
void * getDlHandle ()
 

Private Attributes

CatalystManagerBasecatalystManager = nullptr
 
void * dlHandle = nullptr
 
void * dlHandleLibOSMesa = nullptr
 
const char * CATALYST_PLUGIN_DYNAMIC_LIBRARY = "libcatalystioss.so"
 
const char * CATALYST_PLUGIN_PYTHON_MODULE = "PhactoriDriver.py"
 
const char * CATALYST_PLUGIN_PATH = "viz/catalyst/install"
 
const char * CATALYST_FILE_SUFFIX = ".dummy.pv.catalyst.e"
 
const char * CATALYST_OUTPUT_DIRECTORY = "CatalystOutput"
 
const char * CATALYST_INSTALL_LIB_DIR = "/lib/"
 
const char * CATALYST_INSTALL_PHACTORI_DIR = "/phactori/"
 
const char * CATALYST_IOSS_CATALYST_PLUGIN_DIR = "/current_ioss_catalyst_plugin_version"
 
const char * CATALYST_LIB_OSMESA = "libOSMesa.so"
 
const char * CATALYST_LIB_OSMESA_DIR = "/current_paraview_install/lib/"
 
const char * CATALYST_PARAVIEW_PYTHON_ZIP_FILE
 

Constructor & Destructor Documentation

◆ Utils() [1/2]

Iovs::Utils::Utils ( )
private

◆ ~Utils()

Iovs::Utils::~Utils ( )
private

◆ Utils() [2/2]

Iovs::Utils::Utils ( const Utils & )
privatedelete

Member Function Documentation

◆ broadCastStatusCode()

void Iovs::Utils::broadCastStatusCode ( bool & statusCode,
const DatabaseInfo & dbinfo )
private

◆ broadCastString()

void Iovs::Utils::broadCastString ( std::string & s,
const DatabaseInfo & dbinfo )
private

◆ checkCatalystInterfaceAndPluginVersions()

void Iovs::Utils::checkCatalystInterfaceAndPluginVersions ( )
private

◆ checkDbUsage()

void Iovs::Utils::checkDbUsage ( Ioss::DatabaseUsage db_usage)

◆ createCatalystCGNSMesh()

std::unique_ptr< Iovs_cgns::CatalystCGNSMeshBase > Iovs::Utils::createCatalystCGNSMesh ( const DatabaseInfo & dbinfo,
const Ioss::PropertyManager & props )

◆ createCatalystExodusMesh()

std::unique_ptr< Iovs_exodus::CatalystExodusMeshBase > Iovs::Utils::createCatalystExodusMesh ( const DatabaseInfo & dbinfo,
const Ioss::PropertyManager & props )

◆ createCatalystManagerInstance()

CatalystManagerBase * Iovs::Utils::createCatalystManagerInstance ( )
private

◆ createDatabaseOutputFile()

void Iovs::Utils::createDatabaseOutputFile ( const DatabaseInfo & dbinfo)

◆ fileExists()

bool Iovs::Utils::fileExists ( const std::string & filepath)
static

◆ getCatalystAdapterInstallDirectory()

std::string Iovs::Utils::getCatalystAdapterInstallDirectory ( )
private

◆ getCatalystManager()

CatalystManagerBase & Iovs::Utils::getCatalystManager ( )

◆ getCatalystPluginPath()

bool Iovs::Utils::getCatalystPluginPath ( std::string & catalystPluginPath,
std::string & libOSMesaPath )
private

◆ getCatalystPythonDriverPath()

std::string Iovs::Utils::getCatalystPythonDriverPath ( )

◆ getDatabaseOutputFilePath()

std::string Iovs::Utils::getDatabaseOutputFilePath ( const std::string & databaseFilename,
const Ioss::PropertyManager & properties )

◆ getDlHandle()

void * Iovs::Utils::getDlHandle ( )
private

◆ getInstance()

static Utils & Iovs::Utils::getInstance ( )
inlinestatic

◆ getRestartTag()

std::string Iovs::Utils::getRestartTag ( const std::string & databaseFilename)
private

◆ getSierraInstallDirectory()

std::string Iovs::Utils::getSierraInstallDirectory ( )
private

◆ initMeshFromIOSSProps()

void Iovs::Utils::initMeshFromIOSSProps ( CatalystManagerBase::CatalystMeshInit & cmInit,
const DatabaseInfo & dbinfo,
const Ioss::PropertyManager & props )
private

◆ loadPluginLibrary()

void Iovs::Utils::loadPluginLibrary ( )
private

◆ operator=()

Utils & Iovs::Utils::operator= ( const Utils & )
privatedelete

◆ reportCatalystErrorMessages()

void Iovs::Utils::reportCatalystErrorMessages ( const std::vector< int > & error_codes,
const std::vector< std::string > & error_messages,
int myRank )

◆ setPythonPathForParaViewPythonZipFile()

void Iovs::Utils::setPythonPathForParaViewPythonZipFile ( std::string & paraviewPythonZipFilePath)
private

◆ writeToCatalystLogFile()

void Iovs::Utils::writeToCatalystLogFile ( const DatabaseInfo & dbinfo,
const Ioss::PropertyManager & props )

Member Data Documentation

◆ CATALYST_FILE_SUFFIX

const char* Iovs::Utils::CATALYST_FILE_SUFFIX = ".dummy.pv.catalyst.e"
private

◆ CATALYST_INSTALL_LIB_DIR

const char* Iovs::Utils::CATALYST_INSTALL_LIB_DIR = "/lib/"
private

◆ CATALYST_INSTALL_PHACTORI_DIR

const char* Iovs::Utils::CATALYST_INSTALL_PHACTORI_DIR = "/phactori/"
private

◆ CATALYST_IOSS_CATALYST_PLUGIN_DIR

const char* Iovs::Utils::CATALYST_IOSS_CATALYST_PLUGIN_DIR = "/current_ioss_catalyst_plugin_version"
private

◆ CATALYST_LIB_OSMESA

const char* Iovs::Utils::CATALYST_LIB_OSMESA = "libOSMesa.so"
private

◆ CATALYST_LIB_OSMESA_DIR

const char* Iovs::Utils::CATALYST_LIB_OSMESA_DIR = "/current_paraview_install/lib/"
private

◆ CATALYST_OUTPUT_DIRECTORY

const char* Iovs::Utils::CATALYST_OUTPUT_DIRECTORY = "CatalystOutput"
private

◆ CATALYST_PARAVIEW_PYTHON_ZIP_FILE

const char* Iovs::Utils::CATALYST_PARAVIEW_PYTHON_ZIP_FILE
private
Initial value:
=
"/current_paraview_lib_python/site-packages/_paraview.zip"

◆ CATALYST_PLUGIN_DYNAMIC_LIBRARY

const char* Iovs::Utils::CATALYST_PLUGIN_DYNAMIC_LIBRARY = "libcatalystioss.so"
private

◆ CATALYST_PLUGIN_PATH

const char* Iovs::Utils::CATALYST_PLUGIN_PATH = "viz/catalyst/install"
private

◆ CATALYST_PLUGIN_PYTHON_MODULE

const char* Iovs::Utils::CATALYST_PLUGIN_PYTHON_MODULE = "PhactoriDriver.py"
private

◆ catalystManager

CatalystManagerBase* Iovs::Utils::catalystManager = nullptr
private

◆ dlHandle

void* Iovs::Utils::dlHandle = nullptr
private

◆ dlHandleLibOSMesa

void* Iovs::Utils::dlHandleLibOSMesa = nullptr
private

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