Skip to content

Commit

Permalink
Fix bug in MLEBABecLap getEBFluxes(). (#3217)
Browse files Browse the repository at this point in the history
Bug introduced when adding anisotropy to MLEBABecLap, bareascaling goes
on the denominator when calculating the EBfluxes.
  • Loading branch information
esclapez authored Mar 27, 2023
1 parent 7aad6ca commit 4fab19a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Src/LinearSolvers/MLMG/AMReX_MLEBABecLap_2D_K.H
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ void mlebabeclap_ebflux (int i, int j, int k, int n,
+ ( - gy*sy - gx*gy*sx*sy) * x(i ,jj,k,n)
+ ( + gx*gy*sx*sy) * x(ii,jj,k,n) ;

Real dphidn = (phib-phig)/dg * bareascaling;
Real dphidn = (phib-phig)/(dg * bareascaling);
feb(i,j,k,n) = -beb(i,j,k,n) * dphidn;
}
}
Expand Down

0 comments on commit 4fab19a

Please sign in to comment.