Test getEBFluxes in CellEB2#5347
Open
eebasso wants to merge 12 commits intoAMReX-Codes:developmentfrom
Open
Conversation
WeiqunZhang
reviewed
Apr 18, 2026
| { | ||
| phi_ex_arr(i,j,k) = 0.0; | ||
| phi_eb_arr(i,j,k) = 0.0; | ||
| feb_ex_arr(i,j,k) = 0.0; |
Member
There was a problem hiding this comment.
Need to do this for FabType::regular too.
Member
There was a problem hiding this comment.
What I was talking about is this branch, not about regular cells in else branch.
} else if (FabType::regular == fabtyp) {
amrex::ParallelFor(nbx, [=] AMREX_GPU_DEVICE (int i, int j, int k) noexcept
{
mytest_set_phi_reg(i,j,k,phi_ex_arr,rhs_arr,
AMREX_D_DECL(bx_arr,by_arr,bz_arr),
dx, lprob_type, bx);
});
It never touches feb_ex_arr.
Member
There was a problem hiding this comment.
BTW, you can remove this comment // feb_ex_arr(i,j,k) = 0.0;.
Contributor
Author
There was a problem hiding this comment.
Okay, should be done now. Would using fluxeb_exact.setVal(0.0) at the same place where fluxeb_sol.setVal(0.0) occurs be appropriate? I noticed that this was not done for phiexact
…to celleb2-ebflux-regtest
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Modify the CellEB2 test to also check the output of getEBFluxes and compare with the exact theoretical flux.