PISM, A Parallel Ice Sheet Model  stable v2.1-1-g6902d5502 committed by Ed Bueler on 2023-12-20 08:38:27 -0800
Classes | Namespaces | Macros | Functions
error_handling.hh File Reference
#include <mpi.h>
#include <stdexcept>
#include <string>
#include <vector>
#include "pism/pism_config.hh"

Go to the source code of this file.

Classes

class  pism::ErrorLocation
 
class  pism::RuntimeError
 
class  pism::ParallelSection
 

Namespaces

 pism
 

Macros

#define PISM_ERROR_LOCATION   pism::ErrorLocation()
 
#define PISM_C_CHK(errcode, success, name)   do { pism::check_c_call(errcode, success, name, __FILE__, __LINE__); } while (0)
 
#define PISM_CHK(errcode, name)   do { pism::check_petsc_call(errcode, name, __FILE__, __LINE__); } while (0)
 

Functions

void pism::handle_fatal_errors (MPI_Comm com)
 
void pism::check_c_call (int errcode, int success, const char *function_name, const char *file, int line)
 
void pism::check_petsc_call (int errcode, const char *function_name, const char *file, int line)