Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

SAMRAI::tbox::SAMRAIManager Struct Reference

Class SAMRAIManager is a utility for managing startup and shutdown for SAMRAI applications and for changing the maximum number of patch data components supported by SAMRAI patches. All applications should call SAMRAIManager::startup() (or SAMRAIManager::startup()) at the beginning of the program. Startup should be called after initializing MPI but before any SAMRAI objects are used. SAMRAIManager::shutdown() (or SAMRAIManager:shutdown()) should be called near the end of the program, but before shutting down MPI and calling exit(0). Note that the shutdown function does not exit the program; it merely shuts down certain packages and deallocates memory (mostly objects with static members). More...

#include <source/toolbox/base/SAMRAIManager.h>

List of all members.

Static Public Member Functions

static void startup ()
static void shutdown ()
static int getMaxNumberPatchDataEntries ()
static void setMaxNumberPatchDataEntries (int maxnum)


Detailed Description

Class SAMRAIManager is a utility for managing startup and shutdown for SAMRAI applications and for changing the maximum number of patch data components supported by SAMRAI patches. All applications should call SAMRAIManager::startup() (or SAMRAIManager::startup()) at the beginning of the program. Startup should be called after initializing MPI but before any SAMRAI objects are used. SAMRAIManager::shutdown() (or SAMRAIManager:shutdown()) should be called near the end of the program, but before shutting down MPI and calling exit(0). Note that the shutdown function does not exit the program; it merely shuts down certain packages and deallocates memory (mostly objects with static members).


Member Function Documentation

void SAMRAI::tbox::SAMRAIManager::startup  )  [static]
 

Initialize the SAMRAI package. Depending on the architecture and compile flags, this routine sets up MPI, initializes IEEE exception handlers, and other architecture-specific details.

void SAMRAI::tbox::SAMRAIManager::shutdown  )  [static]
 

Shutdown the SAMRAI package. Depending on the compile flags set at compile-time, this routine shuts down MPI and calls registered shutdown handlers.

int SAMRAI::tbox::SAMRAIManager::getMaxNumberPatchDataEntries  )  [static]
 

Return maximum number of patch data entries supported by SAMRAI patches. The value is either the default value (256) or the value set by calling the setMaxNumberPatchDataEntries() function.

void SAMRAI::tbox::SAMRAIManager::setMaxNumberPatchDataEntries int  maxnum  )  [static]
 

Set maximum number of patch data entries supported by SAMRAI patches. Note that this routine cannot be called more than once and it cannot be called anytime after the max patch data entries value has been accessed either by the user or internally within SAMRAI. Typically, the first access of this value occurs whenever any objects related to the patch hierarchy or variables are created. If the argument value is < 0, the default value is used.


The documentation for this struct was generated from the following files:
Generated on Fri Dec 2 11:33:18 2005 for SAMRAI by  doxygen 1.4.2