IBAMR  IBAMR version 0.19.
Namespaces | Macros
IBTK_CHKERRQ.h File Reference
#include <ibtk/config.h>
#include "ibtk/compiler_hints.h"
#include "tbox/Utilities.h"
#include <ostream>

Namespaces

 IBTK
 

Macros

#define IBTK_CHKERRQ(ierr)
 Throw an error exception from within any C++ source code. More...
 

Macro Definition Documentation

◆ IBTK_CHKERRQ

#define IBTK_CHKERRQ (   ierr)
Value:
if (UNLIKELY(ierr)) \
{ \
std::ostringstream tboxos; \
CHKERRCONTINUE(ierr); \
SAMRAI::tbox::Utilities::abort(tboxos.str().c_str(), __FILE__, __LINE__); \
}

This is is similar to the PETSc CHKERRQ(ierr) macro and is designed to be invoked after a call to a PETSc library function.

SAMRAI::tbox::Utilities::abort
static void abort(const std::string &message, const std::string &filename, const int line)
UNLIKELY
#define UNLIKELY(c)
Definition: compiler_hints.h:31