Vlasiator ebf0dd394 on dev (v5.4.0 + 1054 commits)
Loading...
Searching...
No Matches
common.cpp File Reference
#include <mpi.h>
#include <iostream>
#include <string.h>
#include <stdio.h>
#include "common.h"
Include dependency graph for common.cpp:

Go to the source code of this file.

Functions

void bailout (const bool condition, const std::string &message, const char *const file, const int line)
 A function to stop the simulation if the boolean condition is true. Raises a flag which gets MPI_Reduced and initiates bailout. [bailout] parameters set details.
void bailout (const bool condition, const char *const file, const int line)
 A function to stop the simulation if the boolean condition is true. Raises a flag which gets MPI_Reduced and initiates bailout. [bailout] parameters set details.
void bailout (const bool condition, const std::string &message)
 A function to stop the simulation if the boolean condition is true. Raises a flag which gets MPI_Reduced and initiates bailout. [bailout] parameters set details.
void abort_mpi (const std::string str, const int err_type)

Function Documentation

◆ abort_mpi()

void abort_mpi ( const std::string str,
const int err_type )

Helper function for error handling. err_type default to 0.

Definition at line 90 of file common.cpp.

Here is the caller graph for this function:

◆ bailout() [1/3]

void bailout ( const bool condition,
const char *const file,
const int line )

A function to stop the simulation if the boolean condition is true. Raises a flag which gets MPI_Reduced and initiates bailout. [bailout] parameters set details.

Parameters
conditionif true, bailout is initiated
filecode file where bailout was called (use FILE in the call)
linecode line where bailout was called (use LINE in the call)

Definition at line 68 of file common.cpp.

Here is the call graph for this function:

◆ bailout() [2/3]

void bailout ( const bool condition,
const std::string & message )

A function to stop the simulation if the boolean condition is true. Raises a flag which gets MPI_Reduced and initiates bailout. [bailout] parameters set details.

Parameters
conditionif true, bailout is initiated
messageinformation message printed to cerr

Definition at line 82 of file common.cpp.

Here is the call graph for this function:

◆ bailout() [3/3]

void bailout ( const bool condition,
const std::string & message,
const char *const file,
const int line )

A function to stop the simulation if the boolean condition is true. Raises a flag which gets MPI_Reduced and initiates bailout. [bailout] parameters set details.

Parameters
conditionif true, bailout is initiated
messageinformation message printed to cerr
filecode file where bailout was called (use FILE in the call)
linecode line where bailout was called (use LINE in the call)

Definition at line 36 of file common.cpp.

Here is the caller graph for this function: