Skip to content

Commit

Permalink
In MLEBABecLap::compGrad, add missing call to addInhomogNeumannFlux
Browse files Browse the repository at this point in the history
For inhomogeneous Neumann BC, we convert the inhomogeneous part
into RHS and treat the BC as homogeneous Neumann during the solve.
Thus, the flux is zero there before inhomogeneous flux is added.
  • Loading branch information
cgilet committed Jul 23, 2023
1 parent e41dbfa commit b3722bb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Src/LinearSolvers/MLMG/AMReX_MLEBABecLap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -837,6 +837,8 @@ MLEBABecLap::compGrad (int amrlev, const Array<MultiFab*,AMREX_SPACEDIM>& grad,
);
}
}

addInhomogNeumannFlux(amrlev, grad, sol, false);
}

void
Expand Down

0 comments on commit b3722bb

Please sign in to comment.