IBAMR
An adaptive and distributed-memory parallel implementation of the immersed boundary (IB) method
|
Initialization for IBAMR programs. More...
#include </home/runner/work/IBAMR/IBAMR/ibtk/include/ibtk/IBTKInit.h>
Public Member Functions | |
IBTKInit (int argc, char **argv, MPI_Comm communicator=MPI_COMM_WORLD, char *petsc_file=nullptr, char *petsc_help=nullptr) | |
IBTKInit ()=delete | |
Default constructor. This function is not implemented and should not be used. | |
IBTKInit (const IBTKInit &from)=delete | |
Copy constructor. This function is not implemented and should not be used. | |
IBTKInit & | operator= (const IBTKInit &that)=delete |
Assignment operator. This function is not implemented and should not be used. | |
~IBTKInit () | |
Static Public Member Functions | |
static bool | check_initialized () |
Check if the library has been initialized. Throw an error if it has not been initialized. | |
Initialization for IBAMR programs.
The singleton IBTKInit class handles the initializations for PETSc, LibMesh, and SAMRAI. This object should be created using the initialize() function at the start of the main() function. The destruction of the object correctly closes the libraries.
IBTK::IBTKInit::IBTKInit | ( | int | argc, |
char ** | argv, | ||
MPI_Comm | communicator = MPI_COMM_WORLD , |
||
char * | petsc_file = nullptr , |
||
char * | petsc_help = nullptr |
||
) |
IBTK::IBTKInit::~IBTKInit | ( | ) |
Destructor. Closes libraries appropriately.