Class AMPManager is a utility for managing startup and shutdown for AMP applications and for changing the maximum number of patch data components supported by AMP patches. All applications should call AMPManager::startup() at the beginning of the program. Startup will initialize all packages including MPI. AMPManager::shutdown() should be called at the end of the program, before calling exit(0). Note that the shutdown, but it shuts down the packages, MPI, and deallocates memory.
More...
#include <AMPManager.h>
Class AMPManager is a utility for managing startup and shutdown for AMP applications and for changing the maximum number of patch data components supported by AMP patches. All applications should call AMPManager::startup() at the beginning of the program. Startup will initialize all packages including MPI. AMPManager::shutdown() should be called at the end of the program, before calling exit(0). Note that the shutdown, but it shuts down the packages, MPI, and deallocates memory.
Definition at line 131 of file AMPManager.h.
◆ AMPManager()
| AMP::AMPManager::AMPManager |
( |
| ) |
|
|
privatedelete |
◆ bindDevices()
| static double AMP::AMPManager::bindDevices |
( |
| ) |
|
|
staticprivate |
◆ clear_PETSc_error_handler()
| static void AMP::AMPManager::clear_PETSc_error_handler |
( |
| ) |
|
|
staticprivate |
◆ clearHandlers()
| static void AMP::AMPManager::clearHandlers |
( |
| ) |
|
|
static |
Clearthe default signal/terminate handlers (called on shutdown)
◆ clearMPIErrorHandler()
| static void AMP::AMPManager::clearMPIErrorHandler |
( |
| ) |
|
|
static |
Destroy the mpi error handler.
◆ decrementResource()
| static void AMP::AMPManager::decrementResource |
( |
const std::string & |
resource | ) |
|
|
static |
Decrement a resource counter.
◆ exitFun()
| static void AMP::AMPManager::exitFun |
( |
| ) |
|
|
staticprivate |
◆ get_args()
| static std::tuple< int, const char *const * > AMP::AMPManager::get_args |
( |
| ) |
|
|
static |
Return a reference to the original command line arguments that were used to initialize AMP.
◆ getAMPManagerProperties()
◆ getCommWorld()
| static const AMP::AMP_MPI & AMP::AMPManager::getCommWorld |
( |
| ) |
|
|
static |
◆ incrementResource()
| static void AMP::AMPManager::incrementResource |
( |
const std::string & |
resource | ) |
|
|
static |
Increment a resource counter.
◆ info()
| static std::string AMP::AMPManager::info |
( |
| ) |
|
|
static |
Return detailed revision information.
◆ initDevices()
| static double AMP::AMPManager::initDevices |
( |
| ) |
|
|
staticprivate |
◆ isFinalized()
| static bool AMP::AMPManager::isFinalized |
( |
| ) |
|
|
static |
Function to check if AMP has been finalized.
◆ isInitialized()
| static bool AMP::AMPManager::isInitialized |
( |
| ) |
|
|
static |
Function to check if AMP has been initialized.
◆ registerShutdown()
| static void AMP::AMPManager::registerShutdown |
( |
std::function< void()> |
| ) |
|
|
static |
◆ restart()
| static void AMP::AMPManager::restart |
( |
| ) |
|
|
static |
Restart as much of AMP as possible restoring it to a like new state.
◆ restart_SAMRAI()
| static void AMP::AMPManager::restart_SAMRAI |
( |
| ) |
|
|
staticprivate |
◆ revision()
| static std::array< int, 3 > AMP::AMPManager::revision |
( |
| ) |
|
|
static |
AMP version number.
This function returns the current version of AMP Note that a value of {0,0,xxx} will be returned for the development version. The build number is the revision number based on the commits in the development version. Note: when comparing versions, only the last number needs to be compared.
- Returns
- Returns array containing the {major,minor,build} version
◆ set_PETSc_error_handler()
| static void AMP::AMPManager::set_PETSc_error_handler |
( |
| ) |
|
|
staticprivate |
◆ setCommWorld()
| static void AMP::AMPManager::setCommWorld |
( |
const AMP::AMP_MPI & |
| ) |
|
|
static |
◆ setHandlers()
| static void AMP::AMPManager::setHandlers |
( |
| ) |
|
|
static |
Set the default signal/terminate handlers (called on startup)
◆ setMPIErrorHandler()
| static void AMP::AMPManager::setMPIErrorHandler |
( |
| ) |
|
|
static |
Initialize the mpi error handler.
◆ shutdown()
| static void AMP::AMPManager::shutdown |
( |
| ) |
|
|
static |
Shutdown the AMP package. Depending on the compile flags set at compile-time, this routine shuts down MPI and calls registered shutdown handlers.
◆ start_HYPRE()
| static double AMP::AMPManager::start_HYPRE |
( |
| ) |
|
|
staticprivate |
◆ start_OpenMP()
| static double AMP::AMPManager::start_OpenMP |
( |
| ) |
|
|
staticprivate |
◆ start_PETSc()
| static double AMP::AMPManager::start_PETSc |
( |
| ) |
|
|
staticprivate |
◆ start_SAMRAI()
| static double AMP::AMPManager::start_SAMRAI |
( |
| ) |
|
|
staticprivate |
◆ startup()
Initialize the AMP package. Depending on the architecture and compile flags, this routine sets up MPI, initializes IEEE exception handlers, and other architecture-specific details.
◆ stop_HYPRE()
| static double AMP::AMPManager::stop_HYPRE |
( |
| ) |
|
|
staticprivate |
◆ stop_PETSc()
| static double AMP::AMPManager::stop_PETSc |
( |
| ) |
|
|
staticprivate |
◆ stop_SAMRAI()
| static double AMP::AMPManager::stop_SAMRAI |
( |
| ) |
|
|
staticprivate |
◆ terminate_AMP()
| static void AMP::AMPManager::terminate_AMP |
( |
std::string |
message | ) |
|
|
static |
Static function to terminate AMP.
◆ d_argc
| int AMP::AMPManager::d_argc |
|
staticprivate |
◆ d_argv
| const char* const* AMP::AMPManager::d_argv |
|
staticprivate |
◆ d_atShutdown
| std::vector<std::function<void()> > AMP::AMPManager::d_atShutdown |
|
staticprivate |
◆ d_initialized
| int AMP::AMPManager::d_initialized |
|
staticprivate |
◆ d_properties
The documentation for this class was generated from the following file: