Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
ewquon committed Jan 9, 2024
1 parent 038fec2 commit f543737
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Source/Diffusion/ComputeTurbulentViscosity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,7 @@ void ComputeTurbulentViscosityLES (const amrex::MultiFab& Tau11, const amrex::Mu
Real dyInv = cellSizeInv[1];
Real dzInv = cellSizeInv[2];
if (use_terrain) {
dxInv /= Compute_h_xi_AtCellCenter(i,j,k, cellSizeInv, z_nd_arr);
dyInv /= Compute_h_eta_AtCellCenter(i,j,k, cellSizeInv, z_nd_arr);
// the terrain grid is only deformed in z for now
dzInv /= Compute_h_zeta_AtCellCenter(i,j,k, cellSizeInv, z_nd_arr);
}
Real cellVolMsf = 1.0 / (dxInv * mf_u(i,j,0) * dyInv * mf_v(i,j,0) * dzInv);
Expand Down Expand Up @@ -141,8 +140,7 @@ void ComputeTurbulentViscosityLES (const amrex::MultiFab& Tau11, const amrex::Mu
Real dyInv = cellSizeInv[1];
Real dzInv = cellSizeInv[2];
if (use_terrain) {
dxInv /= Compute_h_xi_AtCellCenter(i,j,k, cellSizeInv, z_nd_arr);
dyInv /= Compute_h_eta_AtCellCenter(i,j,k, cellSizeInv, z_nd_arr);
// the terrain grid is only deformed in z for now
dzInv /= Compute_h_zeta_AtCellCenter(i,j,k, cellSizeInv, z_nd_arr);
}
Real cellVolMsf = 1.0 / (dxInv * mf_u(i,j,0) * dyInv * mf_v(i,j,0) * dzInv);
Expand Down

0 comments on commit f543737

Please sign in to comment.