From a6b3ee7a07155077bf1e6cdc2fd28239a0cf25d0 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Mon, 3 Aug 2020 16:08:13 -0400 Subject: [PATCH] fix bugs in comm style tiled with multi-cutoff --- src/comm_tiled.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/comm_tiled.cpp b/src/comm_tiled.cpp index 849227983a..6930ad13e8 100644 --- a/src/comm_tiled.cpp +++ b/src/comm_tiled.cpp @@ -90,14 +90,13 @@ void CommTiled::init_buffers() maxoverlap = 0; overlap = NULL; - - maxswap = 6; - allocate_swap(maxswap); - rcbinfo = NULL; - cutghostmulti = NULL; sendbox_multi = NULL; + + maxswap = 6; + nswap = 2*domain->dimension; + allocate_swap(maxswap); } /* ---------------------------------------------------------------------- */