aboutsummaryrefslogtreecommitdiff
path: root/Source/WarpX.cpp
diff options
context:
space:
mode:
authorGravatar Luca Fedeli <luca.fedeli@cea.fr> 2023-06-28 22:08:15 +0200
committerGravatar GitHub <noreply@github.com> 2023-06-28 13:08:15 -0700
commite7becd694e6b66a1d256eb74cad9ea01d00cef17 (patch)
treec819d7aeda87a0fa062a7c682dcb1289da96a8d2 /Source/WarpX.cpp
parenta744ca868383f7ec7d6321aa255bb148a1a4cc66 (diff)
downloadWarpX-e7becd694e6b66a1d256eb74cad9ea01d00cef17.tar.gz
WarpX-e7becd694e6b66a1d256eb74cad9ea01d00cef17.tar.zst
WarpX-e7becd694e6b66a1d256eb74cad9ea01d00cef17.zip
Replace unsed WARPX_DIM_2D with AMREX_SPACEDIM==2 (#4039)
* replace WARPX_DIM_2D, since it is not used anymore * fixed bug
Diffstat (limited to '')
-rw-r--r--Source/WarpX.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/WarpX.cpp b/Source/WarpX.cpp
index a44d01915..4eec797a4 100644
--- a/Source/WarpX.cpp
+++ b/Source/WarpX.cpp
@@ -140,8 +140,8 @@ bool WarpX::do_shared_mem_charge_deposition = false;
bool WarpX::do_shared_mem_current_deposition = false;
#if defined(WARPX_DIM_3D)
amrex::IntVect WarpX::shared_tilesize(AMREX_D_DECL(6,6,8));
-#elif defined(WARPX_DIM_2D)
-amrex::IntVect WarpX::shared_tilesize(AMREX_D_DECL(14,14));
+#elif (AMREX_SPACEDIM == 2)
+amrex::IntVect WarpX::shared_tilesize(AMREX_D_DECL(14,14,0));
#else
//Have not experimented with good tilesize here because expect use case to be low
amrex::IntVect WarpX::shared_tilesize(AMREX_D_DECL(1,1,1));