15 #ifndef GEOSX_MANAGERS_INITIALIZATION_HPP_ 16 #define GEOSX_MANAGERS_INITIALIZATION_HPP_ 20 #include "mpiCommunications/MpiWrapper.hpp" 23 #ifdef GEOSX_USE_CALIPER 87 void basicSetup(
int argc,
char * argv[],
bool const parseCommandLine=
false );
136 void setupMPI(
int argc,
char * argv[] );
150 template<
typename T >
153 #if defined( GEOSX_USE_CALIPER ) 154 T
const total = MpiWrapper::Sum( value );
155 adiak::value( name +
" sum", total );
156 adiak::value( name +
" mean",
double( total ) / MpiWrapper::Comm_size() );
157 adiak::value( name +
" min", MpiWrapper::Min( value ) );
158 adiak::value( name +
" max", MpiWrapper::Max( value ) );
167 #endif // GEOSX_MANAGERS_INITIALIZATION_HPP_ std::string timerOutput
The string used to initialize caliper.
void basicSetup(int argc, char *argv[], bool const parseCommandLine=false)
Perform the basic GEOSX initialization and optionally parse the command line input.
void setupCXXUtils()
Setup the LvArray library. This initializes signal handling and the floating point environment...
bool beginFromRestart
True iff restarting from the middle of an existing run.
void setupMPI(int argc, char *argv[])
Setup MPI.
integer useNonblockingMPI
void setupOpenMP()
Setup OpenMP.
CommandLineOptions const & getCommandLineOptions()
void setupLogger()
Initialize the logger.
void finalizeLogger()
Finalize the logger.
void basicCleanup()
Perform the basic GEOSX cleanup.
std::string problemName
The name of the problem being run.
std::string schemaName
The name of the schema.
void overrideInputFileName(std::string const &inputFileName)
Override the input file name, useful only for tests.
integer yPartitionsOverride
The number of partitions in the y direction.
std::string outputDirectory
The directory to put all output.
void finalizeMPI()
Finalize MPI.
integer overridePartitionNumbers
True if using the partition override.
integer zPartitionsOverride
The number of partitions in the z direction.
std::int32_t integer
Signed integer type.
integer xPartitionsOverride
The number of partitions in the x direction.
void setupMKL()
Setup MKL if in use.
#define GEOSX_UNUSED_VAR(...)
Mark an unused variable and silence compiler warnings.
integer suppressMoveLogging
Suppress logging of host-device data migration.
std::string string
String type.
std::string inputFileName
The path to the input xml.
void pushStatsIntoAdiak(std::string const &name, T const value)
Compute the sum, mean, min, and max of value across ranks and push them into Adiak using name...
std::string restartFileName
The path to the restart file, if specified.