Skip to content

Commit 51a8eb0

Browse files
authored
only call with terrain. (#1636)
1 parent 3d68389 commit 51a8eb0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Source/BoundaryConditions/BoundaryConditions_zvel.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,9 @@ void ERFPhysBCFunct_w::impose_lateral_zvel_bcs (const Array4<Real >& dest_a
126126
int jflip = 2*dom_hi.y + 1 - j;
127127
if (bc_ptr_w[n].hi(1) == ERFBCType::ext_dir) {
128128
dest_arr(i,j,k) = l_bc_extdir_vals_d[n][4];
129-
dest_arr(i,j,k) = WFromOmega(i,j,k,dest_arr(i,j,k),xvel_arr,yvel_arr,z_phys_nd,dxInv);
129+
if (l_use_terrain) {
130+
dest_arr(i,j,k) = WFromOmega(i,j,k,dest_arr(i,j,k),xvel_arr,yvel_arr,z_phys_nd,dxInv);
131+
}
130132
} else if (bc_ptr_w[n].hi(1) == ERFBCType::foextrap) {
131133
dest_arr(i,j,k) = dest_arr(i,dom_hi.y,k);
132134
} else if (bc_ptr_w[n].hi(1) == ERFBCType::open) {

0 commit comments

Comments
 (0)