Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Missing sqrt.
  • Loading branch information
WeiqunZhang authored Sep 6, 2024
1 parent b454719 commit 87de52e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Src/EB/AMReX_EB2_3D_C.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ void set_eb_data (const int i, const int j, const int k,
bnorm(i,j,k,0) = nx;
bnorm(i,j,k,1) = ny;
bnorm(i,j,k,2) = nz;
barea(i,j,k) = (nx*dapx + ny*dapy + nz*dapz) / (Math::powi<2>(nx*dx[1]*dx[2]) +
Math::powi<2>(ny*dx[0]*dx[2]) +
Math::powi<2>(nz*dx[0]*dx[1]));
barea(i,j,k) = (nx*dapx + ny*dapy + nz*dapz) / std::sqrt(Math::powi<2>(nx*dx[1]*dx[2]) +
Math::powi<2>(ny*dx[0]*dx[2]) +
Math::powi<2>(nz*dx[0]*dx[1]));

Real aax = 0.5_rt*(axm+axp);
Real aay = 0.5_rt*(aym+ayp);
Expand Down

0 comments on commit 87de52e

Please sign in to comment.