Serac
0.1
Serac is an implicit thermal strucural mechanics simulation code.
|
This file contains the all the necessary functions and macros required for logging as well as a helper function to exit the program gracefully. More...
#include "axom/slic.hpp"
#include "axom/fmt.hpp"
#include "mpi.h"
Go to the source code of this file.
Namespaces | |
serac | |
Accelerator functionality. | |
Functions | |
bool | serac::logger::initialize (MPI_Comm comm) |
Initializes and setups the logger. More... | |
void | serac::logger::finalize () |
Finalizes the logger. More... | |
void | serac::logger::flush () |
Flushes messages currently held by the logger. More... | |
This file contains the all the necessary functions and macros required for logging as well as a helper function to exit the program gracefully.
Definition in file logger.hpp.
void serac::logger::finalize | ( | ) |
Finalizes the logger.
Closes and finalizes the SLIC logger.
Definition at line 87 of file logger.cpp.
void serac::logger::flush | ( | ) |
Flushes messages currently held by the logger.
If running in parallel, SLIC doesn't output messages immediately. This flushes all messages currently held by SLIC. This is a collective operation because messages can be spread across MPI ranks.
Definition at line 89 of file logger.cpp.
bool serac::logger::initialize | ( | MPI_Comm | comm | ) |
Initializes and setups the logger.
Setups and tailors the SLIC logger for Serac. Sets the SLIC loggings streams and tells SLIC how to format the messages. This function also creates different logging streams if you are running serial or parallel.
[in] | comm | MPI communicator that the logger will use |
Definition at line 14 of file logger.cpp.