Skip to content

Commit

Permalink
In MLEBABecLap::compGrad, add missing call to addInhomogNeumannFlux (A…
Browse files Browse the repository at this point in the history
…MReX-Codes#3441)

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 authored Jul 23, 2023
1 parent e41dbfa commit 6faf7ee
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 6faf7ee

Please sign in to comment.