diff options
author | 2021-12-16 09:09:32 -0800 | |
---|---|---|
committer | 2021-12-16 09:09:32 -0800 | |
commit | b0b03f6bc5e7768c4ecbcb4e4a2c505d9e4aad91 (patch) | |
tree | 87c199a7c3675479bcc8145a98fa264c8dd44633 /Source/Diagnostics/ReducedDiags/FieldProbeParticleContainer.cpp | |
parent | 2de0fa7cbc0289e92d158759e728bb0313284bcf (diff) | |
download | WarpX-b0b03f6bc5e7768c4ecbcb4e4a2c505d9e4aad91.tar.gz WarpX-b0b03f6bc5e7768c4ecbcb4e4a2c505d9e4aad91.tar.zst WarpX-b0b03f6bc5e7768c4ecbcb4e4a2c505d9e4aad91.zip |
AMREX_SPACEDIM : EB, Filter, Laser, Utils, and Diagnostics (#2677)
* AMREX_SPACEDIM : EB and Filter
* AMREX_SPACEDIM : Laser
* AMREX_SPACEDIM : Utils
* AMREX_SPACEDIM : Diagnostics
* Fix Typo
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* AMREX_SPACEDIM : Warpx.cpp
* Update Source/Diagnostics/FlushFormats/FlushFormatPlotfile.cpp
Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja>
* Update Source/Diagnostics/FlushFormats/FlushFormatPlotfile.cpp
Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja>
Diffstat (limited to 'Source/Diagnostics/ReducedDiags/FieldProbeParticleContainer.cpp')
-rw-r--r-- | Source/Diagnostics/ReducedDiags/FieldProbeParticleContainer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Diagnostics/ReducedDiags/FieldProbeParticleContainer.cpp b/Source/Diagnostics/ReducedDiags/FieldProbeParticleContainer.cpp index 7cf2cecbe..c72362b6b 100644 --- a/Source/Diagnostics/ReducedDiags/FieldProbeParticleContainer.cpp +++ b/Source/Diagnostics/ReducedDiags/FieldProbeParticleContainer.cpp @@ -101,11 +101,11 @@ FieldProbeParticleContainer::AddNParticles (int lev, ParticleType p; p.id() = ParticleType::NextID(); p.cpu() = ParallelDescriptor::MyProc(); -#if (AMREX_SPACEDIM == 3) +#if defined(WARPX_DIM_3D) p.pos(0) = x[i]; p.pos(1) = y[i]; p.pos(2) = z[i]; -#elif (AMREX_SPACEDIM == 2) +#elif defined(WARPX_DIM_XZ) || defined(WARPX_DIM_RZ) amrex::ignore_unused(y) ; p.pos(0) = x[i]; p.pos(1) = 0; |