From d08acbffd1ae0c6a2eed6e0f8efe5ed2325731a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Robert?= Date: Thu, 19 Oct 2023 13:40:36 +0200 Subject: [PATCH] BUG: fix a segmentation fault occuring with self-gravity in reduced dimensionality (#200) --- src/gravity/laplacian.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gravity/laplacian.cpp b/src/gravity/laplacian.cpp index 3a23fe23..8953eb4e 100644 --- a/src/gravity/laplacian.cpp +++ b/src/gravity/laplacian.cpp @@ -360,7 +360,7 @@ void Laplacian::PreComputeLaplacian() { idefix_for("L_Factor",KOFFSET,this->np_tot[KDIR]-KOFFSET, JOFFSET,this->np_tot[JDIR]-JOFFSET, - IOFFSET,this->np_tot[IDIR]-JOFFSET, + IOFFSET,this->np_tot[IDIR]-IOFFSET, KOKKOS_LAMBDA(int k, int j,int i) { [[maybe_unused]] real h1, h2, h3; #if GEOMETRY == CARTESIAN