From 9e02b95c1f7310550d0ba3d89639b44b72a17de9 Mon Sep 17 00:00:00 2001 From: Axel Huebl Date: Mon, 22 Nov 2021 18:04:18 -0800 Subject: Python: Start 1D Support (#2582) * Python: Start 1D Support Start supporting 1D builds in Python. * Fix 1D: PML FillZero unused ... since PMLs are not yet supported in 1D. * BeamRelevant: Fix unused p_pos0 * FromTXYEFileLaserProfile: Not Impl in 1D * QED Schwinger: 1D not Implemented Fix unused warnings, add aborts. * 1D RealVect/IntVect: Initialization Use explicit scalar constructors, no braces. Fix warning in clang 10. * 1D NCI Filter: Fix unused members & Init Unimplemented, but throws warnings. * PSATD: 1D not Implemented - remove compile warnings - start porting some parts * NCIGodfreyFilter: Clean up 2D & Else --- Source/Particles/PhysicalParticleContainer.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Source/Particles/PhysicalParticleContainer.cpp') diff --git a/Source/Particles/PhysicalParticleContainer.cpp b/Source/Particles/PhysicalParticleContainer.cpp index e34c4c28b..cdc1b0e02 100644 --- a/Source/Particles/PhysicalParticleContainer.cpp +++ b/Source/Particles/PhysicalParticleContainer.cpp @@ -1816,12 +1816,12 @@ PhysicalParticleContainer::applyNCIFilter ( const auto& nci_godfrey_filter_bxbyez = WarpX::GetInstance().nci_godfrey_filter_bxbyez; #if (AMREX_SPACEDIM == 1) - const Box& tbox = amrex::grow(box,{static_cast(WarpX::noz)}); + const Box& tbox = amrex::grow(box, static_cast(WarpX::noz)); #elif (AMREX_SPACEDIM == 2) - const Box& tbox = amrex::grow(box,{static_cast(WarpX::nox), + const Box& tbox = amrex::grow(box, {static_cast(WarpX::nox), static_cast(WarpX::noz)}); #else - const Box& tbox = amrex::grow(box,{static_cast(WarpX::nox), + const Box& tbox = amrex::grow(box, {static_cast(WarpX::nox), static_cast(WarpX::noy), static_cast(WarpX::noz)}); #endif -- cgit v1.2.3