Skip to content

Commit

Permalink
Ocean Waves (Waves2AMR): correct conditional in treatment of ow_veloc…
Browse files Browse the repository at this point in the history
…ity (#1372)
  • Loading branch information
mbkuhn authored Nov 25, 2024
1 parent d665147 commit 05e1bb1
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 05e1bb1

Please sign in to comment.