From 0df14422e2d7d8998f9a9c448a097f8d508c7e2d Mon Sep 17 00:00:00 2001 From: Dave Grote Date: Tue, 11 Jun 2024 09:39:38 -0700 Subject: [PATCH] Clean up of macros in BilinearFilter --- Source/Filter/BilinearFilter.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/Filter/BilinearFilter.cpp b/Source/Filter/BilinearFilter.cpp index 3976f7a6553..abfc5a16a47 100644 --- a/Source/Filter/BilinearFilter.cpp +++ b/Source/Filter/BilinearFilter.cpp @@ -69,20 +69,20 @@ void BilinearFilter::ComputeStencils(){ stencil_x.resize( 1u + npass_each_dir[0] ); compute_stencil(stencil_x, npass_each_dir[0]); -#if (AMREX_SPACEDIM >= 2) +#if AMREX_SPACEDIM >= 2 stencil_y.resize( 1u + npass_each_dir[1] ); compute_stencil(stencil_y, npass_each_dir[1]); #endif -#if defined(WARPX_DIM_3D) +#if AMREX_SPACEDIM == 3 stencil_z.resize( 1u + npass_each_dir[2] ); compute_stencil(stencil_z, npass_each_dir[2]); #endif slen = stencil_length_each_dir.dim3(); -#if (AMREX_SPACEDIM < 3) +#if AMREX_SPACEDIM < 3 slen.z = 1; #endif -#if (AMREX_SPACEDIM < 2) +#if AMREX_SPACEDIM < 2 slen.y = 1; #endif }