Skip to content

Commit

Permalink
Fix MLEBNodeFDLaplacian bottom solver (AMReX-Codes#2963)
Browse files Browse the repository at this point in the history
MLEBNodeFDLaplacian is never singular because it has Dirichlet boundary on
the EB surface.  We did set the singular flag to false, but forgot about the
bottom solver used a different function to query.  This fixes it by
overriding the isBottomSingular function.
  • Loading branch information
WeiqunZhang authored Sep 26, 2022
1 parent 5e84f43 commit b84d7c0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Src/LinearSolvers/MLMG/AMReX_MLEBNodeFDLaplacian.H
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ public:
virtual void fixUpResidualMask (int amrlev, iMultiFab& resmsk) final override;

virtual bool isSingular (int) const final override { return false; }
virtual bool isBottomSingular () const final override { return false; }

virtual void compGrad (int amrlev, const Array<MultiFab*,AMREX_SPACEDIM>& grad,
MultiFab& sol, Location /*loc*/) const override;
Expand Down

0 comments on commit b84d7c0

Please sign in to comment.