|
Smith
0.1
Smith is an implicit thermal structural 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 | |
| smith | |
| Accelerator functionality. | |
Functions | |
| bool | smith::logger::initialize (MPI_Comm comm) |
| Initializes and setups the logger. More... | |
| void | smith::logger::finalize () |
| Finalizes the logger. More... | |
| void | smith::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 smith::logger::finalize | ( | ) |
Finalizes the logger.
Closes and finalizes the SLIC logger.
Definition at line 91 of file logger.cpp.
| void smith::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 93 of file logger.cpp.
| bool smith::logger::initialize | ( | MPI_Comm | comm | ) |
Initializes and setups the logger.
Setups and tailors the SLIC logger for Smith. 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 18 of file logger.cpp.