From f757010ec63f9fd2a13ca4d2c27b2640ab98cf7f Mon Sep 17 00:00:00 2001 From: loikki <loic.hausammann@protonmail.ch> Date: Fri, 21 Dec 2018 11:14:47 +0100 Subject: [PATCH] Formating + cleanup --- src/cell.h | 3 ++- src/error.h | 2 +- src/scheduler.h | 1 - 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cell.h b/src/cell.h index f1b1a96d8d..2b168835d3 100644 --- a/src/cell.h +++ b/src/cell.h @@ -1003,7 +1003,8 @@ cell_need_rebuild_for_hydro_pair(const struct cell *ci, const struct cell *cj) { cj->dmin); } /** - * @brief Have particles in a pair of cells moved too much and require a rebuild + * @brief Have star particles in a pair of cells moved too much and require a + * rebuild * ? * * @param ci The first #cell. diff --git a/src/error.h b/src/error.h index 181a32c78b..d384ec56ba 100644 --- a/src/error.h +++ b/src/error.h @@ -54,7 +54,7 @@ extern int engine_rank; fprintf(stderr, "[%04i] %s %s:%s():%i: " s "\n", engine_rank, \ clocks_get_timesincestart(), __FILE__, __FUNCTION__, __LINE__, \ ##__VA_ARGS__); \ - swift_abort(1); \ + MPI_Abort(MPI_COMM_WORLD, -1); \ }) #else #define error(s, ...) \ diff --git a/src/scheduler.h b/src/scheduler.h index 3ee92b2bdd..2d2a4378da 100644 --- a/src/scheduler.h +++ b/src/scheduler.h @@ -140,7 +140,6 @@ __attribute__((always_inline)) INLINE static void scheduler_activate( __attribute__((always_inline)) INLINE static struct link * scheduler_activate_send(struct scheduler *s, struct link *link, int nodeID) { - if (link == NULL) error(""); struct link *l = NULL; for (l = link; l != NULL && l->t->cj->nodeID != nodeID; l = l->next) ; -- GitLab