aboutsummaryrefslogtreecommitdiff
path: root/Source/FieldSolver/FiniteDifferenceSolver/MacroscopicProperties/MacroscopicProperties.cpp
diff options
context:
space:
mode:
authorGravatar Prabhat Kumar <89051199+prkkumar@users.noreply.github.com> 2021-12-08 15:27:38 -0800
committerGravatar GitHub <noreply@github.com> 2021-12-08 23:27:38 +0000
commit583c78e563f7a74e89fb49ff77c7a93c0baaad78 (patch)
treeaf71f27e07f68a26bc64bacfed976d64c8c7bf0b /Source/FieldSolver/FiniteDifferenceSolver/MacroscopicProperties/MacroscopicProperties.cpp
parent6577874ae22634fee907fe9180080f7e6998afa1 (diff)
downloadWarpX-583c78e563f7a74e89fb49ff77c7a93c0baaad78.tar.gz
WarpX-583c78e563f7a74e89fb49ff77c7a93c0baaad78.tar.zst
WarpX-583c78e563f7a74e89fb49ff77c7a93c0baaad78.zip
Replace AMREX_SPACEDIM: Evolve & FieldSolver (#2642)
* AMREX_SPACEDIM : Boundary Conditions * AMREX_SPACEDIM : Parallelization * Fix compilation * AMREX_SPACEDIM : Initialization * Fix Typo * space * AMREX_SPACEDIM : Particles * AMREX_SPACEDIM : Evolve and FieldSolver
Diffstat (limited to 'Source/FieldSolver/FiniteDifferenceSolver/MacroscopicProperties/MacroscopicProperties.cpp')
-rw-r--r--Source/FieldSolver/FiniteDifferenceSolver/MacroscopicProperties/MacroscopicProperties.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/FieldSolver/FiniteDifferenceSolver/MacroscopicProperties/MacroscopicProperties.cpp b/Source/FieldSolver/FiniteDifferenceSolver/MacroscopicProperties/MacroscopicProperties.cpp
index 3cd607392..8076bdf8f 100644
--- a/Source/FieldSolver/FiniteDifferenceSolver/MacroscopicProperties/MacroscopicProperties.cpp
+++ b/Source/FieldSolver/FiniteDifferenceSolver/MacroscopicProperties/MacroscopicProperties.cpp
@@ -177,7 +177,7 @@ MacroscopicProperties::InitData ()
Ez_IndexType[idim] = Ez_stag[idim];
macro_cr_ratio[idim] = 1;
}
-#if (AMREX_SPACEDIM==2)
+#if defined(WARPX_DIM_XZ) || defined(WARPX_DIM_RZ)
sigma_IndexType[2] = 0;
epsilon_IndexType[2] = 0;
mu_IndexType[2] = 0;
@@ -208,7 +208,7 @@ MacroscopicProperties::InitializeMacroMultiFabUsingParser (
// Shift x, y, z position based on index type
amrex::Real fac_x = (1._rt - iv[0]) * dx_lev[0] * 0.5_rt;
amrex::Real x = i * dx_lev[0] + real_box.lo(0) + fac_x;
-#if (AMREX_SPACEDIM==2)
+#if defined(WARPX_DIM_XZ) || defined(WARPX_DIM_RZ)
amrex::Real y = 0._rt;
amrex::Real fac_z = (1._rt - iv[1]) * dx_lev[1] * 0.5_rt;
amrex::Real z = j * dx_lev[1] + real_box.lo(1) + fac_z;