diff --git a/amr-wind/physics/TerrainDrag.cpp b/amr-wind/physics/TerrainDrag.cpp index 1019a261e3..7d3c05098e 100644 --- a/amr-wind/physics/TerrainDrag.cpp +++ b/amr-wind/physics/TerrainDrag.cpp @@ -109,7 +109,8 @@ void TerrainDrag::initialize_fields(int level, const amrex::Geometry& geom) const amrex::Real terrainHt = interp::bilinear( xterrain_ptr, xterrain_ptr + xterrain_size, yterrain_ptr, yterrain_ptr + yterrain_size, zterrain_ptr, x, y); - levelBlanking[nbx](i, j, k, 0) = static_cast(z <= terrainHt); + levelBlanking[nbx](i, j, k, 0) = + static_cast((z <= terrainHt) && (z > prob_lo[2])); levelheight[nbx](i, j, k, 0) = std::max(std::abs(z - terrainHt), 0.5 * dx[2]);