diff options
Diffstat (limited to 'Source/Particles/ElementaryProcess')
-rw-r--r-- | Source/Particles/ElementaryProcess/QEDSchwingerProcess.H | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Particles/ElementaryProcess/QEDSchwingerProcess.H b/Source/Particles/ElementaryProcess/QEDSchwingerProcess.H index 6867544b8..169ad49c0 100644 --- a/Source/Particles/ElementaryProcess/QEDSchwingerProcess.H +++ b/Source/Particles/ElementaryProcess/QEDSchwingerProcess.H @@ -78,13 +78,13 @@ struct SchwingerTransformFunc const amrex::Real total_weight) const noexcept { for (int n = 0; n < N; ++n){ -#if (AMREX_SPACEDIM == 1) +#if defined(WARPX_DIM_1D_Z) amrex::ignore_unused(dst1, dst2, i_dst1, i_dst2, N, total_weight); amrex::Abort("SchwingerTransformFunc not implemented in 1D"); -#elif (AMREX_SPACEDIM == 3) +#elif defined(WARPX_DIM_3D) dst1.m_rdata[m_weight_index][i_dst1+n] = total_weight/N; dst2.m_rdata[m_weight_index][i_dst2+n] = total_weight/N; -#elif (AMREX_SPACEDIM == 2) +#elif defined(WARPX_DIM_XZ) || defined(WARPX_DIM_RZ) dst1.m_rdata[m_weight_index][i_dst1+n] = total_weight/N/m_y_size; dst2.m_rdata[m_weight_index][i_dst2+n] = total_weight/N/m_y_size; #endif |