Skip to content

Commit

Permalink
correct conditional to get ow_velocity correct
Browse files Browse the repository at this point in the history
  • Loading branch information
mbkuhn committed Nov 25, 2024
1 parent d665147 commit 18aea6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion amr-wind/ocean_waves/relaxation_zones/waves2amr_ops.H
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ void postprocess_velocity_mfab_liquid(
// Set velocity to zero if no liquid present
const amrex::Real cell_length_2D =
std::sqrt(dx[0] * dx[0] + dx[2] * dx[2]);
if (phi[nbx](i, j, k) + cell_length_2D >= 0) {
if (phi[nbx](i, j, k) + cell_length_2D < 0) {
vel[nbx](i, j, k, 0) = 0.0;
vel[nbx](i, j, k, 1) = 0.0;
vel[nbx](i, j, k, 2) = 0.0;
Expand Down

0 comments on commit 18aea6f

Please sign in to comment.