OpenImpala
Image-based parallel transport property solver
Loading...
Searching...
No Matches
HypreCheck.H File Reference

Shared HYPRE error-checking macro. More...

#include <AMReX_BLassert.H>
#include <HYPRE_utilities.h>
#include <string>
Include dependency graph for HypreCheck.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define HYPRE_CHECK(ierr)

Detailed Description

Shared HYPRE error-checking macro.

Macro Definition Documentation

◆ HYPRE_CHECK

#define HYPRE_CHECK ( ierr)
Value:
do { \
if ((ierr) != 0) { \
char hypre_error_msg[256]; \
HYPRE_DescribeError(ierr, hypre_error_msg); \
amrex::Abort("HYPRE Error: " + std::string(hypre_error_msg) + \
" - Error Code: " + std::to_string(ierr) + " File: " + __FILE__ + \
" Line: " + std::to_string(__LINE__)); \
} \
} while (0)