OpenImpala
Image-based parallel transport property solver
Loading...
Searching...
No Matches
hypre_test.cpp File Reference
#include <mpi.h>
#include <HYPRE.h>
#include <HYPRE_struct_ls.h>
#include <HYPRE_struct_mv.h>
#include <stdio.h>
#include <stdlib.h>
Include dependency graph for hypre_test.cpp:

Macros

#define HYPRE_CHECK_MSG(msg, ierr)

Functions

int main (int argc, char *argv[])

Macro Definition Documentation

◆ HYPRE_CHECK_MSG

#define HYPRE_CHECK_MSG ( msg,
ierr )
Value:
do { \
if ((ierr) != 0) { \
char hypre_error_msg[256]; \
HYPRE_DescribeError(ierr, hypre_error_msg); \
fprintf(stderr, "FAIL: %s\n", msg); \
fprintf(stderr, " HYPRE Error: %s (Code: %d)\n", hypre_error_msg, ierr); \
fflush(stderr); /* Ensure error message is printed */ \
MPI_Abort(MPI_COMM_WORLD, ierr); \
} else { \
/* Optional: Print PASS message only if needed, commented out by default */ \
/* printf("PASS: %s\n", msg); */ \
} \
} while (0)

Function Documentation

◆ main()

int main ( int argc,
char * argv[] )