Skip to content

Commit

Permalink
enable LinOp to use the right Factory (fixes moving geometry problem) (
Browse files Browse the repository at this point in the history
  • Loading branch information
asalmgren authored Aug 13, 2022
1 parent 6593518 commit 4f63929
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Src/LinearSolvers/MLMG/AMReX_MLEBABecLap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ MLEBABecLap::MLEBABecLap (const Vector<Geometry>& a_geom,
std::unique_ptr<FabFactory<FArrayBox> >
MLEBABecLap::makeFactory (int amrlev, int mglev) const
{
return makeEBFabFactory(m_geom[amrlev][mglev],
return makeEBFabFactory(static_cast<EBFArrayBoxFactory const*>(Factory(0,0))->getEBIndexSpace(),
m_geom[amrlev][mglev],
m_grids[amrlev][mglev],
m_dmap[amrlev][mglev],
{1,1,1}, EBSupport::full);
Expand Down

0 comments on commit 4f63929

Please sign in to comment.