From 53c82d07492f048b63de9b8c3f9baba7a99bfd12 Mon Sep 17 00:00:00 2001 From: Antonio Rago Date: Wed, 20 Nov 2024 10:50:29 +0100 Subject: [PATCH] bugfix for polyakov/wilson loop measurment --- LibHR/Observables/polyakov.c | 3 +-- LibHR/Observables/wilsonloops.c | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/LibHR/Observables/polyakov.c b/LibHR/Observables/polyakov.c index b0443719e..b44098c1b 100644 --- a/LibHR/Observables/polyakov.c +++ b/LibHR/Observables/polyakov.c @@ -335,8 +335,7 @@ void polyakov() { sCOORD[3] = COORD[3]; sCOORD[mu] = np[mu] - 1; { - MPIRET(mpiret) - MPI_Cart_rank(cart_comm, sCOORD, &sCID); + sCID = proc_id(sCOORD); #ifndef NDEBUG if (mpiret != MPI_SUCCESS) { char mesg[MPI_MAX_ERROR_STRING]; diff --git a/LibHR/Observables/wilsonloops.c b/LibHR/Observables/wilsonloops.c index 5d81c5806..2cf385801 100644 --- a/LibHR/Observables/wilsonloops.c +++ b/LibHR/Observables/wilsonloops.c @@ -482,7 +482,7 @@ void WL_broadcast_polyakov(suNg *poly, suNg_field *gf) { sCOORD[1] = COORD[1]; sCOORD[2] = COORD[2]; sCOORD[3] = COORD[3]; - MPIRET(mpiret) MPI_Cart_rank(cart_comm, sCOORD, &sCID); + sCID = proc_id(sCOORD); #ifndef NDEBUG if (mpiret != MPI_SUCCESS) { char mesg[MPI_MAX_ERROR_STRING];