From 4fc5ce436ce7b43d4541abe3b8469a69a82c8388 Mon Sep 17 00:00:00 2001 From: Erik Schnetter Date: Thu, 3 Aug 2023 12:50:04 -0400 Subject: [PATCH] TestArrayGroup: Correct multi-process tests --- TestArrayGroup/src/TestArray.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/TestArrayGroup/src/TestArray.cxx b/TestArrayGroup/src/TestArray.cxx index 048a56f78..e2aefc21b 100644 --- a/TestArrayGroup/src/TestArray.cxx +++ b/TestArrayGroup/src/TestArray.cxx @@ -35,11 +35,14 @@ extern "C" void TestArrayGroup_Initialize(CCTK_ARGUMENTS) { ierr = CCTK_GrouplshGI(cctkGH, group.dim, lsh.data(), gi); assert(!ierr); + const int i0 = cctk_lbnd[0]; + const int j0 = cctk_lbnd[1]; + const int k0 = cctk_lbnd[2]; for (int k = 0; k < lsh[2]; k++) { for (int j = 0; j < lsh[1]; j++) { for (int i = 0; i < lsh[0]; i++) { const int index = CCTK_GFINDEX3D(cctkGH, i, j, k); - test_gf[index] = i * j * k; + test_gf[index] = (i0 + i) * (j0 + j) * (k0 + k); } } }