Skip to content

Commit 13e61eb

Browse files
authored
Fix a bug in EB2::Level::fillLevelSet (#4208)
We should fill ghost cells too. The linear solver used by WarpX relies on that information.
1 parent 0f3823c commit 13e61eb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Docs/sphinx_documentation/source/FFT.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ complex data also follows the FFTW convention, where the complex Hermitian
2828
output array has `(nx/2+1,ny,nz)` elements. Here `nx`, `ny` and `nz` are the
2929
sizes of the real array and the division is rounded down.
3030

31-
Below are examples of using :cpp:`FFT:R2C`.
31+
Below are examples of using :cpp:`FFT::R2C`.
3232

3333
.. highlight:: c++
3434

Src/EB/AMReX_EB2_Level.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -880,7 +880,7 @@ void
880880
Level::fillLevelSet (MultiFab& levelset, const Geometry& geom) const
881881
{
882882
levelset.setVal(-1.0);
883-
levelset.ParallelCopy(m_levelset,0,0,1,0,0);
883+
levelset.ParallelCopy(m_levelset,0,0,1,IntVect(0),levelset.nGrowVect(),geom.periodicity());
884884

885885
const std::vector<IntVect>& pshifts = geom.periodicity().shiftIntVect();
886886

0 commit comments

Comments
 (0)