Skip to content

Commit

Permalink
Removed AMREX_SPACEDIM
Browse files Browse the repository at this point in the history
  • Loading branch information
dpgrote committed Jul 1, 2024
1 parent 405cd5f commit 28353c1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Source/Filter/BilinearFilter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 defined(WARPX_DIM_XZ) || defined(WARPX_DIM_RZ) || defined(WARPX_DIM_3D)
stencil_y.resize( 1u + npass_each_dir[1] );
compute_stencil(stencil_y, npass_each_dir[1]);
#endif
#if AMREX_SPACEDIM == 3
#if defined(WARPX_DIM_3D)
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 defined(WARPX_DIM_1D_Z) || defined(WARPX_DIM_XZ) || defined(WARPX_DIM_RZ)
slen.z = 1;
#endif
#if AMREX_SPACEDIM < 2
#if defined(WARPX_DIM_1D_Z)
slen.y = 1;
#endif
}

0 comments on commit 28353c1

Please sign in to comment.