Smith  0.1
Smith is an implicit thermal structural mechanics simulation code.
Namespaces | Functions
logger.hpp File Reference

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"
Include dependency graph for logger.hpp:
This graph shows which files directly or indirectly include this file:

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...
 

Detailed Description

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.

Function Documentation

◆ finalize()

void smith::logger::finalize ( )

Finalizes the logger.

Closes and finalizes the SLIC logger.

Definition at line 91 of file logger.cpp.

◆ flush()

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.

◆ initialize()

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.

Parameters
[in]commMPI communicator that the logger will use

Definition at line 18 of file logger.cpp.