From 18aea6f439aaccf304c7db1261ae57c5fd98ed96 Mon Sep 17 00:00:00 2001 From: Michael Kuhn Date: Sun, 24 Nov 2024 23:48:16 -0700 Subject: [PATCH] correct conditional to get ow_velocity correct --- amr-wind/ocean_waves/relaxation_zones/waves2amr_ops.H | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/amr-wind/ocean_waves/relaxation_zones/waves2amr_ops.H b/amr-wind/ocean_waves/relaxation_zones/waves2amr_ops.H index 259565d842..b7c53a4c9d 100644 --- a/amr-wind/ocean_waves/relaxation_zones/waves2amr_ops.H +++ b/amr-wind/ocean_waves/relaxation_zones/waves2amr_ops.H @@ -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;