From 3459d967ec849f0678765d8cdd04a6fc329fa086 Mon Sep 17 00:00:00 2001 From: Michael Kuhn Date: Thu, 19 Sep 2024 17:11:15 -0600 Subject: [PATCH] be able to replace gradp inside objects too --- amr-wind/overset/overset_ops_routines.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/amr-wind/overset/overset_ops_routines.cpp b/amr-wind/overset/overset_ops_routines.cpp index 9b8347899b..6447342d99 100644 --- a/amr-wind/overset/overset_ops_routines.cpp +++ b/amr-wind/overset/overset_ops_routines.cpp @@ -543,7 +543,7 @@ void replace_gradp( amrex::ParallelFor( mf_gp, mf_gp.n_grow, [=] AMREX_GPU_DEVICE(int nbx, int i, int j, int k) noexcept { - if (iblank[nbx](i, j, k) == -1) { + if (iblank[nbx](i, j, k) <= 0) { gp[nbx](i, j, k, 0) = gp0[nbx](i, j, k, 0); gp[nbx](i, j, k, 1) = gp0[nbx](i, j, k, 1); gp[nbx](i, j, k, 2) = gp0[nbx](i, j, k, 2);