From 4cc38faacd7c5063713ae2d3e274da284d2d10d1 Mon Sep 17 00:00:00 2001 From: Pedro Gonnet <gonnet@google.com> Date: Mon, 26 Jun 2017 21:31:44 +0200 Subject: [PATCH] formatting. --- src/runner_doiact.h | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/runner_doiact.h b/src/runner_doiact.h index 01a66f820d..865d2e78cc 100644 --- a/src/runner_doiact.h +++ b/src/runner_doiact.h @@ -919,7 +919,12 @@ void DOPAIR1(struct runner *r, struct cell *ci, struct cell *cj, const int sid, p->x[2] * runner_shift[sid][2]; if (fabsf(d - sort_i[pid].d) - ci->dx_max_sort > 1.0e-6 * max(fabsf(d), ci->dx_max_sort)) - error("particle shift diff exceeds dx_max_sort in cell ci. ci->nodeID=%d cj->nodeID=%d d=%e sort_i[pid].d=%e ci->dx_max_sort=%e ci->dx_max_sort_old=%e", ci->nodeID, cj->nodeID, d, sort_i[pid].d, ci->dx_max_sort, ci->dx_max_sort_old); + error( + "particle shift diff exceeds dx_max_sort in cell ci. ci->nodeID=%d " + "cj->nodeID=%d d=%e sort_i[pid].d=%e ci->dx_max_sort=%e " + "ci->dx_max_sort_old=%e", + ci->nodeID, cj->nodeID, d, sort_i[pid].d, ci->dx_max_sort, + ci->dx_max_sort_old); } for (int pjd = 0; pjd < cj->count; pjd++) { const struct part *p = &cj->parts[sort_j[pjd].i]; @@ -928,7 +933,12 @@ void DOPAIR1(struct runner *r, struct cell *ci, struct cell *cj, const int sid, p->x[2] * runner_shift[sid][2]; if (fabsf(d - sort_j[pjd].d) - cj->dx_max_sort > 1.0e-6 * max(fabsf(d), cj->dx_max_sort)) - error("particle shift diff exceeds dx_max_sort in cell cj. cj->nodeID=%d ci->nodeID=%d d=%e sort_j[pjd].d=%e cj->dx_max_sort=%e cj->dx_max_sort_old=%e", cj->nodeID, ci->nodeID, d, sort_j[pjd].d, cj->dx_max_sort, cj->dx_max_sort_old); + error( + "particle shift diff exceeds dx_max_sort in cell cj. cj->nodeID=%d " + "ci->nodeID=%d d=%e sort_j[pjd].d=%e cj->dx_max_sort=%e " + "cj->dx_max_sort_old=%e", + cj->nodeID, ci->nodeID, d, sort_j[pjd].d, cj->dx_max_sort, + cj->dx_max_sort_old); } #endif /* SWIFT_DEBUG_CHECKS */ -- GitLab