Skip to content

Commit

Permalink
Fix a bug in EB2::Level::fillLevelSet (#4208)
Browse files Browse the repository at this point in the history
We should fill ghost cells too. The linear solver used by WarpX relies
on that information.
  • Loading branch information
WeiqunZhang authored Nov 4, 2024
1 parent 0f3823c commit 13e61eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Docs/sphinx_documentation/source/FFT.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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++

Expand Down
2 changes: 1 addition & 1 deletion Src/EB/AMReX_EB2_Level.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<IntVect>& pshifts = geom.periodicity().shiftIntVect();

Expand Down

0 comments on commit 13e61eb

Please sign in to comment.