diff options
author | 2021-12-16 09:09:32 -0800 | |
---|---|---|
committer | 2021-12-16 09:09:32 -0800 | |
commit | b0b03f6bc5e7768c4ecbcb4e4a2c505d9e4aad91 (patch) | |
tree | 87c199a7c3675479bcc8145a98fa264c8dd44633 /Source/Utils/CoarsenIO.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/Utils/CoarsenIO.cpp')
-rw-r--r-- | Source/Utils/CoarsenIO.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/Source/Utils/CoarsenIO.cpp b/Source/Utils/CoarsenIO.cpp index e2ea419ad..6bdaa32ee 100644 --- a/Source/Utils/CoarsenIO.cpp +++ b/Source/Utils/CoarsenIO.cpp @@ -41,38 +41,38 @@ CoarsenIO::Loop ( MultiFab& mf_dst, GpuArray<int,3> cr; // coarsening ratio sf[0] = stag_src[0]; -#if (AMREX_SPACEDIM == 1) +#if defined(WARPX_DIM_1D_Z) sf[1] = 0; #else sf[1] = stag_src[1]; #endif -#if (AMREX_SPACEDIM == 2 || AMREX_SPACEDIM == 1) +#if (AMREX_SPACEDIM <= 2) sf[2] = 0; -#elif (AMREX_SPACEDIM == 3) +#elif defined(WARPX_DIM_3D) sf[2] = stag_src[2]; #endif sc[0] = stag_dst[0]; -#if (AMREX_SPACEDIM == 1) +#if defined(WARPX_DIM_1D_Z) sc[1] = 0; #else sc[1] = stag_dst[1]; #endif -#if (AMREX_SPACEDIM == 2 || AMREX_SPACEDIM == 1) +#if (AMREX_SPACEDIM <= 2) sc[2] = 0; -#elif (AMREX_SPACEDIM == 3) +#elif defined(WARPX_DIM_3D) sc[2] = stag_dst[2]; #endif cr[0] = crse_ratio[0]; -#if (AMREX_SPACEDIM == 1) +#if defined(WARPX_DIM_1D_Z) cr[1] = 1; #else cr[1] = crse_ratio[1]; #endif -#if (AMREX_SPACEDIM == 2 || AMREX_SPACEDIM == 1) +#if (AMREX_SPACEDIM <= 2) cr[2] = 1; -#elif (AMREX_SPACEDIM == 3) +#elif defined(WARPX_DIM_3D) cr[2] = crse_ratio[2]; #endif |