From 13e61eb5f33b0f746f578fba6e862532a970d187 Mon Sep 17 00:00:00 2001 From: Weiqun Zhang Date: Sun, 3 Nov 2024 20:17:41 -0800 Subject: [PATCH] Fix a bug in EB2::Level::fillLevelSet (#4208) We should fill ghost cells too. The linear solver used by WarpX relies on that information. --- Docs/sphinx_documentation/source/FFT.rst | 2 +- Src/EB/AMReX_EB2_Level.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Docs/sphinx_documentation/source/FFT.rst b/Docs/sphinx_documentation/source/FFT.rst index 6319850febc..5ffa4ed93ff 100644 --- a/Docs/sphinx_documentation/source/FFT.rst +++ b/Docs/sphinx_documentation/source/FFT.rst @@ -28,7 +28,7 @@ complex data also follows the FFTW convention, where the complex Hermitian output array has `(nx/2+1,ny,nz)` elements. Here `nx`, `ny` and `nz` are the sizes of the real array and the division is rounded down. -Below are examples of using :cpp:`FFT:R2C`. +Below are examples of using :cpp:`FFT::R2C`. .. highlight:: c++ diff --git a/Src/EB/AMReX_EB2_Level.cpp b/Src/EB/AMReX_EB2_Level.cpp index f51bc80ad3e..b0fec6e389d 100644 --- a/Src/EB/AMReX_EB2_Level.cpp +++ b/Src/EB/AMReX_EB2_Level.cpp @@ -880,7 +880,7 @@ void Level::fillLevelSet (MultiFab& levelset, const Geometry& geom) const { levelset.setVal(-1.0); - levelset.ParallelCopy(m_levelset,0,0,1,0,0); + levelset.ParallelCopy(m_levelset,0,0,1,IntVect(0),levelset.nGrowVect(),geom.periodicity()); const std::vector& pshifts = geom.periodicity().shiftIntVect();