Serac  0.1
Serac is an implicit thermal strucural 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

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

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 serac::logger::finalize ( )

Finalizes the logger.

Closes and finalizes the SLIC logger.

Definition at line 87 of file logger.cpp.

◆ flush()

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.

◆ initialize()

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.

Parameters
[in]commMPI communicator that the logger will use

Definition at line 14 of file logger.cpp.