Skip to content

Commit 35b59c8

Browse files
committed
add driver for general matrices MM (standard problem only)
1 parent e94960c commit 35b59c8

File tree

17 files changed

+247320
-100
lines changed

17 files changed

+247320
-100
lines changed

INC/pevsl_def.h

+6-6
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,19 @@
1919

2020
#define PI M_PI
2121

22-
#ifdef PEVSL_DEBUG
23-
#define PEVSL_CHKERR(ierr) assert(!(ierr))
24-
#else
25-
#define PEVSL_CHKERR(ierr)
26-
#endif
27-
2822
#define PEVSL_ABORT(comm, errcode, msg) {\
2923
int pid; \
3024
MPI_Comm_rank(comm, &pid); \
3125
printf("PEVSL error (processor %d): %s \n", pid, msg); \
3226
MPI_Abort(comm, errcode); \
3327
}
3428

29+
#ifdef PEVSL_DEBUG
30+
#define PEVSL_CHKERR(ierr) if (ierr) { PEVSL_ABORT(MPI_COMM_WORLD, 999, "Assertion failed") }
31+
#else
32+
#define PEVSL_CHKERR(ierr)
33+
#endif
34+
3535
/* memory management, alloc and free */
3636

3737
#define PEVSL_MALLOC(base, nmem, type) { \

0 commit comments

Comments
 (0)