Skip to content

Commit

Permalink
only call with terrain. (erf-model#1636)
Browse files Browse the repository at this point in the history
  • Loading branch information
AMLattanzi authored May 31, 2024
1 parent 3d68389 commit 51a8eb0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Source/BoundaryConditions/BoundaryConditions_zvel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,9 @@ void ERFPhysBCFunct_w::impose_lateral_zvel_bcs (const Array4<Real >& dest_a
int jflip = 2*dom_hi.y + 1 - j;
if (bc_ptr_w[n].hi(1) == ERFBCType::ext_dir) {
dest_arr(i,j,k) = l_bc_extdir_vals_d[n][4];
dest_arr(i,j,k) = WFromOmega(i,j,k,dest_arr(i,j,k),xvel_arr,yvel_arr,z_phys_nd,dxInv);
if (l_use_terrain) {
dest_arr(i,j,k) = WFromOmega(i,j,k,dest_arr(i,j,k),xvel_arr,yvel_arr,z_phys_nd,dxInv);
}
} else if (bc_ptr_w[n].hi(1) == ERFBCType::foextrap) {
dest_arr(i,j,k) = dest_arr(i,dom_hi.y,k);
} else if (bc_ptr_w[n].hi(1) == ERFBCType::open) {
Expand Down

0 comments on commit 51a8eb0

Please sign in to comment.