libROM
v1.0
Data-driven physical simulation library
|
#include <Utilities.h>
Static Public Member Functions | |
static void | abort (const std::string &message, const std::string &filename, int line) |
Cleanly ends the program when something horrible happened and prints a message about what took place. Takes into account whether MPI is or isn't running to decide how to die. More... | |
static std::string | processorToString (int processorID) |
Converts a processor ID to a string. Use this to ensure same width is used when converting a processor ID to a string representation. More... | |
static bool | file_exist (const std::string &filename) |
Verifies if a file exists. More... | |
Struct BasisGenerator defines Utilities contains basic, static, utility routines for error reporting, string manipulations, etc.
Definition at line 86 of file Utilities.h.
|
static |
Cleanly ends the program when something horrible happened and prints a message about what took place. Takes into account whether MPI is or isn't running to decide how to die.
[in] | message | Message to print about the cause of the abort. |
[in] | filename | Name of the file where the abort was called. |
[in] | line | Line number in the file where the abort was called. |
Definition at line 25 of file Utilities.cpp.
|
static |
Verifies if a file exists.
[in] | filename | Name of the file to be verified. |
Definition at line 70 of file Utilities.cpp.
|
static |
Converts a processor ID to a string. Use this to ensure same width is used when converting a processor ID to a string representation.
[in] | processorID | of the processor |
Definition at line 55 of file Utilities.cpp.