From 95acf5b42301d6cb48fda88d662f1d784b863089 Mon Sep 17 00:00:00 2001 From: stgeke Date: Mon, 9 Dec 2024 12:48:56 +0100 Subject: [PATCH] use die instead of MPI_Abort --- src/crystal.c | 2 +- src/findpts_imp.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/crystal.c b/src/crystal.c index d7eab1f..966e52f 100644 --- a/src/crystal.c +++ b/src/crystal.c @@ -141,7 +141,7 @@ void crystal_router(struct crystal *p) fprintf(stderr, "Error in crystal_router: rank = %d send_n = %lld (> " "INT_MAX)\n", p->comm.id, send_n_long); fflush(stderr); - MPI_Abort(p->comm.c, EXIT_FAILURE); + die(EXIT_FAILURE); } recvn = 1, targ = n-1-(id-bl)+bl; diff --git a/src/findpts_imp.h b/src/findpts_imp.h index 8c08479..a9a4553 100644 --- a/src/findpts_imp.h +++ b/src/findpts_imp.h @@ -658,8 +658,8 @@ void findpts( uint *const code_base , const unsigned code_stride , const uint npt, struct findpts_data *const fd) { if (fd->local.ims==1) { - printf("Please use findptsms\n"); - die(1); + printf("call findptsms for multi-session support\n"); + die(EXIT_FAILURE); } unsigned int sess_base = 0; unsigned int sess_match = 0;