Skip to content

Commit 7cf2dd7

Browse files
committed
Fix a bug in EB2::Level::fillLevelSet
We should fill ghost cells too. The linear solver used by WarpX relies on that information.
1 parent 47108f0 commit 7cf2dd7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)