Skip to content

Commit

Permalink
Fix a bug in EB2::Level::fillLevelSet
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 committed Oct 31, 2024
1 parent 47108f0 commit a4116d0
Showing 1 changed file with 1 addition and 1 deletion.
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());

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

Expand Down

0 comments on commit a4116d0

Please sign in to comment.