26 static Utils instance;
30 static bool fileExists(
const std::string &filepath);
32 std::string getCatalystPythonDriverPath();
43 void createDatabaseOutputFile(
const DatabaseInfo &dbinfo);
45 std::unique_ptr<Iovs_exodus::CatalystExodusMeshBase>
48 std::unique_ptr<Iovs_cgns::CatalystCGNSMeshBase>
51 std::string getDatabaseOutputFilePath(
const std::string &databaseFilename,
54 void reportCatalystErrorMessages(
const std::vector<int> &error_codes,
55 const std::vector<std::string> &error_messages,
int myRank);
70 void checkCatalystInterfaceAndPluginVersions();
75 std::string getRestartTag(
const std::string &databaseFilename);
77 void broadCastString(std::string &s,
const DatabaseInfo &dbinfo);
79 void broadCastStatusCode(
bool &statusCode,
const DatabaseInfo &dbinfo);
81 void loadPluginLibrary();
82 void setPythonPathForParaViewPythonZipFile(std::string ¶viewPythonZipFilePath);
84 bool getCatalystPluginPath(std::string &catalystPluginPath, std::string &libOSMesaPath);
86 std::string getSierraInstallDirectory();
88 std::string getCatalystAdapterInstallDirectory();
92 void *dlHandle =
nullptr;
93 void *dlHandleLibOSMesa =
nullptr;
96 const char *CATALYST_PLUGIN_DYNAMIC_LIBRARY =
"libcatalystioss.dylib";
98 const char *CATALYST_PLUGIN_DYNAMIC_LIBRARY =
"libcatalystioss.so";
100 const char *CATALYST_PLUGIN_PYTHON_MODULE =
"PhactoriDriver.py";
101 const char *CATALYST_PLUGIN_PATH =
"viz/catalyst/install";
102 const char *CATALYST_FILE_SUFFIX =
".dummy.pv.catalyst.e";
103 const char *CATALYST_OUTPUT_DIRECTORY =
"CatalystOutput";
104 const char *CATALYST_INSTALL_LIB_DIR =
"/lib/";
105 const char *CATALYST_INSTALL_PHACTORI_DIR =
"/phactori/";
106 const char *CATALYST_IOSS_CATALYST_PLUGIN_DIR =
"/current_ioss_catalyst_plugin_version";
107 const char *CATALYST_LIB_OSMESA =
"libOSMesa.so";
108 const char *CATALYST_LIB_OSMESA_DIR =
"/current_paraview_install/lib/";
109 const char *CATALYST_PARAVIEW_PYTHON_ZIP_FILE =
110 "/current_paraview_lib_python/site-packages/_paraview.zip";