From 61347a8571bd19748fa312495bed36b70e4f695b Mon Sep 17 00:00:00 2001 From: Luca Fedeli Date: Sun, 9 May 2021 14:34:47 +0200 Subject: [PATCH 01/58] initial tests with IWYU --- .../ComputeDiagFunctors/DivBFunctor.cpp | 1 + .../ComputeDiagFunctors/DivEFunctor.cpp | 1 + .../PartPerGridFunctor.cpp | 1 + Source/Diagnostics/FieldIO.H | 6 +++- Source/Diagnostics/FieldIO.cpp | 1 - .../FlushFormats/FlushFormatAscent.cpp | 2 +- .../ReducedDiags/LoadBalanceCosts.H | 2 +- .../ReducedDiags/LoadBalanceEfficiency.H | 2 -- .../ReducedDiags/ParticleHistogram.H | 3 +- Source/Diagnostics/SliceDiagnostic.H | 3 -- .../FiniteDifferenceSolver/ComputeDivE.cpp | 17 ++++++++- .../FiniteDifferenceSolver/EvolveF.cpp | 17 ++++++++- .../FiniteDifferenceSolver/EvolveG.cpp | 17 ++++++++- .../FiniteDifferenceSolver.H | 5 +-- .../FiniteDifferenceSolver.cpp | 7 +++- .../SpectralSolver/SpectralSolver.H | 6 ++++ .../SpectralSolver/SpectralSolver.cpp | 4 +-- Source/Filter/BilinearFilter.cpp | 13 ++++--- Source/Utils/CoarsenIO.H | 11 ++++-- Source/Utils/CoarsenIO.cpp | 12 +++++++ Source/Utils/CoarsenMR.H | 11 ++++-- Source/Utils/CoarsenMR.cpp | 10 ++++++ Source/Utils/Interpolate.H | 7 ++-- Source/Utils/Interpolate.cpp | 17 +++++++++ Source/Utils/IntervalsParser.cpp | 5 +++ Source/Utils/MPIInitHelpers.H | 2 -- Source/Utils/MPIInitHelpers.cpp | 8 +++-- Source/Utils/ParticleUtils.H | 2 ++ Source/Utils/ParticleUtils.cpp | 14 ++++++++ Source/Utils/RelativeCellPosition.H | 2 -- Source/Utils/RelativeCellPosition.cpp | 2 +- Source/Utils/WarpXAlgorithmSelection.H | 1 + Source/Utils/WarpXAlgorithmSelection.cpp | 5 ++- Source/Utils/WarpXMovingWindow.cpp | 36 +++++++++++++++++-- Source/Utils/WarpXProfilerWrapper.H | 1 + Source/Utils/WarpXTagging.cpp | 13 +++++-- Source/Utils/WarpXUtil.H | 5 ++- Source/Utils/WarpXUtil.cpp | 17 ++++++++- Source/WarpX.H | 17 +++++---- Source/main.cpp | 10 +++++- 40 files changed, 264 insertions(+), 52 deletions(-) diff --git a/Source/Diagnostics/ComputeDiagFunctors/DivBFunctor.cpp b/Source/Diagnostics/ComputeDiagFunctors/DivBFunctor.cpp index 512d801483a..196c781c061 100644 --- a/Source/Diagnostics/ComputeDiagFunctors/DivBFunctor.cpp +++ b/Source/Diagnostics/ComputeDiagFunctors/DivBFunctor.cpp @@ -1,3 +1,4 @@ +#include "WarpX.H" #include "DivBFunctor.H" #include "Utils/CoarsenIO.H" diff --git a/Source/Diagnostics/ComputeDiagFunctors/DivEFunctor.cpp b/Source/Diagnostics/ComputeDiagFunctors/DivEFunctor.cpp index 6abdb893853..32714688f48 100644 --- a/Source/Diagnostics/ComputeDiagFunctors/DivEFunctor.cpp +++ b/Source/Diagnostics/ComputeDiagFunctors/DivEFunctor.cpp @@ -1,3 +1,4 @@ +#include "WarpX.H" #include "DivEFunctor.H" #include "Utils/CoarsenIO.H" diff --git a/Source/Diagnostics/ComputeDiagFunctors/PartPerGridFunctor.cpp b/Source/Diagnostics/ComputeDiagFunctors/PartPerGridFunctor.cpp index f6be64f7309..becf593501b 100644 --- a/Source/Diagnostics/ComputeDiagFunctors/PartPerGridFunctor.cpp +++ b/Source/Diagnostics/ComputeDiagFunctors/PartPerGridFunctor.cpp @@ -1,3 +1,4 @@ +#include "WarpX.H" #include "PartPerGridFunctor.H" #include "Utils/CoarsenIO.H" diff --git a/Source/Diagnostics/FieldIO.H b/Source/Diagnostics/FieldIO.H index 6a868ef4ce1..2023a9ec726 100644 --- a/Source/Diagnostics/FieldIO.H +++ b/Source/Diagnostics/FieldIO.H @@ -8,7 +8,11 @@ #ifndef WARPX_FielIO_H_ #define WARPX_FielIO_H_ -#include +#include +#include +#include +#include + void AverageAndPackVectorField( amrex::MultiFab& mf_avg, diff --git a/Source/Diagnostics/FieldIO.cpp b/Source/Diagnostics/FieldIO.cpp index 01f0b329c5b..8e72ba45c3a 100644 --- a/Source/Diagnostics/FieldIO.cpp +++ b/Source/Diagnostics/FieldIO.cpp @@ -6,7 +6,6 @@ * License: BSD-3-Clause-LBNL */ #include "FieldIO.H" -#include "WarpX.H" #include "Utils/CoarsenIO.H" #include "Utils/WarpXUtil.H" diff --git a/Source/Diagnostics/FlushFormats/FlushFormatAscent.cpp b/Source/Diagnostics/FlushFormats/FlushFormatAscent.cpp index 15a67f036bd..fc5561a0f7d 100644 --- a/Source/Diagnostics/FlushFormats/FlushFormatAscent.cpp +++ b/Source/Diagnostics/FlushFormats/FlushFormatAscent.cpp @@ -1,7 +1,7 @@ #include "FlushFormatAscent.H" -#include "WarpX.H" #include +#include using namespace amrex; diff --git a/Source/Diagnostics/ReducedDiags/LoadBalanceCosts.H b/Source/Diagnostics/ReducedDiags/LoadBalanceCosts.H index b02a6aa72ae..6209c12bee1 100644 --- a/Source/Diagnostics/ReducedDiags/LoadBalanceCosts.H +++ b/Source/Diagnostics/ReducedDiags/LoadBalanceCosts.H @@ -8,9 +8,9 @@ #ifndef WARPX_DIAGNOSTICS_REDUCEDDIAGS_LOADBALANCECOSTS_H_ #define WARPX_DIAGNOSTICS_REDUCEDDIAGS_LOADBALANCECOSTS_H_ -#include "WarpX.H" #include "ReducedDiags.H" +#include /** * This class mainly contains a function that update the diff --git a/Source/Diagnostics/ReducedDiags/LoadBalanceEfficiency.H b/Source/Diagnostics/ReducedDiags/LoadBalanceEfficiency.H index db91c9822d7..33f7892f040 100644 --- a/Source/Diagnostics/ReducedDiags/LoadBalanceEfficiency.H +++ b/Source/Diagnostics/ReducedDiags/LoadBalanceEfficiency.H @@ -8,10 +8,8 @@ #ifndef WARPX_DIAGNOSTICS_REDUCEDDIAGS_LOADBALANCEEFFICIENCY_H_ #define WARPX_DIAGNOSTICS_REDUCEDDIAGS_LOADBALANCEEFFICIENCY_H_ -#include "WarpX.H" #include "ReducedDiags.H" - /** * This class mainly contains a function that gets the * current load balance efficiency for writing to output. diff --git a/Source/Diagnostics/ReducedDiags/ParticleHistogram.H b/Source/Diagnostics/ReducedDiags/ParticleHistogram.H index 3dfd04cc828..b22632b15c6 100644 --- a/Source/Diagnostics/ReducedDiags/ParticleHistogram.H +++ b/Source/Diagnostics/ReducedDiags/ParticleHistogram.H @@ -9,8 +9,7 @@ #define WARPX_DIAGNOSTICS_REDUCEDDIAGS_PARTICLEHISTOGRAM_H_ #include "ReducedDiags.H" -#include "WarpX.H" -#include +#include "Parser/WarpXParserWrapper.H" /** * Reduced diagnostics that computes a histogram over particles diff --git a/Source/Diagnostics/SliceDiagnostic.H b/Source/Diagnostics/SliceDiagnostic.H index 68a8c1f92c0..f6decdcbc3f 100644 --- a/Source/Diagnostics/SliceDiagnostic.H +++ b/Source/Diagnostics/SliceDiagnostic.H @@ -12,7 +12,6 @@ #include #include -#include #include #include #include @@ -20,8 +19,6 @@ #include #include - - std::unique_ptr CreateSlice( const amrex::MultiFab& mf, const amrex::Vector &dom_geom, amrex::RealBox &slice_realbox, diff --git a/Source/FieldSolver/FiniteDifferenceSolver/ComputeDivE.cpp b/Source/FieldSolver/FiniteDifferenceSolver/ComputeDivE.cpp index bcc7c4460a1..1d18657c7d6 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/ComputeDivE.cpp +++ b/Source/FieldSolver/FiniteDifferenceSolver/ComputeDivE.cpp @@ -15,8 +15,23 @@ # include "FiniteDifferenceAlgorithms/CartesianNodalAlgorithm.H" #endif #include "Utils/WarpXConst.H" -#include "WarpX.H" + #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include using namespace amrex; diff --git a/Source/FieldSolver/FiniteDifferenceSolver/EvolveF.cpp b/Source/FieldSolver/FiniteDifferenceSolver/EvolveF.cpp index 445b62fb61a..be16dea7765 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/EvolveF.cpp +++ b/Source/FieldSolver/FiniteDifferenceSolver/EvolveF.cpp @@ -15,8 +15,23 @@ # include "FiniteDifferenceAlgorithms/CartesianNodalAlgorithm.H" #endif #include "Utils/WarpXConst.H" -#include "WarpX.H" + #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include using namespace amrex; diff --git a/Source/FieldSolver/FiniteDifferenceSolver/EvolveG.cpp b/Source/FieldSolver/FiniteDifferenceSolver/EvolveG.cpp index f69fb57c4b1..e3ba4528309 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/EvolveG.cpp +++ b/Source/FieldSolver/FiniteDifferenceSolver/EvolveG.cpp @@ -15,8 +15,23 @@ # include "FiniteDifferenceAlgorithms/CartesianNodalAlgorithm.H" #endif #include "Utils/WarpXConst.H" -#include "WarpX.H" + #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include using namespace amrex; diff --git a/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.H b/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.H index 92812d4e01b..d1e50f71950 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.H +++ b/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.H @@ -8,9 +8,10 @@ #ifndef WARPX_FINITE_DIFFERENCE_SOLVER_H_ #define WARPX_FINITE_DIFFERENCE_SOLVER_H_ -#include -#include "MacroscopicProperties/MacroscopicProperties.H" #include "BoundaryConditions/PML.H" +#include "MacroscopicProperties/MacroscopicProperties.H" + +#include /** * \brief Top-level class for the electromagnetic finite-difference solver diff --git a/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.cpp b/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.cpp index 3a752ca4b6d..90c39173121 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.cpp +++ b/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.cpp @@ -14,7 +14,12 @@ # include "FiniteDifferenceAlgorithms/CartesianNodalAlgorithm.H" #endif #include "FiniteDifferenceSolver.H" -#include "WarpX.H" + +#include +#include +#include +#include +#include /* This function initializes the stencil coefficients for the chosen finite-difference algorithm */ FiniteDifferenceSolver::FiniteDifferenceSolver ( diff --git a/Source/FieldSolver/SpectralSolver/SpectralSolver.H b/Source/FieldSolver/SpectralSolver/SpectralSolver.H index d5c7725fe6d..295ebe9f650 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralSolver.H +++ b/Source/FieldSolver/SpectralSolver/SpectralSolver.H @@ -10,6 +10,12 @@ #include "SpectralAlgorithms/SpectralBaseAlgorithm.H" #include "SpectralFieldData.H" +#include +#include +#include + +#include +#include #ifdef WARPX_USE_PSATD /** diff --git a/Source/FieldSolver/SpectralSolver/SpectralSolver.cpp b/Source/FieldSolver/SpectralSolver/SpectralSolver.cpp index ae631ba6c78..6787817b962 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralSolver.cpp +++ b/Source/FieldSolver/SpectralSolver/SpectralSolver.cpp @@ -9,9 +9,9 @@ #include "SpectralAlgorithms/PsatdAlgorithm.H" #include "SpectralAlgorithms/PMLPsatdAlgorithm.H" #include "SpectralAlgorithms/ComovingPsatdAlgorithm.H" -#include "WarpX.H" +#include "FieldSolver/SpectralSolver/SpectralAlgorithms/SpectralBaseAlgorithm.H" +#include "FieldSolver/SpectralSolver/SpectralFieldData.H" #include "Utils/WarpXProfilerWrapper.H" -#include "Utils/WarpXUtil.H" #include diff --git a/Source/Filter/BilinearFilter.cpp b/Source/Filter/BilinearFilter.cpp index 57360333477..bbf31335d41 100644 --- a/Source/Filter/BilinearFilter.cpp +++ b/Source/Filter/BilinearFilter.cpp @@ -6,14 +6,17 @@ * License: BSD-3-Clause-LBNL */ #include "BilinearFilter.H" -#include "WarpX.H" +#include "Utils/WarpXProfilerWrapper.H" +#include +#include +#include +#include +#include #include -#ifdef AMREX_USE_OMP -# include -#endif - +#include +#include using namespace amrex; diff --git a/Source/Utils/CoarsenIO.H b/Source/Utils/CoarsenIO.H index 63ffa1f623f..6114b81350d 100644 --- a/Source/Utils/CoarsenIO.H +++ b/Source/Utils/CoarsenIO.H @@ -1,8 +1,15 @@ #ifndef WARPX_COARSEN_IO_H_ #define WARPX_COARSEN_IO_H_ -#include "WarpX.H" -#include +#include +#include +#include +#include +#include +#include +#include + +#include namespace CoarsenIO{ diff --git a/Source/Utils/CoarsenIO.cpp b/Source/Utils/CoarsenIO.cpp index b51419bbdcb..a2e27a250a1 100644 --- a/Source/Utils/CoarsenIO.cpp +++ b/Source/Utils/CoarsenIO.cpp @@ -1,5 +1,17 @@ #include "CoarsenIO.H" +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + using namespace amrex; void diff --git a/Source/Utils/CoarsenMR.H b/Source/Utils/CoarsenMR.H index 0ece65a57cc..f165b46f0ca 100644 --- a/Source/Utils/CoarsenMR.H +++ b/Source/Utils/CoarsenMR.H @@ -1,8 +1,15 @@ #ifndef WARPX_COARSEN_MR_H_ #define WARPX_COARSEN_MR_H_ -#include "WarpX.H" -#include +#include +#include +#include +#include +#include +#include +#include + +#include namespace CoarsenMR{ diff --git a/Source/Utils/CoarsenMR.cpp b/Source/Utils/CoarsenMR.cpp index 4de504dab22..fce3b488b10 100644 --- a/Source/Utils/CoarsenMR.cpp +++ b/Source/Utils/CoarsenMR.cpp @@ -1,5 +1,15 @@ #include "CoarsenMR.H" +#include +#include +#include +#include +#include +#include +#include +#include +#include + using namespace amrex; void diff --git a/Source/Utils/Interpolate.H b/Source/Utils/Interpolate.H index ca69aa63ea5..5ec98f746a1 100644 --- a/Source/Utils/Interpolate.H +++ b/Source/Utils/Interpolate.H @@ -1,9 +1,12 @@ #ifndef WARPX_INTERPOLATE_H_ #define WARPX_INTERPOLATE_H_ -#include "WarpX.H" +#include +#include +#include -#include +#include +#include namespace Interpolate { diff --git a/Source/Utils/Interpolate.cpp b/Source/Utils/Interpolate.cpp index 72c80530b01..393872e9401 100644 --- a/Source/Utils/Interpolate.cpp +++ b/Source/Utils/Interpolate.cpp @@ -1,6 +1,23 @@ #include "Interpolate.H" #include "Interpolate_K.H" +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + namespace Interpolate { using namespace amrex; diff --git a/Source/Utils/IntervalsParser.cpp b/Source/Utils/IntervalsParser.cpp index a98bf57a286..c79c8cf7a95 100644 --- a/Source/Utils/IntervalsParser.cpp +++ b/Source/Utils/IntervalsParser.cpp @@ -1,6 +1,11 @@ #include "WarpXUtil.H" #include "IntervalsParser.H" +#include + +#include +#include + SliceParser::SliceParser (const std::string& instr) { const std::string assert_msg = "ERROR: '" + instr + "' is not a valid syntax for a slice."; diff --git a/Source/Utils/MPIInitHelpers.H b/Source/Utils/MPIInitHelpers.H index 34d98bcb28f..7147ee0e17f 100644 --- a/Source/Utils/MPIInitHelpers.H +++ b/Source/Utils/MPIInitHelpers.H @@ -7,10 +7,8 @@ #ifndef WARPX_MPI_INIT_HELPERS_H_ #define WARPX_MPI_INIT_HELPERS_H_ -#include #include - namespace utils { /** Initialize MPI diff --git a/Source/Utils/MPIInitHelpers.cpp b/Source/Utils/MPIInitHelpers.cpp index e46127ee257..3611bb598f2 100644 --- a/Source/Utils/MPIInitHelpers.cpp +++ b/Source/Utils/MPIInitHelpers.cpp @@ -6,12 +6,16 @@ */ #include "MPIInitHelpers.H" -#include #include #include +#include -#include +#if defined(AMREX_USE_MPI) + #include +#endif +#include +#include namespace utils { diff --git a/Source/Utils/ParticleUtils.H b/Source/Utils/ParticleUtils.H index cb25607a339..b076d3a38ef 100644 --- a/Source/Utils/ParticleUtils.H +++ b/Source/Utils/ParticleUtils.H @@ -8,7 +8,9 @@ #define WARPX_PARTICLE_UTILS_H_ #include "Particles/WarpXParticleContainer.H" + #include +#include namespace ParticleUtils { diff --git a/Source/Utils/ParticleUtils.cpp b/Source/Utils/ParticleUtils.cpp index 92c03bc306e..3986dfbda88 100644 --- a/Source/Utils/ParticleUtils.cpp +++ b/Source/Utils/ParticleUtils.cpp @@ -7,6 +7,20 @@ #include "ParticleUtils.H" #include "WarpX.H" +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + namespace ParticleUtils { using namespace amrex; diff --git a/Source/Utils/RelativeCellPosition.H b/Source/Utils/RelativeCellPosition.H index 15ec0670740..f31c0f48576 100644 --- a/Source/Utils/RelativeCellPosition.H +++ b/Source/Utils/RelativeCellPosition.H @@ -7,8 +7,6 @@ #ifndef WARPX_RELATIVE_CELL_POSITION_H_ #define WARPX_RELATIVE_CELL_POSITION_H_ -#include "WarpX.H" - #include #include diff --git a/Source/Utils/RelativeCellPosition.cpp b/Source/Utils/RelativeCellPosition.cpp index 58c35fa52f1..01a0c68f3f6 100644 --- a/Source/Utils/RelativeCellPosition.cpp +++ b/Source/Utils/RelativeCellPosition.cpp @@ -7,7 +7,7 @@ #include "RelativeCellPosition.H" #include - +#include std::vector< double > utils::getRelativeCellPosition(amrex::MultiFab const& mf) diff --git a/Source/Utils/WarpXAlgorithmSelection.H b/Source/Utils/WarpXAlgorithmSelection.H index bc8a653ab7c..4d4081d2005 100644 --- a/Source/Utils/WarpXAlgorithmSelection.H +++ b/Source/Utils/WarpXAlgorithmSelection.H @@ -9,6 +9,7 @@ #define UTILS_WARPXALGORITHMSELECTION_H_ #include + #include /** diff --git a/Source/Utils/WarpXAlgorithmSelection.cpp b/Source/Utils/WarpXAlgorithmSelection.cpp index 14d1bea6429..b457020e03c 100644 --- a/Source/Utils/WarpXAlgorithmSelection.cpp +++ b/Source/Utils/WarpXAlgorithmSelection.cpp @@ -9,10 +9,13 @@ #include "WarpX.H" #include "WarpXAlgorithmSelection.H" +#include + #include #include #include - +#include +#include // Define dictionary with correspondance between user-input strings, // and corresponding integer for use inside the code diff --git a/Source/Utils/WarpXMovingWindow.cpp b/Source/Utils/WarpXMovingWindow.cpp index 7a066993169..fb22fbb3c2e 100644 --- a/Source/Utils/WarpXMovingWindow.cpp +++ b/Source/Utils/WarpXMovingWindow.cpp @@ -6,11 +6,41 @@ * * License: BSD-3-Clause-LBNL */ -#include "Parallelization/GuardCellManager.H" #include "WarpX.H" -#include "Utils/WarpXUtil.H" #include "Utils/WarpXConst.H" - +#include "BoundaryConditions/PML.H" // for PML +#include "Parser/WarpXParserWrapper.H" // for getParser, HostDeviceP... +#include "Particles/MultiParticleContainer.H" // for MultiParticleContainer +#include "Utils/WarpXProfilerWrapper.H" // for WARPX_PROFILE + +#include // for Array, GpuArray +#include // for Array4 +#include // for AMREX_ALWAYS_ASSERT +#include // for Box, adjCellHi, adjCellLo +#include // for BoxArray +#include // for AMREX_SPACEDIM, AMREX_... +#include // for Dim3 +#include // for FArrayBox +#include // for FabArray +#include // for Geometry +#include // for notInLaunchRegion +#include // for AMREX_PARALLEL_FOR_4D +#include // for ParallelFor +#include // for AMREX_GPU_DEVICE +#include // for amrex +#include // for IndexType +#include // for IntVect +#include // for MFIter +#include // for MultiFab +#include // for Real +#include // for RealBox +#include // for AMREX_D_DECL +#include // for Vector + +#include +#include // for array +#include // for allocator, unique_ptr +#include // for operator==, basic_string using namespace amrex; diff --git a/Source/Utils/WarpXProfilerWrapper.H b/Source/Utils/WarpXProfilerWrapper.H index f05aa2faee8..5e07794a1bf 100644 --- a/Source/Utils/WarpXProfilerWrapper.H +++ b/Source/Utils/WarpXProfilerWrapper.H @@ -10,6 +10,7 @@ #include #include +#include AMREX_FORCE_INLINE void doDeviceSynchronize(int do_device_synchronize) diff --git a/Source/Utils/WarpXTagging.cpp b/Source/Utils/WarpXTagging.cpp index 739ed0d5334..5079669793c 100644 --- a/Source/Utils/WarpXTagging.cpp +++ b/Source/Utils/WarpXTagging.cpp @@ -8,8 +8,17 @@ #include #include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include using namespace amrex; diff --git a/Source/Utils/WarpXUtil.H b/Source/Utils/WarpXUtil.H index 057b3193c0a..a504b261158 100644 --- a/Source/Utils/WarpXUtil.H +++ b/Source/Utils/WarpXUtil.H @@ -15,10 +15,13 @@ #include #include #include +#include +#include #include #include - +#include +#include void ReadBoostedFrameParameters(amrex::Real& gamma_boost, amrex::Real& beta_boost, amrex::Vector& boost_direction); diff --git a/Source/Utils/WarpXUtil.cpp b/Source/Utils/WarpXUtil.cpp index 32931dba2f8..6a02d43d299 100644 --- a/Source/Utils/WarpXUtil.cpp +++ b/Source/Utils/WarpXUtil.cpp @@ -9,14 +9,29 @@ #include "WarpXAlgorithmSelection.H" #include "WarpXConst.H" #include "WarpXUtil.H" +#include "WarpXProfilerWrapper.H" #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include #include - +#include +#include +#include using namespace amrex; diff --git a/Source/WarpX.H b/Source/WarpX.H index 8663fd9c476..b0ce9ceb824 100644 --- a/Source/WarpX.H +++ b/Source/WarpX.H @@ -44,22 +44,27 @@ #include #include -#include #include #include #include #include #include -#include #include - -#ifdef AMREX_USE_OMP -# include -#endif +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include +#include +#include +#include enum struct PatchType : int { diff --git a/Source/main.cpp b/Source/main.cpp index 477a0d495a7..b0971213da8 100644 --- a/Source/main.cpp +++ b/Source/main.cpp @@ -13,8 +13,16 @@ #include "Utils/WarpXProfilerWrapper.H" #include -#include #include +#include +#include +#include +#include +#include + +#if defined(AMREX_USE_MPI) + #include +#endif #if defined(AMREX_USE_HIP) && defined(WARPX_USE_PSATD) #include From ce3e39ce7e76f36491c2a489b3915eca11fa74f1 Mon Sep 17 00:00:00 2001 From: Luca Fedeli Date: Mon, 10 May 2021 09:51:05 +0200 Subject: [PATCH 02/58] added a couple of forward declarations --- Source/BoundaryConditions/PML.H | 4 +++- .../FiniteDifferenceSolver/FiniteDifferenceSolver.H | 2 ++ Source/WarpX.H | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Source/BoundaryConditions/PML.H b/Source/BoundaryConditions/PML.H index 9f07032ea06..a2c2072b6c6 100644 --- a/Source/BoundaryConditions/PML.H +++ b/Source/BoundaryConditions/PML.H @@ -9,6 +9,9 @@ #ifndef WARPX_PML_H_ #define WARPX_PML_H_ +class MultiSigmaBox; /*Forward declaration*/ +class PML; /*Forward declaration*/ + #include "Utils/WarpXProfilerWrapper.H" #ifdef WARPX_USE_PSATD @@ -20,7 +23,6 @@ #include - struct Sigma : amrex::Gpu::DeviceVector { int lo() const { return m_lo; } diff --git a/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.H b/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.H index d1e50f71950..1592cd56e26 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.H +++ b/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.H @@ -8,6 +8,8 @@ #ifndef WARPX_FINITE_DIFFERENCE_SOLVER_H_ #define WARPX_FINITE_DIFFERENCE_SOLVER_H_ +class FiniteDifferenceSolver; /*Forward declaration*/ + #include "BoundaryConditions/PML.H" #include "MacroscopicProperties/MacroscopicProperties.H" diff --git a/Source/WarpX.H b/Source/WarpX.H index b0ce9ceb824..35c819906d0 100644 --- a/Source/WarpX.H +++ b/Source/WarpX.H @@ -12,9 +12,9 @@ #ifndef WARPX_H_ #define WARPX_H_ +#include "BoundaryConditions/PML.H" #include "Evolve/WarpXDtType.H" #include "Particles/MultiParticleContainer.H" -#include "BoundaryConditions/PML.H" #include "Diagnostics/BackTransformedDiagnostic.H" #include "Diagnostics/MultiDiagnostics.H" #include "Filter/BilinearFilter.H" From 523006cfeece179e8b48c1d909aceb1cda5dc6dc Mon Sep 17 00:00:00 2001 From: Luca Fedeli Date: Mon, 10 May 2021 10:41:37 +0200 Subject: [PATCH 03/58] used iwyu on more files --- Source/BoundaryConditions/PML.H | 15 +++++++-- Source/BoundaryConditions/WarpXEvolvePML.cpp | 25 +++++++++++---- Source/Diagnostics/Diagnostics.H | 7 ++++- Source/Diagnostics/Diagnostics.cpp | 24 ++++++++++++--- Source/Diagnostics/FieldIO.H | 4 +++ Source/Diagnostics/FieldIO.cpp | 8 ++++- Source/Diagnostics/FullDiagnostics.H | 3 ++ Source/Diagnostics/FullDiagnostics.cpp | 32 +++++++++++++++----- Source/Diagnostics/MultiDiagnostics.H | 7 +++-- Source/Diagnostics/MultiDiagnostics.cpp | 8 +++++ 10 files changed, 109 insertions(+), 24 deletions(-) diff --git a/Source/BoundaryConditions/PML.H b/Source/BoundaryConditions/PML.H index a2c2072b6c6..651ee8c70c0 100644 --- a/Source/BoundaryConditions/PML.H +++ b/Source/BoundaryConditions/PML.H @@ -12,16 +12,27 @@ class MultiSigmaBox; /*Forward declaration*/ class PML; /*Forward declaration*/ -#include "Utils/WarpXProfilerWrapper.H" - #ifdef WARPX_USE_PSATD # include "FieldSolver/SpectralSolver/SpectralSolver.H" #endif +#include #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include +#include +#include +#include struct Sigma : amrex::Gpu::DeviceVector { diff --git a/Source/BoundaryConditions/WarpXEvolvePML.cpp b/Source/BoundaryConditions/WarpXEvolvePML.cpp index 4f0c1eb810d..169ce83011f 100644 --- a/Source/BoundaryConditions/WarpXEvolvePML.cpp +++ b/Source/BoundaryConditions/WarpXEvolvePML.cpp @@ -6,18 +6,31 @@ * License: BSD-3-Clause-LBNL */ #include "WarpX.H" -#include "Utils/WarpXConst.H" #include "WarpX_PML_kernels.H" - +#include "BoundaryConditions/PML.H" +#include "Utils/WarpXProfilerWrapper.H" #include "PML_current.H" #ifdef BL_USE_SENSEI_INSITU # include #endif - -#include -#include - +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include using namespace amrex; diff --git a/Source/Diagnostics/Diagnostics.H b/Source/Diagnostics/Diagnostics.H index 561da5ed38b..e5a878e636e 100644 --- a/Source/Diagnostics/Diagnostics.H +++ b/Source/Diagnostics/Diagnostics.H @@ -4,10 +4,15 @@ #include "FlushFormats/FlushFormat.H" #include "ComputeDiagFunctors/ComputeDiagFunctor.H" #include "ParticleDiag/ParticleDiag.H" -#include "Utils/IntervalsParser.H" + #include #include +#include +#include +#include +#include +#include #include /** diff --git a/Source/Diagnostics/Diagnostics.cpp b/Source/Diagnostics/Diagnostics.cpp index 1e305d0fcd5..f5bd0bdf493 100644 --- a/Source/Diagnostics/Diagnostics.cpp +++ b/Source/Diagnostics/Diagnostics.cpp @@ -1,20 +1,34 @@ #include "Diagnostics.H" -#include "ComputeDiagFunctors/CellCenterFunctor.H" -#include "ComputeDiagFunctors/PartPerCellFunctor.H" -#include "ComputeDiagFunctors/PartPerGridFunctor.H" -#include "ComputeDiagFunctors/DivBFunctor.H" -#include "ComputeDiagFunctors/DivEFunctor.H" + #include "FlushFormats/FlushFormatPlotfile.H" #include "FlushFormats/FlushFormatCheckpoint.H" #include "FlushFormats/FlushFormatAscent.H" #include "FlushFormats/FlushFormatSensei.H" +#include "Diagnostics/ComputeDiagFunctors/ComputeDiagFunctor.H" +#include "Diagnostics/FlushFormats/FlushFormat.H" +#include "Diagnostics/ParticleDiag/ParticleDiag.H" +#include "Particles/MultiParticleContainer.H" +#include "Utils/WarpXAlgorithmSelection.H" +#include "Utils/WarpXProfilerWrapper.H" #ifdef WARPX_USE_OPENPMD # include "FlushFormats/FlushFormatOpenPMD.H" #endif #include "WarpX.H" #include "Utils/WarpXUtil.H" + #include +#include +#include +#include +#include +#include +#include +#include +#include + #include +#include + using namespace amrex::literals; Diagnostics::Diagnostics (int i, std::string name) diff --git a/Source/Diagnostics/FieldIO.H b/Source/Diagnostics/FieldIO.H index 2023a9ec726..4985020957d 100644 --- a/Source/Diagnostics/FieldIO.H +++ b/Source/Diagnostics/FieldIO.H @@ -13,6 +13,10 @@ #include #include +#include +#include +#include +#include void AverageAndPackVectorField( amrex::MultiFab& mf_avg, diff --git a/Source/Diagnostics/FieldIO.cpp b/Source/Diagnostics/FieldIO.cpp index 8e72ba45c3a..a9603b734be 100644 --- a/Source/Diagnostics/FieldIO.cpp +++ b/Source/Diagnostics/FieldIO.cpp @@ -7,7 +7,6 @@ */ #include "FieldIO.H" #include "Utils/CoarsenIO.H" -#include "Utils/WarpXUtil.H" #ifdef WARPX_USE_PSATD # include "FieldSolver/SpectralSolver/SpectralSolver.H" @@ -18,8 +17,15 @@ #endif #include +#include +#include +#include +#include +#include #include +#include +#include using namespace amrex; diff --git a/Source/Diagnostics/FullDiagnostics.H b/Source/Diagnostics/FullDiagnostics.H index 367acbfe8f2..05272a127f3 100644 --- a/Source/Diagnostics/FullDiagnostics.H +++ b/Source/Diagnostics/FullDiagnostics.H @@ -2,6 +2,9 @@ #define WARPX_FULLDIAGNOSTICS_H_ #include "Diagnostics.H" +#include "Utils/IntervalsParser.H" + +#include class FullDiagnostics final : public Diagnostics diff --git a/Source/Diagnostics/FullDiagnostics.cpp b/Source/Diagnostics/FullDiagnostics.cpp index 9fe54c09427..c3efae32554 100644 --- a/Source/Diagnostics/FullDiagnostics.cpp +++ b/Source/Diagnostics/FullDiagnostics.cpp @@ -1,6 +1,10 @@ #include "FullDiagnostics.H" + #include "WarpX.H" -#include "ComputeDiagFunctors/ComputeDiagFunctor.H" +#include "Diagnostics/Diagnostics.H" +#include "Diagnostics/ParticleDiag/ParticleDiag.H" +#include "Particles/MultiParticleContainer.H" +#include "Utils/WarpXAlgorithmSelection.H" #include "ComputeDiagFunctors/CellCenterFunctor.H" #include "ComputeDiagFunctors/PartPerCellFunctor.H" #include "ComputeDiagFunctors/PartPerGridFunctor.H" @@ -8,15 +12,29 @@ #include "ComputeDiagFunctors/DivEFunctor.H" #include "ComputeDiagFunctors/RhoFunctor.H" #include "FlushFormats/FlushFormat.H" -#include "FlushFormats/FlushFormatPlotfile.H" -#include "FlushFormats/FlushFormatCheckpoint.H" -#include "FlushFormats/FlushFormatAscent.H" -#ifdef WARPX_USE_OPENPMD -# include "FlushFormats/FlushFormatOpenPMD.H" -#endif + #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include + using namespace amrex::literals; FullDiagnostics::FullDiagnostics (int i, std::string name) diff --git a/Source/Diagnostics/MultiDiagnostics.H b/Source/Diagnostics/MultiDiagnostics.H index f59dea7dde4..491460eea19 100644 --- a/Source/Diagnostics/MultiDiagnostics.H +++ b/Source/Diagnostics/MultiDiagnostics.H @@ -1,9 +1,12 @@ #ifndef WARPX_MULTIDIAGNOSTICS_H_ #define WARPX_MULTIDIAGNOSTICS_H_ -#include "FullDiagnostics.H" -#include "BTDiagnostics.H" +#include "Diagnostics/Diagnostics.H" +#include + +#include +#include #include /** All types of diagnostics. */ diff --git a/Source/Diagnostics/MultiDiagnostics.cpp b/Source/Diagnostics/MultiDiagnostics.cpp index 0e873830a6c..f2b412eb85b 100644 --- a/Source/Diagnostics/MultiDiagnostics.cpp +++ b/Source/Diagnostics/MultiDiagnostics.cpp @@ -1,5 +1,13 @@ #include "MultiDiagnostics.H" + +#include "Diagnostics/BTDiagnostics.H" +#include "Diagnostics/FullDiagnostics.H" + #include +#include +#include + +#include using namespace amrex; From 3e39b87618cd367cdb1a64946add71862e10e60e Mon Sep 17 00:00:00 2001 From: Luca Fedeli Date: Tue, 11 May 2021 03:24:47 +0200 Subject: [PATCH 04/58] progress --- Source/BoundaryConditions/PML.cpp | 33 +++++++++++++---- Source/BoundaryConditions/WarpXEvolvePML.cpp | 2 +- .../Diagnostics/BackTransformedDiagnostic.H | 14 +++++--- .../Diagnostics/BackTransformedDiagnostic.cpp | 36 ++++++++++++++++--- .../FlushFormats/FlushFormatCheckpoint.cpp | 2 ++ .../FlushFormats/FlushFormatPlotfile.cpp | 2 ++ Source/WarpX.cpp | 33 +++++++++++++---- 7 files changed, 98 insertions(+), 24 deletions(-) diff --git a/Source/BoundaryConditions/PML.cpp b/Source/BoundaryConditions/PML.cpp index cb7fb7075bd..7f4f0dfebc3 100644 --- a/Source/BoundaryConditions/PML.cpp +++ b/Source/BoundaryConditions/PML.cpp @@ -6,23 +6,42 @@ * * License: BSD-3-Clause-LBNL */ +#include "PML.H" + +#include "WarpX.H" #include "BoundaryConditions/PML.H" #include "BoundaryConditions/PMLComponent.H" #include "Utils/WarpXConst.H" #include "Utils/WarpXAlgorithmSelection.H" -#include "WarpX.H" +#include "FieldSolver/SpectralSolver/SpectralFieldData.H" +#include "Utils/WarpXProfilerWrapper.H" #include -#include #include - -#ifdef AMREX_USE_OMP -# include -#endif +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include - +#include +#include using namespace amrex; diff --git a/Source/BoundaryConditions/WarpXEvolvePML.cpp b/Source/BoundaryConditions/WarpXEvolvePML.cpp index 169ce83011f..800979be2ad 100644 --- a/Source/BoundaryConditions/WarpXEvolvePML.cpp +++ b/Source/BoundaryConditions/WarpXEvolvePML.cpp @@ -21,13 +21,13 @@ #include #include #include -#include #include #include #include #include #include #include +#include #include #include diff --git a/Source/Diagnostics/BackTransformedDiagnostic.H b/Source/Diagnostics/BackTransformedDiagnostic.H index 96dbb948318..f3757b60e49 100644 --- a/Source/Diagnostics/BackTransformedDiagnostic.H +++ b/Source/Diagnostics/BackTransformedDiagnostic.H @@ -8,17 +8,21 @@ #ifndef WARPX_BackTransformedDiagnostic_H_ #define WARPX_BackTransformedDiagnostic_H_ +#include "Particles/WarpXParticleContainer.H" #include "Particles/MultiParticleContainer.H" -#include "Utils/WarpXConst.H" +#include +#include +#include +#include +#include +#include #include -#include -#include -#include #include #include - +#include +#include /** \brief * The capability for back-transformed lab-frame data is implemented to generate diff --git a/Source/Diagnostics/BackTransformedDiagnostic.cpp b/Source/Diagnostics/BackTransformedDiagnostic.cpp index a628ca4e431..dd428987072 100644 --- a/Source/Diagnostics/BackTransformedDiagnostic.cpp +++ b/Source/Diagnostics/BackTransformedDiagnostic.cpp @@ -5,14 +5,42 @@ * * License: BSD-3-Clause-LBNL */ -#include -#include - #include "BackTransformedDiagnostic.H" -#include "SliceDiagnostic.H" + +#include "Utils/WarpXConst.H" +#include "Utils/WarpXProfilerWrapper.H" #include "WarpX.H" +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + #include +#include +#include +#include using namespace amrex; diff --git a/Source/Diagnostics/FlushFormats/FlushFormatCheckpoint.cpp b/Source/Diagnostics/FlushFormats/FlushFormatCheckpoint.cpp index 9a570ce3254..400caab3e42 100644 --- a/Source/Diagnostics/FlushFormats/FlushFormatCheckpoint.cpp +++ b/Source/Diagnostics/FlushFormats/FlushFormatCheckpoint.cpp @@ -1,8 +1,10 @@ #include "FlushFormatCheckpoint.H" + #include "WarpX.H" #include "Utils/WarpXProfilerWrapper.H" #include +#include using namespace amrex; diff --git a/Source/Diagnostics/FlushFormats/FlushFormatPlotfile.cpp b/Source/Diagnostics/FlushFormats/FlushFormatPlotfile.cpp index 28bf7e23b71..239fe016548 100644 --- a/Source/Diagnostics/FlushFormats/FlushFormatPlotfile.cpp +++ b/Source/Diagnostics/FlushFormats/FlushFormatPlotfile.cpp @@ -1,10 +1,12 @@ #include "FlushFormatPlotfile.H" + #include "WarpX.H" #include "Utils/Interpolate.H" #include "Particles/Filter/FilterFunctors.H" #include #include +#include using namespace amrex; diff --git a/Source/WarpX.cpp b/Source/WarpX.cpp index 2629da00aad..d02deccc2d7 100644 --- a/Source/WarpX.cpp +++ b/Source/WarpX.cpp @@ -10,6 +10,7 @@ * License: BSD-3-Clause-LBNL */ #include "WarpX.H" + #include "FieldSolver/WarpX_FDTD.H" #ifdef WARPX_USE_PSATD #include "FieldSolver/SpectralSolver/SpectralKSpace.H" @@ -18,25 +19,43 @@ #include "Utils/WarpXConst.H" #include "Utils/WarpXUtil.H" #include "Utils/WarpXAlgorithmSelection.H" -#include "Utils/WarpXProfilerWrapper.H" #include #include +#include #ifdef BL_USE_SENSEI_INSITU # include #endif - -#ifdef AMREX_USE_OMP -# include -#endif +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include -#include #include #include -#include #include #include +#include using namespace amrex; From 397e6128c8a41b03c055f92c8a4a1fe8581d1590 Mon Sep 17 00:00:00 2001 From: Luca Fedeli Date: Tue, 11 May 2021 10:59:41 +0200 Subject: [PATCH 05/58] used iwyu on more files --- Source/Diagnostics/BTD_Plotfile_Header_Impl.H | 9 ++++-- .../Diagnostics/BTD_Plotfile_Header_Impl.cpp | 11 ++++--- Source/Diagnostics/BTDiagnostics.H | 14 +++++++++ Source/Diagnostics/BTDiagnostics.cpp | 22 ++++++++++++-- .../ComputeDiagFunctors/CellCenterFunctor.cpp | 3 ++ .../ComputeDiagFunctors/DivBFunctor.H | 2 ++ .../ComputeDiagFunctors/DivBFunctor.cpp | 3 +- .../ComputeDiagFunctors/DivEFunctor.H | 2 ++ .../ComputeDiagFunctors/DivEFunctor.cpp | 6 +++- .../PartPerCellFunctor.cpp | 8 +++++ .../PartPerGridFunctor.cpp | 19 +++++++++++- .../ComputeDiagFunctors/RhoFunctor.cpp | 13 +++++++-- Source/Diagnostics/Diagnostics.H | 2 +- Source/Diagnostics/FieldIO.cpp | 9 +----- Source/Diagnostics/ParticleIO.cpp | 25 +++++++++++++++- Source/Diagnostics/SliceDiagnostic.H | 7 ++--- Source/Diagnostics/SliceDiagnostic.cpp | 26 +++++++++++++++-- Source/Diagnostics/WarpXIO.cpp | 29 +++++++++++++------ Source/Diagnostics/WarpXOpenPMD.H | 9 +++--- Source/Diagnostics/WarpXOpenPMD.cpp | 27 ++++++++++++++--- 20 files changed, 196 insertions(+), 50 deletions(-) diff --git a/Source/Diagnostics/BTD_Plotfile_Header_Impl.H b/Source/Diagnostics/BTD_Plotfile_Header_Impl.H index 78bfcb66d5f..c2ddf1f283a 100644 --- a/Source/Diagnostics/BTD_Plotfile_Header_Impl.H +++ b/Source/Diagnostics/BTD_Plotfile_Header_Impl.H @@ -1,10 +1,15 @@ #ifndef BTD_PLOTFILE_HEADER_IMPL_H #define BTD_PLOTFILE_HEADER_IMPL_H -#include #include -#include +#include +#include +#include +#include +#include +#include +#include /** * \brief Class to read, modify, and write plotfile header when diff --git a/Source/Diagnostics/BTD_Plotfile_Header_Impl.cpp b/Source/Diagnostics/BTD_Plotfile_Header_Impl.cpp index 90a0c8317cd..de7bdf89b53 100644 --- a/Source/Diagnostics/BTD_Plotfile_Header_Impl.cpp +++ b/Source/Diagnostics/BTD_Plotfile_Header_Impl.cpp @@ -1,14 +1,17 @@ #include "BTD_Plotfile_Header_Impl.H" + #include "WarpX.H" -#include -#include #include #include -#include +#include +#include +#include -using namespace amrex::literals; +#include +#include +using namespace amrex::literals; BTDPlotfileHeaderImpl::BTDPlotfileHeaderImpl (std::string const & Headerfile_path) : m_Header_path(Headerfile_path) diff --git a/Source/Diagnostics/BTDiagnostics.H b/Source/Diagnostics/BTDiagnostics.H index 8f513acfc78..54d2388c8e8 100644 --- a/Source/Diagnostics/BTDiagnostics.H +++ b/Source/Diagnostics/BTDiagnostics.H @@ -2,6 +2,20 @@ #define WARPX_BTDIAGNOSTICS_H_ #include "Diagnostics.H" +#include "Diagnostics/ComputeDiagFunctors/ComputeDiagFunctor.H" +#include "Utils/WarpXConst.H" + +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include class BTDiagnostics final : public Diagnostics diff --git a/Source/Diagnostics/BTDiagnostics.cpp b/Source/Diagnostics/BTDiagnostics.cpp index 234079a2080..b36b57b2a0c 100644 --- a/Source/Diagnostics/BTDiagnostics.cpp +++ b/Source/Diagnostics/BTDiagnostics.cpp @@ -1,4 +1,5 @@ #include "BTDiagnostics.H" + #include "BTD_Plotfile_Header_Impl.H" #include "WarpX.H" #include "Utils/WarpXConst.H" @@ -7,13 +8,28 @@ #include "ComputeDiagFunctors/BackTransformFunctor.H" #include "ComputeDiagFunctors/RhoFunctor.H" #include "Utils/CoarsenIO.H" - +#include "Diagnostics/Diagnostics.H" +#include "Diagnostics/FlushFormats/FlushFormat.H" +#include "Utils/WarpXUtil.H" #include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include +#include +#include +#include +#include using namespace amrex::literals; diff --git a/Source/Diagnostics/ComputeDiagFunctors/CellCenterFunctor.cpp b/Source/Diagnostics/ComputeDiagFunctors/CellCenterFunctor.cpp index 7a139f379c5..7da657de245 100644 --- a/Source/Diagnostics/ComputeDiagFunctors/CellCenterFunctor.cpp +++ b/Source/Diagnostics/ComputeDiagFunctors/CellCenterFunctor.cpp @@ -1,7 +1,10 @@ #include "CellCenterFunctor.H" + #include "Utils/CoarsenIO.H" #include +#include +#include CellCenterFunctor::CellCenterFunctor(amrex::MultiFab const * mf_src, int lev, amrex::IntVect crse_ratio, diff --git a/Source/Diagnostics/ComputeDiagFunctors/DivBFunctor.H b/Source/Diagnostics/ComputeDiagFunctors/DivBFunctor.H index 52b9a1dbd05..95bb6b6689f 100644 --- a/Source/Diagnostics/ComputeDiagFunctors/DivBFunctor.H +++ b/Source/Diagnostics/ComputeDiagFunctors/DivBFunctor.H @@ -3,6 +3,8 @@ #include "ComputeDiagFunctor.H" +#include + /** * \brief Functor to compute divB into mf_out. */ diff --git a/Source/Diagnostics/ComputeDiagFunctors/DivBFunctor.cpp b/Source/Diagnostics/ComputeDiagFunctors/DivBFunctor.cpp index 196c781c061..d5fb9885de1 100644 --- a/Source/Diagnostics/ComputeDiagFunctors/DivBFunctor.cpp +++ b/Source/Diagnostics/ComputeDiagFunctors/DivBFunctor.cpp @@ -1,5 +1,6 @@ -#include "WarpX.H" #include "DivBFunctor.H" + +#include "WarpX.H" #include "Utils/CoarsenIO.H" DivBFunctor::DivBFunctor(const std::array arr_mf_src, const int lev, const amrex::IntVect crse_ratio, const int ncomp) diff --git a/Source/Diagnostics/ComputeDiagFunctors/DivEFunctor.H b/Source/Diagnostics/ComputeDiagFunctors/DivEFunctor.H index 503737f84e9..a352682417d 100644 --- a/Source/Diagnostics/ComputeDiagFunctors/DivEFunctor.H +++ b/Source/Diagnostics/ComputeDiagFunctors/DivEFunctor.H @@ -3,6 +3,8 @@ #include "ComputeDiagFunctor.H" +#include + /** * \brief Functor to compute divE into mf_out. */ diff --git a/Source/Diagnostics/ComputeDiagFunctors/DivEFunctor.cpp b/Source/Diagnostics/ComputeDiagFunctors/DivEFunctor.cpp index 32714688f48..6e1b2d75d63 100644 --- a/Source/Diagnostics/ComputeDiagFunctors/DivEFunctor.cpp +++ b/Source/Diagnostics/ComputeDiagFunctors/DivEFunctor.cpp @@ -1,8 +1,12 @@ -#include "WarpX.H" #include "DivEFunctor.H" + +#include "WarpX.H" #include "Utils/CoarsenIO.H" #include +#include +#include +#include DivEFunctor::DivEFunctor(const std::array arr_mf_src, const int lev, const amrex::IntVect crse_ratio, diff --git a/Source/Diagnostics/ComputeDiagFunctors/PartPerCellFunctor.cpp b/Source/Diagnostics/ComputeDiagFunctors/PartPerCellFunctor.cpp index 31acacc9bce..8c5479640ea 100644 --- a/Source/Diagnostics/ComputeDiagFunctors/PartPerCellFunctor.cpp +++ b/Source/Diagnostics/ComputeDiagFunctors/PartPerCellFunctor.cpp @@ -1,6 +1,14 @@ #include "PartPerCellFunctor.H" + #include "WarpX.H" #include "Utils/CoarsenIO.H" +#include "Diagnostics/ComputeDiagFunctors/ComputeDiagFunctor.H" +#include "Particles/MultiParticleContainer.H" + +#include +#include +#include +#include using namespace amrex::literals; diff --git a/Source/Diagnostics/ComputeDiagFunctors/PartPerGridFunctor.cpp b/Source/Diagnostics/ComputeDiagFunctors/PartPerGridFunctor.cpp index becf593501b..c4552d81e8a 100644 --- a/Source/Diagnostics/ComputeDiagFunctors/PartPerGridFunctor.cpp +++ b/Source/Diagnostics/ComputeDiagFunctors/PartPerGridFunctor.cpp @@ -1,6 +1,23 @@ -#include "WarpX.H" #include "PartPerGridFunctor.H" + +#include "WarpX.H" #include "Utils/CoarsenIO.H" +#include "Diagnostics/ComputeDiagFunctors/ComputeDiagFunctor.H" +#include "Particles/MultiParticleContainer.H" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include PartPerGridFunctor::PartPerGridFunctor(const amrex::MultiFab * const mf_src, const int lev, const amrex::IntVect crse_ratio, const int ncomp) : ComputeDiagFunctor(ncomp, crse_ratio), m_lev(lev) diff --git a/Source/Diagnostics/ComputeDiagFunctors/RhoFunctor.cpp b/Source/Diagnostics/ComputeDiagFunctors/RhoFunctor.cpp index a87b797e958..21fa160d1f3 100644 --- a/Source/Diagnostics/ComputeDiagFunctors/RhoFunctor.cpp +++ b/Source/Diagnostics/ComputeDiagFunctors/RhoFunctor.cpp @@ -1,12 +1,19 @@ -#include "WarpX.H" #include "RhoFunctor.H" -#include "Utils/CoarsenIO.H" +#include "WarpX.H" +#include "Utils/CoarsenIO.H" +#include "Diagnostics/ComputeDiagFunctors/ComputeDiagFunctor.H" +#include "Particles/MultiParticleContainer.H" +#include "Particles/WarpXParticleContainer.H" #if (defined WARPX_DIM_RZ) && (defined WARPX_USE_PSATD) -#include "FieldSolver/SpectralSolver/SpectralFieldData.H" + #include "FieldSolver/SpectralSolver/SpectralFieldData.H" #endif #include +#include +#include + +#include RhoFunctor::RhoFunctor (const int lev, const amrex::IntVect crse_ratio, diff --git a/Source/Diagnostics/Diagnostics.H b/Source/Diagnostics/Diagnostics.H index e5a878e636e..6badc364d82 100644 --- a/Source/Diagnostics/Diagnostics.H +++ b/Source/Diagnostics/Diagnostics.H @@ -1,9 +1,9 @@ #ifndef WARPX_DIAGNOSTICS_H_ #define WARPX_DIAGNOSTICS_H_ +#include "ParticleDiag/ParticleDiag.H" #include "FlushFormats/FlushFormat.H" #include "ComputeDiagFunctors/ComputeDiagFunctor.H" -#include "ParticleDiag/ParticleDiag.H" #include #include diff --git a/Source/Diagnostics/FieldIO.cpp b/Source/Diagnostics/FieldIO.cpp index a9603b734be..e11af41c17e 100644 --- a/Source/Diagnostics/FieldIO.cpp +++ b/Source/Diagnostics/FieldIO.cpp @@ -6,15 +6,8 @@ * License: BSD-3-Clause-LBNL */ #include "FieldIO.H" -#include "Utils/CoarsenIO.H" - -#ifdef WARPX_USE_PSATD -# include "FieldSolver/SpectralSolver/SpectralSolver.H" -#endif -#ifdef WARPX_USE_OPENPMD -# include -#endif +#include "Utils/CoarsenIO.H" #include #include diff --git a/Source/Diagnostics/ParticleIO.cpp b/Source/Diagnostics/ParticleIO.cpp index 41a60c992de..f150f9b1585 100644 --- a/Source/Diagnostics/ParticleIO.cpp +++ b/Source/Diagnostics/ParticleIO.cpp @@ -7,10 +7,33 @@ * License: BSD-3-Clause-LBNL */ -#include "Particles/Filter/FilterFunctors.H" #include "Particles/MultiParticleContainer.H" +#include "Particles/PhysicalParticleContainer.H" +#include "Particles/RigidInjectedParticleContainer.H" +#include "Particles/SpeciesPhysicalProperties.H" +#include "Particles/WarpXParticleContainer.H" +#include "Utils/WarpXConst.H" +#include "Utils/WarpXProfilerWrapper.H" #include "WarpX.H" +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include + using namespace amrex; void diff --git a/Source/Diagnostics/SliceDiagnostic.H b/Source/Diagnostics/SliceDiagnostic.H index f6decdcbc3f..b1839328bd9 100644 --- a/Source/Diagnostics/SliceDiagnostic.H +++ b/Source/Diagnostics/SliceDiagnostic.H @@ -7,18 +7,15 @@ #ifndef WARPX_SliceDiagnostic_H_ #define WARPX_SliceDiagnostic_H_ -#include -#include -#include #include - #include #include #include -#include #include #include +#include + std::unique_ptr CreateSlice( const amrex::MultiFab& mf, const amrex::Vector &dom_geom, amrex::RealBox &slice_realbox, diff --git a/Source/Diagnostics/SliceDiagnostic.cpp b/Source/Diagnostics/SliceDiagnostic.cpp index d895a858075..960059c4068 100644 --- a/Source/Diagnostics/SliceDiagnostic.cpp +++ b/Source/Diagnostics/SliceDiagnostic.cpp @@ -6,12 +6,32 @@ * License: BSD-3-Clause-LBNL */ #include "SliceDiagnostic.H" -#include -#include -#include +#include "WarpX.H" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include +#include using namespace amrex; diff --git a/Source/Diagnostics/WarpXIO.cpp b/Source/Diagnostics/WarpXIO.cpp index b567781e791..ae58457657c 100644 --- a/Source/Diagnostics/WarpXIO.cpp +++ b/Source/Diagnostics/WarpXIO.cpp @@ -9,22 +9,33 @@ */ #include "WarpX.H" #include "FieldIO.H" -#include "SliceDiagnostic.H" #include "Utils/CoarsenIO.H" - -#ifdef WARPX_USE_OPENPMD -# include "Diagnostics/WarpXOpenPMD.H" -#endif - -#include +#include "BoundaryConditions/PML.H" +#include "Particles/MultiParticleContainer.H" +#include "Utils/WarpXProfilerWrapper.H" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include -#include - #ifdef BL_USE_SENSEI_INSITU # include #endif #include +#include +#include +#include +#include using namespace amrex; diff --git a/Source/Diagnostics/WarpXOpenPMD.H b/Source/Diagnostics/WarpXOpenPMD.H index 4152dd89692..3274b7a810f 100644 --- a/Source/Diagnostics/WarpXOpenPMD.H +++ b/Source/Diagnostics/WarpXOpenPMD.H @@ -9,15 +9,17 @@ #define WARPX_OPEN_PMD_H_ #include "Particles/WarpXParticleContainer.H" -#include "Particles/MultiParticleContainer.H" // PIdx -#include "Particles/PhysicalParticleContainer.H" - #include "Diagnostics/ParticleDiag/ParticleDiag.H" #include #include #include #include +#include +#include +#include +#include +#include #ifdef WARPX_USE_OPENPMD # include @@ -27,7 +29,6 @@ #include #include - // // helper class // diff --git a/Source/Diagnostics/WarpXOpenPMD.cpp b/Source/Diagnostics/WarpXOpenPMD.cpp index 2ff21de2aab..b13e5b373ef 100644 --- a/Source/Diagnostics/WarpXOpenPMD.cpp +++ b/Source/Diagnostics/WarpXOpenPMD.cpp @@ -5,14 +5,35 @@ * License: BSD-3-Clause-LBNL */ #include "WarpXOpenPMD.H" -#include "FieldIO.H" // for getReversedVec + +#include "WarpX.H" +#include "FieldIO.H" #include "Particles/Filter/FilterFunctors.H" #include "Utils/RelativeCellPosition.H" #include "Utils/WarpXAlgorithmSelection.H" #include "Utils/WarpXUtil.H" +#include "Diagnostics/ParticleDiag/ParticleDiag.H" +#include "Parser/WarpXParserWrapper.H" +#include "Utils/WarpXProfilerWrapper.H" -#include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include @@ -22,8 +43,6 @@ #include #include #include -#include - namespace detail { From 0f88dfc9f03aa8524dc5a472931795fb32fda3b9 Mon Sep 17 00:00:00 2001 From: Luca Fedeli Date: Tue, 11 May 2021 12:56:22 +0200 Subject: [PATCH 06/58] progress with iwyu --- .../BackTransformFunctor.H | 7 ++++ .../BackTransformFunctor.cpp | 17 ++++++++- .../FlushFormats/FlushFormatAscent.H | 4 +++ .../FlushFormats/FlushFormatAscent.cpp | 2 +- .../FlushFormats/FlushFormatCheckpoint.H | 5 +++ .../FlushFormats/FlushFormatCheckpoint.cpp | 11 +++++- .../FlushFormats/FlushFormatPlotfile.H | 6 ++++ .../FlushFormats/FlushFormatPlotfile.cpp | 36 +++++++++++++++++++ 8 files changed, 85 insertions(+), 3 deletions(-) diff --git a/Source/Diagnostics/ComputeDiagFunctors/BackTransformFunctor.H b/Source/Diagnostics/ComputeDiagFunctors/BackTransformFunctor.H index 87747c30a6d..0f3f537e91b 100644 --- a/Source/Diagnostics/ComputeDiagFunctors/BackTransformFunctor.H +++ b/Source/Diagnostics/ComputeDiagFunctors/BackTransformFunctor.H @@ -3,6 +3,13 @@ #include "ComputeDiagFunctor.H" +#include +#include +#include +#include + +#include + /** * \brief Functor to back-transform cell-centered data and store result in mf_out * diff --git a/Source/Diagnostics/ComputeDiagFunctors/BackTransformFunctor.cpp b/Source/Diagnostics/ComputeDiagFunctors/BackTransformFunctor.cpp index 211e1d4ec7f..bcadbafa2ae 100644 --- a/Source/Diagnostics/ComputeDiagFunctors/BackTransformFunctor.cpp +++ b/Source/Diagnostics/ComputeDiagFunctors/BackTransformFunctor.cpp @@ -1,10 +1,25 @@ #include "BackTransformFunctor.H" + #include "WarpX.H" +#include "Diagnostics/ComputeDiagFunctors/ComputeDiagFunctor.H" // for Comp... +#include "Utils/WarpXConst.H" // for c #include -#include +#include // for Array4 +#include // for BoxA... +#include // for AMRE... +#include // for FArr... +#include // for FabA... +#include // for Geom... +#include // for notI... +#include // for Para... +#include // for AMRE... +#include // for MFIter +#include // for Mult... #include +#include +#include // for map using namespace amrex; diff --git a/Source/Diagnostics/FlushFormats/FlushFormatAscent.H b/Source/Diagnostics/FlushFormats/FlushFormatAscent.H index de8bec0915d..b9258b1410a 100644 --- a/Source/Diagnostics/FlushFormats/FlushFormatAscent.H +++ b/Source/Diagnostics/FlushFormats/FlushFormatAscent.H @@ -4,11 +4,15 @@ #include "FlushFormat.H" #include "Diagnostics/ParticleDiag/ParticleDiag.H" +#include +#include #ifdef AMREX_USE_ASCENT # include # include #endif +#include + /** * \brief This class aims at dumping performing in-situ diagnostics with ASCENT. * In particular, function WriteToFile takes fields and particles as input arguments, diff --git a/Source/Diagnostics/FlushFormats/FlushFormatAscent.cpp b/Source/Diagnostics/FlushFormats/FlushFormatAscent.cpp index fc5561a0f7d..02de2f12782 100644 --- a/Source/Diagnostics/FlushFormats/FlushFormatAscent.cpp +++ b/Source/Diagnostics/FlushFormats/FlushFormatAscent.cpp @@ -1,7 +1,7 @@ #include "FlushFormatAscent.H" #include -#include +#include using namespace amrex; diff --git a/Source/Diagnostics/FlushFormats/FlushFormatCheckpoint.H b/Source/Diagnostics/FlushFormats/FlushFormatCheckpoint.H index aa2dccdfd95..d23cc386509 100644 --- a/Source/Diagnostics/FlushFormats/FlushFormatCheckpoint.H +++ b/Source/Diagnostics/FlushFormats/FlushFormatCheckpoint.H @@ -3,6 +3,11 @@ #include "FlushFormatPlotfile.H" +#include +#include + +#include + class FlushFormatCheckpoint final : public FlushFormatPlotfile { /** Flush fields and particles to plotfile */ diff --git a/Source/Diagnostics/FlushFormats/FlushFormatCheckpoint.cpp b/Source/Diagnostics/FlushFormats/FlushFormatCheckpoint.cpp index 400caab3e42..7eb9f9ef79f 100644 --- a/Source/Diagnostics/FlushFormats/FlushFormatCheckpoint.cpp +++ b/Source/Diagnostics/FlushFormats/FlushFormatCheckpoint.cpp @@ -2,9 +2,18 @@ #include "WarpX.H" #include "Utils/WarpXProfilerWrapper.H" +#include "BoundaryConditions/PML.H" +#include "Diagnostics/ParticleDiag/ParticleDiag.H" +#include "Particles/WarpXParticleContainer.H" -#include #include +#include +#include +#include +#include +#include +#include +#include using namespace amrex; diff --git a/Source/Diagnostics/FlushFormats/FlushFormatPlotfile.H b/Source/Diagnostics/FlushFormats/FlushFormatPlotfile.H index e8f87f88482..f26ab63d47a 100644 --- a/Source/Diagnostics/FlushFormats/FlushFormatPlotfile.H +++ b/Source/Diagnostics/FlushFormats/FlushFormatPlotfile.H @@ -4,6 +4,12 @@ #include "FlushFormat.H" #include "Diagnostics/ParticleDiag/ParticleDiag.H" +#include +#include + +#include +#include + /** * \brief This class aims at dumping diags data to disk using the AMReX Plotfile format. * In particular, function WriteToFile takes fields and particles as input arguments, diff --git a/Source/Diagnostics/FlushFormats/FlushFormatPlotfile.cpp b/Source/Diagnostics/FlushFormats/FlushFormatPlotfile.cpp index 239fe016548..e0bf0f3d95c 100644 --- a/Source/Diagnostics/FlushFormats/FlushFormatPlotfile.cpp +++ b/Source/Diagnostics/FlushFormats/FlushFormatPlotfile.cpp @@ -3,10 +3,46 @@ #include "WarpX.H" #include "Utils/Interpolate.H" #include "Particles/Filter/FilterFunctors.H" +#include "Diagnostics/ParticleDiag/ParticleDiag.H" +#include "Parser/WarpXParserWrapper.H" +#include "Particles/WarpXParticleContainer.H" +#include "Utils/WarpXProfilerWrapper.H" #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#ifdef AMREX_USE_OMP +# include +#endif + +#include +#include +#include +#include +#include +#include +#include +#include using namespace amrex; From 02ddc414a54fdbe321d899d2d393f01c7326aaa6 Mon Sep 17 00:00:00 2001 From: Luca Fedeli Date: Tue, 11 May 2021 13:07:29 +0200 Subject: [PATCH 07/58] progress with iwyu --- .../FlushFormats/FlushFormatOpenPMD.H | 5 ++++- .../FlushFormats/FlushFormatOpenPMD.cpp | 7 +++++++ Source/Diagnostics/ParticleDiag/ParticleDiag.H | 6 +++++- .../Diagnostics/ParticleDiag/ParticleDiag.cpp | 8 +++++++- Source/Diagnostics/ReducedDiags/BeamRelevant.H | 3 ++- .../Diagnostics/ReducedDiags/BeamRelevant.cpp | 16 ++++++++++++++-- Source/Diagnostics/ReducedDiags/FieldEnergy.H | 3 ++- Source/Diagnostics/ReducedDiags/FieldEnergy.cpp | 17 ++++++++++++----- 8 files changed, 53 insertions(+), 12 deletions(-) diff --git a/Source/Diagnostics/FlushFormats/FlushFormatOpenPMD.H b/Source/Diagnostics/FlushFormats/FlushFormatOpenPMD.H index e88dfc331e3..c83ad731570 100644 --- a/Source/Diagnostics/FlushFormats/FlushFormatOpenPMD.H +++ b/Source/Diagnostics/FlushFormats/FlushFormatOpenPMD.H @@ -4,8 +4,11 @@ #include "FlushFormat.H" #include "Diagnostics/WarpXOpenPMD.H" -#include +#include +#include +#include +#include /** * \brief This class aims at dumping diags data to disk using the openPMD standard. diff --git a/Source/Diagnostics/FlushFormats/FlushFormatOpenPMD.cpp b/Source/Diagnostics/FlushFormats/FlushFormatOpenPMD.cpp index eb3846e69c4..8e520e315da 100644 --- a/Source/Diagnostics/FlushFormats/FlushFormatOpenPMD.cpp +++ b/Source/Diagnostics/FlushFormats/FlushFormatOpenPMD.cpp @@ -1,5 +1,12 @@ #include "FlushFormatOpenPMD.H" + #include "WarpX.H" +#include "Utils/WarpXProfilerWrapper.H" + +#include +#include +#include +#include #include diff --git a/Source/Diagnostics/ParticleDiag/ParticleDiag.H b/Source/Diagnostics/ParticleDiag/ParticleDiag.H index 119a341b6a5..e26b49df0d9 100644 --- a/Source/Diagnostics/ParticleDiag/ParticleDiag.H +++ b/Source/Diagnostics/ParticleDiag/ParticleDiag.H @@ -2,9 +2,13 @@ #define WARPX_PARTICLEDIAG_H_ #include "Parser/WarpXParserWrapper.H" -#include "Utils/WarpXUtil.H" #include "Particles/WarpXParticleContainer.H" +#include +#include +#include + +#include #include class ParticleDiag diff --git a/Source/Diagnostics/ParticleDiag/ParticleDiag.cpp b/Source/Diagnostics/ParticleDiag/ParticleDiag.cpp index be6812cafdd..68710ff6c6e 100644 --- a/Source/Diagnostics/ParticleDiag/ParticleDiag.cpp +++ b/Source/Diagnostics/ParticleDiag/ParticleDiag.cpp @@ -1,9 +1,15 @@ -#include "WarpX.H" #include "ParticleDiag.H" + +#include "WarpX.H" #include "Utils/WarpXUtil.H" +#include "Diagnostics/ParticleDiag/ParticleDiag.H" +#include "Particles/WarpXParticleContainer.H" #include +#include +#include + using namespace amrex; ParticleDiag::ParticleDiag(std::string diag_name, std::string name, WarpXParticleContainer* pc) diff --git a/Source/Diagnostics/ReducedDiags/BeamRelevant.H b/Source/Diagnostics/ReducedDiags/BeamRelevant.H index bf775f25006..a85123ed187 100644 --- a/Source/Diagnostics/ReducedDiags/BeamRelevant.H +++ b/Source/Diagnostics/ReducedDiags/BeamRelevant.H @@ -9,7 +9,8 @@ #define WARPX_DIAGNOSTICS_REDUCEDDIAGS_BEAMRELEVANT_H_ #include "ReducedDiags.H" -#include + +#include /** * This class contains diagnostics that are relevant to beam. diff --git a/Source/Diagnostics/ReducedDiags/BeamRelevant.cpp b/Source/Diagnostics/ReducedDiags/BeamRelevant.cpp index b57e09c794e..3e01ab9c2ac 100644 --- a/Source/Diagnostics/ReducedDiags/BeamRelevant.cpp +++ b/Source/Diagnostics/ReducedDiags/BeamRelevant.cpp @@ -5,16 +5,28 @@ * License: BSD-3-Clause-LBNL */ #include "BeamRelevant.H" + #include "WarpX.H" #include "Utils/WarpXConst.H" +#include "Diagnostics/ReducedDiags/ReducedDiags.H" +#include "Particles/MultiParticleContainer.H" +#include "Particles/WarpXParticleContainer.H" +#include "Utils/IntervalsParser.H" #include #include +#include +#include +#include +#include +#include -#include #include #include - +#include +#include +#include +#include using namespace amrex; diff --git a/Source/Diagnostics/ReducedDiags/FieldEnergy.H b/Source/Diagnostics/ReducedDiags/FieldEnergy.H index 71398290c02..f13439d370a 100644 --- a/Source/Diagnostics/ReducedDiags/FieldEnergy.H +++ b/Source/Diagnostics/ReducedDiags/FieldEnergy.H @@ -9,7 +9,8 @@ #define WARPX_DIAGNOSTICS_REDUCEDDIAGS_FIELDENERGY_H_ #include "ReducedDiags.H" -#include + +#include /** * This class mainly contains a function that diff --git a/Source/Diagnostics/ReducedDiags/FieldEnergy.cpp b/Source/Diagnostics/ReducedDiags/FieldEnergy.cpp index 6ad4ee1b3e1..35e49c50550 100644 --- a/Source/Diagnostics/ReducedDiags/FieldEnergy.cpp +++ b/Source/Diagnostics/ReducedDiags/FieldEnergy.cpp @@ -6,15 +6,22 @@ */ #include "FieldEnergy.H" + #include "WarpX.H" #include "Utils/WarpXConst.H" +#include "Diagnostics/ReducedDiags/ReducedDiags.H" +#include "Utils/IntervalsParser.H" #include -#include - -#include -#include - +#include +#include +#include +#include +#include + +#include +#include +#include using namespace amrex; From 1f2f7937238cc50d85e5ad339266ea906dfd79e1 Mon Sep 17 00:00:00 2001 From: Luca Fedeli Date: Tue, 11 May 2021 14:24:22 +0200 Subject: [PATCH 08/58] fixed bug --- Source/WarpX.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/Source/WarpX.cpp b/Source/WarpX.cpp index d02deccc2d7..59fc7b4184b 100644 --- a/Source/WarpX.cpp +++ b/Source/WarpX.cpp @@ -30,7 +30,6 @@ #include #include #include -#include #include #include #include From 0758826a95ec9ec96ae3670f7e7b47d15ac009d2 Mon Sep 17 00:00:00 2001 From: Luca Fedeli Date: Tue, 11 May 2021 15:13:48 +0200 Subject: [PATCH 09/58] progress with iwyu --- .../Diagnostics/ReducedDiags/FieldMaximum.H | 2 + .../Diagnostics/ReducedDiags/FieldMaximum.cpp | 27 +++++++++++++ .../ReducedDiags/LoadBalanceCosts.H | 3 ++ .../ReducedDiags/LoadBalanceCosts.cpp | 24 +++++++++++- .../ReducedDiags/LoadBalanceEfficiency.H | 2 + .../ReducedDiags/LoadBalanceEfficiency.cpp | 12 +++++- .../ReducedDiags/MultiReducedDiags.H | 1 + .../ReducedDiags/MultiReducedDiags.cpp | 7 +++- .../Diagnostics/ReducedDiags/ParticleEnergy.H | 3 +- .../ReducedDiags/ParticleEnergy.cpp | 16 +++++++- .../ReducedDiags/ParticleExtrema.H | 3 +- .../ReducedDiags/ParticleExtrema.cpp | 39 +++++++++++++++++-- .../ReducedDiags/ParticleHistogram.H | 5 +++ .../ReducedDiags/ParticleHistogram.cpp | 23 +++++++++-- .../Diagnostics/ReducedDiags/ParticleNumber.H | 2 + .../ReducedDiags/ParticleNumber.cpp | 17 ++++++++ .../Diagnostics/ReducedDiags/ReducedDiags.H | 1 - .../Diagnostics/ReducedDiags/ReducedDiags.cpp | 4 ++ Source/Diagnostics/ReducedDiags/RhoMaximum.H | 5 +++ .../Diagnostics/ReducedDiags/RhoMaximum.cpp | 19 ++++++++- Source/EmbeddedBoundary/WarpXInitEB.cpp | 16 ++++++++ Source/Evolve/WarpXComputeDt.cpp | 12 ++++++ Source/Evolve/WarpXEvolve.cpp | 31 +++++++++++++-- 23 files changed, 253 insertions(+), 21 deletions(-) diff --git a/Source/Diagnostics/ReducedDiags/FieldMaximum.H b/Source/Diagnostics/ReducedDiags/FieldMaximum.H index 31953e2801a..e2faf76877e 100644 --- a/Source/Diagnostics/ReducedDiags/FieldMaximum.H +++ b/Source/Diagnostics/ReducedDiags/FieldMaximum.H @@ -10,6 +10,8 @@ #include "ReducedDiags.H" +#include + /** * This class mainly contains a function that computes the maximum value of each component * of the EM field and of the vector norm of the E and B fields. diff --git a/Source/Diagnostics/ReducedDiags/FieldMaximum.cpp b/Source/Diagnostics/ReducedDiags/FieldMaximum.cpp index 49d968a5341..79c1c0781d3 100644 --- a/Source/Diagnostics/ReducedDiags/FieldMaximum.cpp +++ b/Source/Diagnostics/ReducedDiags/FieldMaximum.cpp @@ -6,8 +6,35 @@ */ #include "FieldMaximum.H" + #include "WarpX.H" #include "Utils/CoarsenIO.H" +#include "Utils/IntervalsParser.H" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include using namespace amrex; diff --git a/Source/Diagnostics/ReducedDiags/LoadBalanceCosts.H b/Source/Diagnostics/ReducedDiags/LoadBalanceCosts.H index 6209c12bee1..db40aca26f5 100644 --- a/Source/Diagnostics/ReducedDiags/LoadBalanceCosts.H +++ b/Source/Diagnostics/ReducedDiags/LoadBalanceCosts.H @@ -12,6 +12,9 @@ #include +#include +#include + /** * This class mainly contains a function that update the * costs (used in load balance) for writing to output. diff --git a/Source/Diagnostics/ReducedDiags/LoadBalanceCosts.cpp b/Source/Diagnostics/ReducedDiags/LoadBalanceCosts.cpp index 07c22931ca2..1b2e014e6de 100644 --- a/Source/Diagnostics/ReducedDiags/LoadBalanceCosts.cpp +++ b/Source/Diagnostics/ReducedDiags/LoadBalanceCosts.cpp @@ -4,12 +4,32 @@ * * License: BSD-3-Clause-LBNL */ +#include "LoadBalanceCosts.H" #include "WarpX.H" -#include "LoadBalanceCosts.H" -#include "Utils/WarpXUtil.H" +#include "Diagnostics/ReducedDiags/ReducedDiags.H" +#include "Utils/IntervalsParser.H" +#include "Utils/WarpXAlgorithmSelection.H" + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#ifdef AMREX_USE_MPI +# include +#endif #include +#include +#include +#include +#include using namespace amrex; diff --git a/Source/Diagnostics/ReducedDiags/LoadBalanceEfficiency.H b/Source/Diagnostics/ReducedDiags/LoadBalanceEfficiency.H index 33f7892f040..543dd1e0982 100644 --- a/Source/Diagnostics/ReducedDiags/LoadBalanceEfficiency.H +++ b/Source/Diagnostics/ReducedDiags/LoadBalanceEfficiency.H @@ -10,6 +10,8 @@ #include "ReducedDiags.H" +#include + /** * This class mainly contains a function that gets the * current load balance efficiency for writing to output. diff --git a/Source/Diagnostics/ReducedDiags/LoadBalanceEfficiency.cpp b/Source/Diagnostics/ReducedDiags/LoadBalanceEfficiency.cpp index 44380a7db50..bbe114b63a1 100644 --- a/Source/Diagnostics/ReducedDiags/LoadBalanceEfficiency.cpp +++ b/Source/Diagnostics/ReducedDiags/LoadBalanceEfficiency.cpp @@ -4,9 +4,19 @@ * * License: BSD-3-Clause-LBNL */ +#include "LoadBalanceEfficiency.H" #include "WarpX.H" -#include "LoadBalanceEfficiency.H" +#include "Diagnostics/ReducedDiags/ReducedDiags.H" +#include "Utils/IntervalsParser.H" + +#include +#include +#include + +#include +#include +#include using namespace amrex; diff --git a/Source/Diagnostics/ReducedDiags/MultiReducedDiags.H b/Source/Diagnostics/ReducedDiags/MultiReducedDiags.H index 79f487d81c1..3c8d9a6282b 100644 --- a/Source/Diagnostics/ReducedDiags/MultiReducedDiags.H +++ b/Source/Diagnostics/ReducedDiags/MultiReducedDiags.H @@ -9,6 +9,7 @@ #define WARPX_DIAGNOSTICS_REDUCEDDIAGS_MULTIREDUCEDDIAGS_H_ #include "ReducedDiags.H" + #include #include #include diff --git a/Source/Diagnostics/ReducedDiags/MultiReducedDiags.cpp b/Source/Diagnostics/ReducedDiags/MultiReducedDiags.cpp index d1e0be528fc..e9773f711b2 100644 --- a/Source/Diagnostics/ReducedDiags/MultiReducedDiags.cpp +++ b/Source/Diagnostics/ReducedDiags/MultiReducedDiags.cpp @@ -4,6 +4,7 @@ * * License: BSD-3-Clause-LBNL */ +#include "MultiReducedDiags.H" #include "LoadBalanceCosts.H" #include "LoadBalanceEfficiency.H" @@ -15,12 +16,14 @@ #include "FieldMaximum.H" #include "RhoMaximum.H" #include "ParticleNumber.H" -#include "MultiReducedDiags.H" +#include "Utils/IntervalsParser.H" #include #include +#include +#include -#include +#include using namespace amrex; diff --git a/Source/Diagnostics/ReducedDiags/ParticleEnergy.H b/Source/Diagnostics/ReducedDiags/ParticleEnergy.H index fbbf197a574..08f3c0aee7e 100644 --- a/Source/Diagnostics/ReducedDiags/ParticleEnergy.H +++ b/Source/Diagnostics/ReducedDiags/ParticleEnergy.H @@ -9,7 +9,8 @@ #define WARPX_DIAGNOSTICS_REDUCEDDIAGS_PARTICLEENERGY_H_ #include "ReducedDiags.H" -#include + +#include /** * This class mainly contains a function that diff --git a/Source/Diagnostics/ReducedDiags/ParticleEnergy.cpp b/Source/Diagnostics/ReducedDiags/ParticleEnergy.cpp index 72395cc8468..f83fbdefefd 100644 --- a/Source/Diagnostics/ReducedDiags/ParticleEnergy.cpp +++ b/Source/Diagnostics/ReducedDiags/ParticleEnergy.cpp @@ -6,16 +6,28 @@ */ #include "ParticleEnergy.H" + #include "WarpX.H" #include "Utils/WarpXConst.H" +#include "Diagnostics/ReducedDiags/ReducedDiags.H" +#include "Particles/MultiParticleContainer.H" +#include "Particles/SpeciesPhysicalProperties.H" +#include "Particles/WarpXParticleContainer.H" +#include "Utils/IntervalsParser.H" #include #include +#include +#include +#include +#include -#include #include #include - +#include +#include +#include +#include using namespace amrex; diff --git a/Source/Diagnostics/ReducedDiags/ParticleExtrema.H b/Source/Diagnostics/ReducedDiags/ParticleExtrema.H index 6e61cdde960..c85e43b1c2c 100644 --- a/Source/Diagnostics/ReducedDiags/ParticleExtrema.H +++ b/Source/Diagnostics/ReducedDiags/ParticleExtrema.H @@ -9,7 +9,8 @@ #define WARPX_DIAGNOSTICS_REDUCEDDIAGS_PARTICLEEXTREMA_H_ #include "ReducedDiags.H" -#include + +#include /** * This class mainly contains a function that diff --git a/Source/Diagnostics/ReducedDiags/ParticleExtrema.cpp b/Source/Diagnostics/ReducedDiags/ParticleExtrema.cpp index 0e325306b24..22245864ccc 100644 --- a/Source/Diagnostics/ReducedDiags/ParticleExtrema.cpp +++ b/Source/Diagnostics/ReducedDiags/ParticleExtrema.cpp @@ -6,19 +6,50 @@ */ #include "ParticleExtrema.H" + #include "WarpX.H" #include "Utils/WarpXConst.H" +#include "Diagnostics/ReducedDiags/ReducedDiags.H" +#include "Particles/Gather/FieldGather.H" +#include "Particles/Gather/GetExternalFields.H" +#include "Particles/MultiParticleContainer.H" +#include "Particles/Pusher/GetAndSetPosition.H" +#include "Particles/SpeciesPhysicalProperties.H" +#include "Particles/WarpXParticleContainer.H" +#include "Utils/IntervalsParser.H" #if (defined WARPX_QED) -#include "Particles/ElementaryProcess/QEDInternals/QedChiFunctions.H" +# include "Particles/ElementaryProcess/QEDInternals/QedChiFunctions.H" #endif #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include -#include #include -#include - +#include +#include +#include +#include +#include using namespace amrex; diff --git a/Source/Diagnostics/ReducedDiags/ParticleHistogram.H b/Source/Diagnostics/ReducedDiags/ParticleHistogram.H index b22632b15c6..2856fe3ad6a 100644 --- a/Source/Diagnostics/ReducedDiags/ParticleHistogram.H +++ b/Source/Diagnostics/ReducedDiags/ParticleHistogram.H @@ -11,6 +11,11 @@ #include "ReducedDiags.H" #include "Parser/WarpXParserWrapper.H" +#include + +#include +#include + /** * Reduced diagnostics that computes a histogram over particles * for a quantity specified by the user in the input file using the parser. diff --git a/Source/Diagnostics/ReducedDiags/ParticleHistogram.cpp b/Source/Diagnostics/ReducedDiags/ParticleHistogram.cpp index b6788b964b6..e8a8ed0331e 100644 --- a/Source/Diagnostics/ReducedDiags/ParticleHistogram.cpp +++ b/Source/Diagnostics/ReducedDiags/ParticleHistogram.cpp @@ -6,20 +6,37 @@ */ #include "ParticleHistogram.H" + #include "WarpX.H" #include "Particles/Pusher/GetAndSetPosition.H" #include "Utils/WarpXUtil.H" -#include "Particles/Filter/FilterFunctors.H" +#include "Diagnostics/ReducedDiags/ReducedDiags.H" +#include "Particles/MultiParticleContainer.H" +#include "Particles/WarpXParticleContainer.H" +#include "Utils/IntervalsParser.H" +#include "Utils/WarpXConst.H" #include #include -#include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include - +#include +#include +#include using namespace amrex; diff --git a/Source/Diagnostics/ReducedDiags/ParticleNumber.H b/Source/Diagnostics/ReducedDiags/ParticleNumber.H index cc653a875db..1a5acc32133 100644 --- a/Source/Diagnostics/ReducedDiags/ParticleNumber.H +++ b/Source/Diagnostics/ReducedDiags/ParticleNumber.H @@ -10,6 +10,8 @@ #include "ReducedDiags.H" +#include + /** * This class mainly contains a function that computes the total number of macroparticles and of * physical particles (i.e. the sum of the weights) of each species. diff --git a/Source/Diagnostics/ReducedDiags/ParticleNumber.cpp b/Source/Diagnostics/ReducedDiags/ParticleNumber.cpp index 111ab07c0bb..da3fbb83436 100644 --- a/Source/Diagnostics/ReducedDiags/ParticleNumber.cpp +++ b/Source/Diagnostics/ReducedDiags/ParticleNumber.cpp @@ -6,7 +6,24 @@ */ #include "ParticleNumber.H" + #include "WarpX.H" +#include "Diagnostics/ReducedDiags/ReducedDiags.H" +#include "Particles/MultiParticleContainer.H" +#include "Particles/WarpXParticleContainer.H" +#include "Utils/IntervalsParser.H" + +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include using namespace amrex::literals; diff --git a/Source/Diagnostics/ReducedDiags/ReducedDiags.H b/Source/Diagnostics/ReducedDiags/ReducedDiags.H index b7c97f327d6..aa80d3098bb 100644 --- a/Source/Diagnostics/ReducedDiags/ReducedDiags.H +++ b/Source/Diagnostics/ReducedDiags/ReducedDiags.H @@ -14,7 +14,6 @@ #include #include -#include /** * Base class for reduced diagnostics. Each type of reduced diagnostics is diff --git a/Source/Diagnostics/ReducedDiags/ReducedDiags.cpp b/Source/Diagnostics/ReducedDiags/ReducedDiags.cpp index a667d1a6b8a..82082741538 100644 --- a/Source/Diagnostics/ReducedDiags/ReducedDiags.cpp +++ b/Source/Diagnostics/ReducedDiags/ReducedDiags.cpp @@ -6,11 +6,15 @@ */ #include "ReducedDiags.H" + #include "WarpX.H" #include #include +#include +#include +#include #include using namespace amrex; diff --git a/Source/Diagnostics/ReducedDiags/RhoMaximum.H b/Source/Diagnostics/ReducedDiags/RhoMaximum.H index 0638fae16f3..29a5537564c 100644 --- a/Source/Diagnostics/ReducedDiags/RhoMaximum.H +++ b/Source/Diagnostics/ReducedDiags/RhoMaximum.H @@ -11,6 +11,11 @@ #include "ReducedDiags.H" #include "Diagnostics/ComputeDiagFunctors/ComputeDiagFunctor.H" +#include + +#include +#include + /** * This class mainly contains a function that computes the extrema of the total charge density * and of the charge density of each charged species. diff --git a/Source/Diagnostics/ReducedDiags/RhoMaximum.cpp b/Source/Diagnostics/ReducedDiags/RhoMaximum.cpp index bd284038331..a40440bfb25 100644 --- a/Source/Diagnostics/ReducedDiags/RhoMaximum.cpp +++ b/Source/Diagnostics/ReducedDiags/RhoMaximum.cpp @@ -6,8 +6,25 @@ */ #include "RhoMaximum.H" -#include "Diagnostics/ComputeDiagFunctors/RhoFunctor.H" + #include "WarpX.H" +#include "Diagnostics/ComputeDiagFunctors/RhoFunctor.H" +#include "Diagnostics/ReducedDiags/ReducedDiags.H" +#include "Particles/MultiParticleContainer.H" +#include "Particles/WarpXParticleContainer.H" +#include "Utils/IntervalsParser.H" + +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include using namespace amrex::literals; diff --git a/Source/EmbeddedBoundary/WarpXInitEB.cpp b/Source/EmbeddedBoundary/WarpXInitEB.cpp index 8214eec9b16..a87ec53aedc 100644 --- a/Source/EmbeddedBoundary/WarpXInitEB.cpp +++ b/Source/EmbeddedBoundary/WarpXInitEB.cpp @@ -1,11 +1,27 @@ #include "WarpX.H" #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #ifdef AMREX_USE_EB # include # include #endif +#include +#include +#include +#include + void WarpX::InitEB () diff --git a/Source/Evolve/WarpXComputeDt.cpp b/Source/Evolve/WarpXComputeDt.cpp index 6237f85c4c4..5510fe074d1 100644 --- a/Source/Evolve/WarpXComputeDt.cpp +++ b/Source/Evolve/WarpXComputeDt.cpp @@ -5,7 +5,9 @@ * License: BSD-3-Clause-LBNL */ #include "WarpX.H" + #include "Utils/WarpXAlgorithmSelection.H" +#include "Utils/WarpXConst.H" #ifdef WARPX_DIM_RZ # include "FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CylindricalYeeAlgorithm.H" #else @@ -14,6 +16,16 @@ # include "FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CartesianNodalAlgorithm.H" #endif +#include +#include +#include +#include +#include +#include + +#include +#include + /** * Determine the timestep of the simulation. */ void diff --git a/Source/Evolve/WarpXEvolve.cpp b/Source/Evolve/WarpXEvolve.cpp index 2f04310a513..d7ad37b768d 100644 --- a/Source/Evolve/WarpXEvolve.cpp +++ b/Source/Evolve/WarpXEvolve.cpp @@ -9,17 +9,42 @@ * License: BSD-3-Clause-LBNL */ #include "WarpX.H" -#include "FieldSolver/WarpX_QED_K.H" + #include "Utils/WarpXConst.H" #include "Utils/WarpXUtil.H" #include "Utils/WarpXAlgorithmSelection.H" #include "Python/WarpX_py.H" +#include "Diagnostics/BackTransformedDiagnostic.H" +#include "Diagnostics/MultiDiagnostics.H" +#include "Diagnostics/ReducedDiags/MultiReducedDiags.H" +#include "Evolve/WarpXDtType.H" +#include "Parallelization/GuardCellManager.H" +#include "Particles/MultiParticleContainer.H" +#include "Utils/IntervalsParser.H" +#include "Utils/WarpXProfilerWrapper.H" #ifdef WARPX_USE_PSATD # include "FieldSolver/SpectralSolver/SpectralSolver.H" #endif -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include using namespace amrex; From 2cd1fa07b89a8de9f94bb94f9f1e9eb6d45748bf Mon Sep 17 00:00:00 2001 From: Luca Fedeli Date: Wed, 12 May 2021 03:05:23 +0200 Subject: [PATCH 10/58] progress with IWYU --- Source/Diagnostics/SliceDiagnostic.cpp | 1 - Source/FieldSolver/ElectrostaticSolver.cpp | 31 ++++++++++++++--- .../ApplySilverMuellerBoundary.cpp | 19 +++++++++-- .../FiniteDifferenceSolver/ComputeDivE.cpp | 4 +-- .../FiniteDifferenceSolver/EvolveB.cpp | 24 +++++++++++-- .../FiniteDifferenceSolver/EvolveBPML.cpp | 17 ++++++++-- .../FiniteDifferenceSolver/EvolveE.cpp | 22 ++++++++++-- .../FiniteDifferenceSolver/EvolveEPML.cpp | 17 ++++++++-- .../FiniteDifferenceSolver/EvolveF.cpp | 3 +- .../FiniteDifferenceSolver/EvolveFPML.cpp | 17 ++++++++-- .../FiniteDifferenceSolver/EvolveG.cpp | 2 -- .../FiniteDifferenceSolver.H | 5 +++ .../FiniteDifferenceSolver.cpp | 3 +- .../MacroscopicEvolveE.cpp | 23 ++++++++++--- .../MacroscopicProperties.H | 9 +++-- .../MacroscopicProperties.cpp | 12 +++++++ .../SpectralSolver/SpectralFieldData.H | 10 +++++- .../SpectralSolver/SpectralFieldData.cpp | 19 +++++++++-- Source/FieldSolver/WarpXPushFieldsEM.cpp | 34 +++++++++++++++---- .../FieldSolver/WarpX_QED_Field_Pushers.cpp | 34 ++++++++++++++----- 20 files changed, 256 insertions(+), 50 deletions(-) diff --git a/Source/Diagnostics/SliceDiagnostic.cpp b/Source/Diagnostics/SliceDiagnostic.cpp index 960059c4068..52644d351c4 100644 --- a/Source/Diagnostics/SliceDiagnostic.cpp +++ b/Source/Diagnostics/SliceDiagnostic.cpp @@ -24,7 +24,6 @@ #include #include #include -#include #include #include #include diff --git a/Source/FieldSolver/ElectrostaticSolver.cpp b/Source/FieldSolver/ElectrostaticSolver.cpp index ab2fc2b25eb..cbc7b396267 100644 --- a/Source/FieldSolver/ElectrostaticSolver.cpp +++ b/Source/FieldSolver/ElectrostaticSolver.cpp @@ -4,19 +4,40 @@ * * License: BSD-3-Clause-LBNL */ +#include +#include "Parallelization/GuardCellManager.H" +#include "Particles/MultiParticleContainer.H" +#include "Particles/WarpXParticleContainer.H" +#include "Utils/WarpXAlgorithmSelection.H" +#include "Utils/WarpXConst.H" -#include #include #ifdef WARPX_DIM_RZ -#include + #include #else -#include + #include #endif #include - -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include +#include using namespace amrex; diff --git a/Source/FieldSolver/FiniteDifferenceSolver/ApplySilverMuellerBoundary.cpp b/Source/FieldSolver/FiniteDifferenceSolver/ApplySilverMuellerBoundary.cpp index 1a4aa10b2f5..c9ea9956191 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/ApplySilverMuellerBoundary.cpp +++ b/Source/FieldSolver/FiniteDifferenceSolver/ApplySilverMuellerBoundary.cpp @@ -4,15 +4,30 @@ * * License: BSD-3-Clause-LBNL */ +#include "FiniteDifferenceSolver.H" #include "Utils/WarpXAlgorithmSelection.H" -#include "FiniteDifferenceSolver.H" #include "Utils/WarpXConst.H" -#include #ifdef WARPX_DIM_RZ # include "FiniteDifferenceAlgorithms/CylindricalYeeAlgorithm.H" #endif +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include + using namespace amrex; /** diff --git a/Source/FieldSolver/FiniteDifferenceSolver/ComputeDivE.cpp b/Source/FieldSolver/FiniteDifferenceSolver/ComputeDivE.cpp index 1d18657c7d6..947d5c1c8cc 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/ComputeDivE.cpp +++ b/Source/FieldSolver/FiniteDifferenceSolver/ComputeDivE.cpp @@ -4,9 +4,9 @@ * * License: BSD-3-Clause-LBNL */ +#include "FiniteDifferenceSolver.H" #include "Utils/WarpXAlgorithmSelection.H" -#include "FiniteDifferenceSolver.H" #ifdef WARPX_DIM_RZ # include "FiniteDifferenceAlgorithms/CylindricalYeeAlgorithm.H" #else @@ -14,9 +14,7 @@ # include "FiniteDifferenceAlgorithms/CartesianCKCAlgorithm.H" # include "FiniteDifferenceAlgorithms/CartesianNodalAlgorithm.H" #endif -#include "Utils/WarpXConst.H" -#include #include #include #include diff --git a/Source/FieldSolver/FiniteDifferenceSolver/EvolveB.cpp b/Source/FieldSolver/FiniteDifferenceSolver/EvolveB.cpp index 3d2dc42d85b..299e928f7b7 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/EvolveB.cpp +++ b/Source/FieldSolver/FiniteDifferenceSolver/EvolveB.cpp @@ -4,10 +4,11 @@ * * License: BSD-3-Clause-LBNL */ +#include "FiniteDifferenceSolver.H" #include "WarpX.H" #include "Utils/WarpXAlgorithmSelection.H" -#include "FiniteDifferenceSolver.H" +#include "Utils/WarpXConst.H" #ifdef WARPX_DIM_RZ # include "FiniteDifferenceAlgorithms/CylindricalYeeAlgorithm.H" #else @@ -15,7 +16,26 @@ # include "FiniteDifferenceAlgorithms/CartesianCKCAlgorithm.H" # include "FiniteDifferenceAlgorithms/CartesianNodalAlgorithm.H" #endif -#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include using namespace amrex; diff --git a/Source/FieldSolver/FiniteDifferenceSolver/EvolveBPML.cpp b/Source/FieldSolver/FiniteDifferenceSolver/EvolveBPML.cpp index 6eb7caacc0c..a7aabfe7b08 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/EvolveBPML.cpp +++ b/Source/FieldSolver/FiniteDifferenceSolver/EvolveBPML.cpp @@ -4,9 +4,9 @@ * * License: BSD-3-Clause-LBNL */ +#include "FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.H" #include "Utils/WarpXAlgorithmSelection.H" -#include "FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.H" #ifdef WARPX_DIM_RZ # include "FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CylindricalYeeAlgorithm.H" #else @@ -15,8 +15,21 @@ # include "FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CartesianNodalAlgorithm.H" #endif #include "BoundaryConditions/PMLComponent.H" -#include + #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include using namespace amrex; diff --git a/Source/FieldSolver/FiniteDifferenceSolver/EvolveE.cpp b/Source/FieldSolver/FiniteDifferenceSolver/EvolveE.cpp index 63fc8b38d00..be239705137 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/EvolveE.cpp +++ b/Source/FieldSolver/FiniteDifferenceSolver/EvolveE.cpp @@ -4,10 +4,10 @@ * * License: BSD-3-Clause-LBNL */ +#include "FiniteDifferenceSolver.H" #include "WarpX.H" #include "Utils/WarpXAlgorithmSelection.H" -#include "FiniteDifferenceSolver.H" #ifdef WARPX_DIM_RZ # include "FiniteDifferenceAlgorithms/CylindricalYeeAlgorithm.H" #else @@ -16,8 +16,26 @@ # include "FiniteDifferenceAlgorithms/CartesianNodalAlgorithm.H" #endif #include "Utils/WarpXConst.H" -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include using namespace amrex; diff --git a/Source/FieldSolver/FiniteDifferenceSolver/EvolveEPML.cpp b/Source/FieldSolver/FiniteDifferenceSolver/EvolveEPML.cpp index f93f6841404..0447fc9f9c5 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/EvolveEPML.cpp +++ b/Source/FieldSolver/FiniteDifferenceSolver/EvolveEPML.cpp @@ -4,9 +4,9 @@ * * License: BSD-3-Clause-LBNL */ +#include "FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.H" #include "Utils/WarpXAlgorithmSelection.H" -#include "FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.H" #ifdef WARPX_DIM_RZ # include "FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CylindricalYeeAlgorithm.H" #else @@ -18,8 +18,21 @@ #include "BoundaryConditions/PML_current.H" #include "BoundaryConditions/PMLComponent.H" #include "Utils/WarpXConst.H" -#include + #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include using namespace amrex; diff --git a/Source/FieldSolver/FiniteDifferenceSolver/EvolveF.cpp b/Source/FieldSolver/FiniteDifferenceSolver/EvolveF.cpp index be16dea7765..140ab4357f3 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/EvolveF.cpp +++ b/Source/FieldSolver/FiniteDifferenceSolver/EvolveF.cpp @@ -4,9 +4,9 @@ * * License: BSD-3-Clause-LBNL */ +#include "FiniteDifferenceSolver.H" #include "Utils/WarpXAlgorithmSelection.H" -#include "FiniteDifferenceSolver.H" #ifdef WARPX_DIM_RZ # include "FiniteDifferenceAlgorithms/CylindricalYeeAlgorithm.H" #else @@ -16,7 +16,6 @@ #endif #include "Utils/WarpXConst.H" -#include #include #include #include diff --git a/Source/FieldSolver/FiniteDifferenceSolver/EvolveFPML.cpp b/Source/FieldSolver/FiniteDifferenceSolver/EvolveFPML.cpp index 1a49316dda3..99ebd543401 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/EvolveFPML.cpp +++ b/Source/FieldSolver/FiniteDifferenceSolver/EvolveFPML.cpp @@ -4,9 +4,9 @@ * * License: BSD-3-Clause-LBNL */ +#include "FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.H" #include "Utils/WarpXAlgorithmSelection.H" -#include "FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.H" #ifdef WARPX_DIM_RZ # include "FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CylindricalYeeAlgorithm.H" #else @@ -15,8 +15,21 @@ # include "FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CartesianNodalAlgorithm.H" #endif #include "BoundaryConditions/PMLComponent.H" -#include + #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include using namespace amrex; diff --git a/Source/FieldSolver/FiniteDifferenceSolver/EvolveG.cpp b/Source/FieldSolver/FiniteDifferenceSolver/EvolveG.cpp index e3ba4528309..a1800bc655a 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/EvolveG.cpp +++ b/Source/FieldSolver/FiniteDifferenceSolver/EvolveG.cpp @@ -14,9 +14,7 @@ # include "FiniteDifferenceAlgorithms/CartesianCKCAlgorithm.H" # include "FiniteDifferenceAlgorithms/CartesianNodalAlgorithm.H" #endif -#include "Utils/WarpXConst.H" -#include #include #include #include diff --git a/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.H b/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.H index 1592cd56e26..d6f34afca59 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.H +++ b/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.H @@ -14,6 +14,11 @@ class FiniteDifferenceSolver; /*Forward declaration*/ #include "MacroscopicProperties/MacroscopicProperties.H" #include +#include +#include + +#include +#include /** * \brief Top-level class for the electromagnetic finite-difference solver diff --git a/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.cpp b/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.cpp index 90c39173121..db35c7f2076 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.cpp +++ b/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.cpp @@ -4,6 +4,7 @@ * * License: BSD-3-Clause-LBNL */ +#include "FiniteDifferenceSolver.H" #include "Utils/WarpXAlgorithmSelection.H" #ifdef WARPX_DIM_RZ @@ -13,12 +14,12 @@ # include "FiniteDifferenceAlgorithms/CartesianCKCAlgorithm.H" # include "FiniteDifferenceAlgorithms/CartesianNodalAlgorithm.H" #endif -#include "FiniteDifferenceSolver.H" #include #include #include #include + #include /* This function initializes the stencil coefficients for the chosen finite-difference algorithm */ diff --git a/Source/FieldSolver/FiniteDifferenceSolver/MacroscopicEvolveE.cpp b/Source/FieldSolver/FiniteDifferenceSolver/MacroscopicEvolveE.cpp index 448c9b57dc6..af9969999d0 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/MacroscopicEvolveE.cpp +++ b/Source/FieldSolver/FiniteDifferenceSolver/MacroscopicEvolveE.cpp @@ -1,5 +1,6 @@ -#include "Utils/WarpXAlgorithmSelection.H" #include "FiniteDifferenceSolver.H" + +#include "Utils/WarpXAlgorithmSelection.H" #ifdef WARPX_DIM_RZ // currently works only for 3D #else @@ -7,12 +8,26 @@ # include "FiniteDifferenceAlgorithms/CartesianCKCAlgorithm.H" # include "FiniteDifferenceAlgorithms/FieldAccessorFunctors.H" #endif -#include "Utils/WarpXConst.H" #include "Utils/CoarsenIO.H" -#include +#include "WarpX.H" +#include "MacroscopicProperties/MacroscopicProperties.H" + #include #include - +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include using namespace amrex; diff --git a/Source/FieldSolver/FiniteDifferenceSolver/MacroscopicProperties/MacroscopicProperties.H b/Source/FieldSolver/FiniteDifferenceSolver/MacroscopicProperties/MacroscopicProperties.H index 7dfa2ff6219..c0f0e94bd50 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/MacroscopicProperties/MacroscopicProperties.H +++ b/Source/FieldSolver/FiniteDifferenceSolver/MacroscopicProperties/MacroscopicProperties.H @@ -1,12 +1,17 @@ #ifndef WARPX_MACROSCOPICPROPERTIES_H_ #define WARPX_MACROSCOPICPROPERTIES_H_ - #include "Parser/WarpXParserWrapper.H" #include "Utils/WarpXConst.H" -#include +#include +#include +#include +#include +#include +#include +#include /** * \brief This class contains the macroscopic properties of the medium needed to diff --git a/Source/FieldSolver/FiniteDifferenceSolver/MacroscopicProperties/MacroscopicProperties.cpp b/Source/FieldSolver/FiniteDifferenceSolver/MacroscopicProperties/MacroscopicProperties.cpp index 170ee6d8070..d81c5ce0d90 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/MacroscopicProperties/MacroscopicProperties.cpp +++ b/Source/FieldSolver/FiniteDifferenceSolver/MacroscopicProperties/MacroscopicProperties.cpp @@ -1,8 +1,20 @@ #include "MacroscopicProperties.H" + #include "WarpX.H" #include "Utils/WarpXUtil.H" #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include diff --git a/Source/FieldSolver/SpectralSolver/SpectralFieldData.H b/Source/FieldSolver/SpectralSolver/SpectralFieldData.H index 4fc73485383..b38bae2634a 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralFieldData.H +++ b/Source/FieldSolver/SpectralSolver/SpectralFieldData.H @@ -13,8 +13,16 @@ #include "AnyFFT.H" #include +#include +#include +#include +#include +#include +#include +#include +#include -#include +#include // Declare type for spectral fields using SpectralField = amrex::FabArray< amrex::BaseFab >; diff --git a/Source/FieldSolver/SpectralSolver/SpectralFieldData.cpp b/Source/FieldSolver/SpectralSolver/SpectralFieldData.cpp index 9c4e786de1a..0807016fdf1 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralFieldData.cpp +++ b/Source/FieldSolver/SpectralSolver/SpectralFieldData.cpp @@ -6,9 +6,24 @@ * License: BSD-3-Clause-LBNL */ #include "SpectralFieldData.H" -#include "WarpX.H" -#include +#include "WarpX.H" +#include "Utils/WarpXAlgorithmSelection.H" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #if WARPX_USE_PSATD diff --git a/Source/FieldSolver/WarpXPushFieldsEM.cpp b/Source/FieldSolver/WarpXPushFieldsEM.cpp index 222a6ae6fcb..64f09f3e5b2 100644 --- a/Source/FieldSolver/WarpXPushFieldsEM.cpp +++ b/Source/FieldSolver/WarpXPushFieldsEM.cpp @@ -8,18 +8,38 @@ */ #include "WarpX.H" #include "Utils/WarpXConst.H" -#include "BoundaryConditions/WarpX_PML_kernels.H" -#include "BoundaryConditions/PML_current.H" -#include "WarpX_FDTD.H" - -#ifdef BL_USE_SENSEI_INSITU -# include +#include "BoundaryConditions/PML.H" +#include "Evolve/WarpXDtType.H" +#include "FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.H" +#include "Utils/WarpXAlgorithmSelection.H" +#include "Utils/WarpXProfilerWrapper.H" +#if defined(WARPX_DIM_RZ) || defined(WARPX_USE_PSATD) +# include "FieldSolver/SpectralSolver/SpectralFieldData.H" +# include "FieldSolver/SpectralSolver/SpectralSolver.H" #endif #include #include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#ifdef BL_USE_SENSEI_INSITU +# include +#endif +#include +#include +#include using namespace amrex; diff --git a/Source/FieldSolver/WarpX_QED_Field_Pushers.cpp b/Source/FieldSolver/WarpX_QED_Field_Pushers.cpp index 2020532c1be..8f667dfecdc 100644 --- a/Source/FieldSolver/WarpX_QED_Field_Pushers.cpp +++ b/Source/FieldSolver/WarpX_QED_Field_Pushers.cpp @@ -5,19 +5,37 @@ * License: BSD-3-Clause-LBNL */ #include "WarpX.H" -#include "Utils/WarpXConst.H" #include "WarpX_QED_K.H" -#include "BoundaryConditions/WarpX_PML_kernels.H" -#include "BoundaryConditions/PML_current.H" -#include "WarpX_FDTD.H" - +#include "Utils/WarpXAlgorithmSelection.H" +#include "Utils/WarpXProfilerWrapper.H" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #ifdef BL_USE_SENSEI_INSITU # include #endif -#include -#include - +#include +#include +#include +#include using namespace amrex; From 3f61f6f4371e7cfe5a634dd72555063a7f5d05ad Mon Sep 17 00:00:00 2001 From: Luca Fedeli Date: Wed, 12 May 2021 12:10:15 +0200 Subject: [PATCH 11/58] progress with IWYU --- Source/EmbeddedBoundary/WarpXInitEB.cpp | 1 - .../ComovingPsatdAlgorithm.H | 9 +++++ .../ComovingPsatdAlgorithm.cpp | 15 +++++++ .../SpectralAlgorithms/PMLPsatdAlgorithm.H | 6 +++ .../SpectralAlgorithms/PMLPsatdAlgorithm.cpp | 15 ++++++- .../SpectralAlgorithms/PsatdAlgorithm.H | 11 +++++ .../SpectralAlgorithms/PsatdAlgorithm.cpp | 13 ++++++ .../SpectralBaseAlgorithm.H | 2 - .../SpectralBaseAlgorithm.cpp | 18 ++++++++- .../SpectralSolver/SpectralFieldData.H | 1 + .../SpectralSolver/SpectralFieldData.cpp | 1 + .../SpectralSolver/SpectralKSpace.H | 8 +++- .../SpectralSolver/SpectralKSpace.cpp | 16 +++++++- .../SpectralSolver/SpectralSolver.H | 3 ++ .../FieldSolver/SpectralSolver/WrapFFTW.cpp | 6 +++ Source/Filter/BilinearFilter.H | 3 +- Source/Filter/BilinearFilter.cpp | 1 + Source/Filter/Filter.H | 4 ++ Source/Filter/Filter.cpp | 15 +++++-- Source/Filter/NCIGodfreyFilter.H | 1 + Source/Filter/NCIGodfreyFilter.cpp | 17 +++++--- Source/Initialization/InjectorDensity.H | 10 ++++- Source/Initialization/InjectorDensity.cpp | 9 ++++- Source/Initialization/InjectorMomentum.H | 7 +++- Source/Initialization/InjectorMomentum.cpp | 2 - Source/Initialization/PlasmaInjector.H | 9 ++--- Source/Initialization/PlasmaInjector.cpp | 15 +++++-- Source/Initialization/WarpXInitData.cpp | 40 ++++++++++++++++++- 28 files changed, 224 insertions(+), 34 deletions(-) diff --git a/Source/EmbeddedBoundary/WarpXInitEB.cpp b/Source/EmbeddedBoundary/WarpXInitEB.cpp index a87ec53aedc..9f06858d93d 100644 --- a/Source/EmbeddedBoundary/WarpXInitEB.cpp +++ b/Source/EmbeddedBoundary/WarpXInitEB.cpp @@ -8,7 +8,6 @@ #include #include #include -#include #include #include #include diff --git a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/ComovingPsatdAlgorithm.H b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/ComovingPsatdAlgorithm.H index 76526024f38..701ee6aafd4 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/ComovingPsatdAlgorithm.H +++ b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/ComovingPsatdAlgorithm.H @@ -2,6 +2,15 @@ #define WARPX_COMOVING_PSATD_ALGORITHM_H_ #include "SpectralBaseAlgorithm.H" +#include "FieldSolver/SpectralSolver/SpectralFieldData.H" +#include "FieldSolver/SpectralSolver/SpectralKSpace.H" + +#include +#include +#include + +#include +#include #if WARPX_USE_PSATD diff --git a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/ComovingPsatdAlgorithm.cpp b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/ComovingPsatdAlgorithm.cpp index eb4f13bb4ce..f5f43c771c4 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/ComovingPsatdAlgorithm.cpp +++ b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/ComovingPsatdAlgorithm.cpp @@ -1,5 +1,20 @@ #include "ComovingPsatdAlgorithm.H" + #include "Utils/WarpXConst.H" +#include "Utils/WarpX_Complex.H" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include #if WARPX_USE_PSATD diff --git a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PMLPsatdAlgorithm.H b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PMLPsatdAlgorithm.H index 1b97558264b..eb0ae5cd371 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PMLPsatdAlgorithm.H +++ b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PMLPsatdAlgorithm.H @@ -8,6 +8,12 @@ #define WARPX_PML_PSATD_ALGORITHM_H_ #include "SpectralBaseAlgorithm.H" +#include "FieldSolver/SpectralSolver/SpectralFieldData.H" + +#include + +#include +#include #if WARPX_USE_PSATD diff --git a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PMLPsatdAlgorithm.cpp b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PMLPsatdAlgorithm.cpp index 3c152635715..aac0a1313fd 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PMLPsatdAlgorithm.cpp +++ b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PMLPsatdAlgorithm.cpp @@ -5,10 +5,23 @@ * License: BSD-3-Clause-LBNL */ #include "PMLPsatdAlgorithm.H" + +#include "FieldSolver/SpectralSolver/SpectralKSpace.H" +#include "Utils/WarpX_Complex.H" #include "Utils/WarpXConst.H" -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #if WARPX_USE_PSATD diff --git a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithm.H b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithm.H index 973265cdfb4..2b6f99bd4f7 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithm.H +++ b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithm.H @@ -8,6 +8,17 @@ #define WARPX_PSATD_ALGORITHM_H_ #include "SpectralBaseAlgorithm.H" +#include "FieldSolver/SpectralSolver/SpectralFieldData.H" +#include "FieldSolver/SpectralSolver/SpectralKSpace.H" + +#include +#include +#include +#include +#include + +#include +#include #if WARPX_USE_PSATD /* \brief Class that updates the field in spectral space diff --git a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithm.cpp b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithm.cpp index 01a2cfe946d..83e8aaec761 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithm.cpp +++ b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithm.cpp @@ -5,7 +5,20 @@ * License: BSD-3-Clause-LBNL */ #include "PsatdAlgorithm.H" + #include "Utils/WarpXConst.H" +#include "Utils/WarpX_Complex.H" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include diff --git a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/SpectralBaseAlgorithm.H b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/SpectralBaseAlgorithm.H index 59804604256..107ca688124 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/SpectralBaseAlgorithm.H +++ b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/SpectralBaseAlgorithm.H @@ -10,8 +10,6 @@ #include "FieldSolver/SpectralSolver/SpectralKSpace.H" #include "FieldSolver/SpectralSolver/SpectralFieldData.H" -#include - #if WARPX_USE_PSATD /* \brief Class that updates the field in spectral space diff --git a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/SpectralBaseAlgorithm.cpp b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/SpectralBaseAlgorithm.cpp index 46fe8390008..91abad70de2 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/SpectralBaseAlgorithm.cpp +++ b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/SpectralBaseAlgorithm.cpp @@ -5,7 +5,23 @@ * License: BSD-3-Clause-LBNL */ #include "SpectralBaseAlgorithm.H" -#include +#include "FieldSolver/SpectralSolver/SpectralFieldData.H" + +#include "Utils/WarpX_Complex.H" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include using namespace amrex; diff --git a/Source/FieldSolver/SpectralSolver/SpectralFieldData.H b/Source/FieldSolver/SpectralSolver/SpectralFieldData.H index b38bae2634a..875dfddab3b 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralFieldData.H +++ b/Source/FieldSolver/SpectralSolver/SpectralFieldData.H @@ -21,6 +21,7 @@ #include #include #include +#include #include diff --git a/Source/FieldSolver/SpectralSolver/SpectralFieldData.cpp b/Source/FieldSolver/SpectralSolver/SpectralFieldData.cpp index 0807016fdf1..77dc118bc39 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralFieldData.cpp +++ b/Source/FieldSolver/SpectralSolver/SpectralFieldData.cpp @@ -24,6 +24,7 @@ #include #include #include +#include #if WARPX_USE_PSATD diff --git a/Source/FieldSolver/SpectralSolver/SpectralKSpace.H b/Source/FieldSolver/SpectralSolver/SpectralKSpace.H index b53fc7c4db7..10302ce7b0d 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralKSpace.H +++ b/Source/FieldSolver/SpectralSolver/SpectralKSpace.H @@ -12,7 +12,13 @@ #include #include - +#include +#include +#include +#include +#include +#include +#include // `KVectorComponent` and `SpectralShiftFactor` hold one 1D array // ("DeviceVector") for each box ("LayoutData"). The arrays are diff --git a/Source/FieldSolver/SpectralSolver/SpectralKSpace.cpp b/Source/FieldSolver/SpectralSolver/SpectralKSpace.cpp index d04d238ade2..16774496574 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralKSpace.cpp +++ b/Source/FieldSolver/SpectralSolver/SpectralKSpace.cpp @@ -5,9 +5,23 @@ * * License: BSD-3-Clause-LBNL */ -#include "Utils/WarpXConst.H" #include "SpectralKSpace.H" +#include "Utils/WarpXConst.H" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include #include using namespace amrex; diff --git a/Source/FieldSolver/SpectralSolver/SpectralSolver.H b/Source/FieldSolver/SpectralSolver/SpectralSolver.H index 295ebe9f650..82e313ec7fa 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralSolver.H +++ b/Source/FieldSolver/SpectralSolver/SpectralSolver.H @@ -13,6 +13,9 @@ #include #include #include +#include +#include +#include #include #include diff --git a/Source/FieldSolver/SpectralSolver/WrapFFTW.cpp b/Source/FieldSolver/SpectralSolver/WrapFFTW.cpp index b4999380b79..a4dfc8b293b 100644 --- a/Source/FieldSolver/SpectralSolver/WrapFFTW.cpp +++ b/Source/FieldSolver/SpectralSolver/WrapFFTW.cpp @@ -7,6 +7,12 @@ #include "AnyFFT.H" +#include +#include +#include + +#include + namespace AnyFFT { #ifdef AMREX_USE_FLOAT diff --git a/Source/Filter/BilinearFilter.H b/Source/Filter/BilinearFilter.H index 0b431672eda..1bf19978dff 100644 --- a/Source/Filter/BilinearFilter.H +++ b/Source/Filter/BilinearFilter.H @@ -8,10 +8,9 @@ #ifndef WARPX_BILIN_FILTER_H_ #define WARPX_BILIN_FILTER_H_ -#include - #include "Filter.H" +#include class BilinearFilter : public Filter { diff --git a/Source/Filter/BilinearFilter.cpp b/Source/Filter/BilinearFilter.cpp index bbf31335d41..bb885ee887a 100644 --- a/Source/Filter/BilinearFilter.cpp +++ b/Source/Filter/BilinearFilter.cpp @@ -14,6 +14,7 @@ #include #include #include +#include #include #include diff --git a/Source/Filter/Filter.H b/Source/Filter/Filter.H index fdd37d8419f..d3bcd56a4eb 100644 --- a/Source/Filter/Filter.H +++ b/Source/Filter/Filter.H @@ -5,6 +5,10 @@ * License: BSD-3-Clause-LBNL */ #include +#include +#include +#include +#include #ifndef WARPX_FILTER_H_ #define WARPX_FILTER_H_ diff --git a/Source/Filter/Filter.cpp b/Source/Filter/Filter.cpp index 8d4b6ed563b..781dfd8045e 100644 --- a/Source/Filter/Filter.cpp +++ b/Source/Filter/Filter.cpp @@ -6,12 +6,19 @@ * License: BSD-3-Clause-LBNL */ #include "Filter.H" -#include "WarpX.H" -#ifdef AMREX_USE_OMP -# include -#endif +#include "Utils/WarpXProfilerWrapper.H" + +#include +#include +#include +#include +#include +#include +#include +#include +#include using namespace amrex; diff --git a/Source/Filter/NCIGodfreyFilter.H b/Source/Filter/NCIGodfreyFilter.H index 3d784c6c9c4..0bcd0fb675c 100644 --- a/Source/Filter/NCIGodfreyFilter.H +++ b/Source/Filter/NCIGodfreyFilter.H @@ -9,6 +9,7 @@ #include "Filter.H" +#include enum class godfrey_coeff_set { Ex_Ey_Bz=0, Bx_By_Ez=1 }; diff --git a/Source/Filter/NCIGodfreyFilter.cpp b/Source/Filter/NCIGodfreyFilter.cpp index 4af0e2b22c3..224bfb946cc 100644 --- a/Source/Filter/NCIGodfreyFilter.cpp +++ b/Source/Filter/NCIGodfreyFilter.cpp @@ -5,15 +5,20 @@ * License: BSD-3-Clause-LBNL */ #include "NCIGodfreyFilter.H" -#include "Utils/NCIGodfreyTables.H" -#include "WarpX.H" -#include +#include "Utils/NCIGodfreyTables.H" -#ifdef AMREX_USE_OMP -# include -#endif +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include using namespace amrex; diff --git a/Source/Initialization/InjectorDensity.H b/Source/Initialization/InjectorDensity.H index 83a55bfe9b3..9d707f41538 100644 --- a/Source/Initialization/InjectorDensity.H +++ b/Source/Initialization/InjectorDensity.H @@ -10,11 +10,17 @@ #define INJECTOR_DENSITY_H_ #include "Parser/GpuParser.H" +#include "Parser/WarpXParser.H" #include "CustomDensityProb.H" #include "Utils/WarpXConst.H" -#include -#include +#include +#include +#include +#include + +#include +#include // struct whose getDensity returns constant density. struct InjectorDensityConstant diff --git a/Source/Initialization/InjectorDensity.cpp b/Source/Initialization/InjectorDensity.cpp index a6df6ae131d..3f79f8d8891 100644 --- a/Source/Initialization/InjectorDensity.cpp +++ b/Source/Initialization/InjectorDensity.cpp @@ -6,8 +6,15 @@ * License: BSD-3-Clause-LBNL */ #include "InjectorDensity.H" -#include "PlasmaInjector.H" +#include "Initialization/CustomDensityProb.H" + +#include +#include + +#include +#include +#include using namespace amrex; diff --git a/Source/Initialization/InjectorMomentum.H b/Source/Initialization/InjectorMomentum.H index 28223f21afb..c53405f736f 100644 --- a/Source/Initialization/InjectorMomentum.H +++ b/Source/Initialization/InjectorMomentum.H @@ -11,10 +11,15 @@ #include "CustomMomentumProb.H" #include "Parser/GpuParser.H" #include "Utils/WarpXConst.H" +#include "Parser/WarpXParser.H" -#include +#include +#include +#include +#include #include +#include #include diff --git a/Source/Initialization/InjectorMomentum.cpp b/Source/Initialization/InjectorMomentum.cpp index 236fd1b4643..40e247cd9a8 100644 --- a/Source/Initialization/InjectorMomentum.cpp +++ b/Source/Initialization/InjectorMomentum.cpp @@ -6,8 +6,6 @@ * License: BSD-3-Clause-LBNL */ #include "InjectorMomentum.H" -#include "PlasmaInjector.H" - using namespace amrex; diff --git a/Source/Initialization/PlasmaInjector.H b/Source/Initialization/PlasmaInjector.H index ce4d3184242..daaacf50267 100644 --- a/Source/Initialization/PlasmaInjector.H +++ b/Source/Initialization/PlasmaInjector.H @@ -14,19 +14,18 @@ #include "InjectorDensity.H" #include "InjectorMomentum.H" -#include "Utils/WarpXConst.H" -#include "Parser/WarpXParser.H" - #include #include -#include +#include +#include #ifdef WARPX_USE_OPENPMD # include #endif -#include #include +#include +#include /// /// The PlasmaInjector class parses and stores information about the plasma diff --git a/Source/Initialization/PlasmaInjector.cpp b/Source/Initialization/PlasmaInjector.cpp index e838cfcb4c1..c29f9204056 100644 --- a/Source/Initialization/PlasmaInjector.cpp +++ b/Source/Initialization/PlasmaInjector.cpp @@ -8,6 +8,7 @@ * License: BSD-3-Clause-LBNL */ #include "PlasmaInjector.H" + #include "Particles/SpeciesPhysicalProperties.H" #include "Utils/WarpXConst.H" #include "Utils/WarpXUtil.H" @@ -16,11 +17,19 @@ #include #include #include - -#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include #include -#include #include +#include using namespace amrex; diff --git a/Source/Initialization/WarpXInitData.cpp b/Source/Initialization/WarpXInitData.cpp index b6182b1ff3a..aa6f70c2715 100644 --- a/Source/Initialization/WarpXInitData.cpp +++ b/Source/Initialization/WarpXInitData.cpp @@ -9,20 +9,58 @@ * License: BSD-3-Clause-LBNL */ #include "WarpX.H" + #include "Filter/BilinearFilter.H" #include "Filter/NCIGodfreyFilter.H" #include "Parser/GpuParser.H" #include "Utils/WarpXUtil.H" #include "Utils/WarpXAlgorithmSelection.H" +#include "BoundaryConditions/PML.H" +#include "Diagnostics/BackTransformedDiagnostic.H" +#include "Diagnostics/MultiDiagnostics.H" +#include "Diagnostics/ReducedDiags/MultiReducedDiags.H" +#include "FieldSolver/FiniteDifferenceSolver/MacroscopicProperties/MacroscopicProperties.H" +#include "Parser/WarpXParserWrapper.H" +#include "Particles/MultiParticleContainer.H" +#include "Utils/WarpXConst.H" +#include "Utils/WarpXProfilerWrapper.H" #include #include - +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #ifdef BL_USE_SENSEI_INSITU # include #endif #include +#include +#include +#include +#include +#include +#include using namespace amrex; From 0088e482d534fa93616694fda9288b55eddd6d6c Mon Sep 17 00:00:00 2001 From: Luca Fedeli Date: Wed, 12 May 2021 14:17:27 +0200 Subject: [PATCH 12/58] fixed bug --- Source/BoundaryConditions/PML.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/BoundaryConditions/PML.cpp b/Source/BoundaryConditions/PML.cpp index 7f4f0dfebc3..016de485d73 100644 --- a/Source/BoundaryConditions/PML.cpp +++ b/Source/BoundaryConditions/PML.cpp @@ -13,8 +13,10 @@ #include "BoundaryConditions/PMLComponent.H" #include "Utils/WarpXConst.H" #include "Utils/WarpXAlgorithmSelection.H" -#include "FieldSolver/SpectralSolver/SpectralFieldData.H" #include "Utils/WarpXProfilerWrapper.H" +#ifdef WARPX_USE_PSATD +# include "FieldSolver/SpectralSolver/SpectralFieldData.H" +#endif #include #include From b178fe39e16cf8b7c7c374210871ffe3ece16020 Mon Sep 17 00:00:00 2001 From: Luca Fedeli Date: Wed, 12 May 2021 14:25:04 +0200 Subject: [PATCH 13/58] fixed bug --- Source/FieldSolver/WarpXPushFieldsEM.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/FieldSolver/WarpXPushFieldsEM.cpp b/Source/FieldSolver/WarpXPushFieldsEM.cpp index 9da95800d0f..92df6600695 100644 --- a/Source/FieldSolver/WarpXPushFieldsEM.cpp +++ b/Source/FieldSolver/WarpXPushFieldsEM.cpp @@ -16,6 +16,7 @@ #if defined(WARPX_DIM_RZ) || defined(WARPX_USE_PSATD) # include "FieldSolver/SpectralSolver/SpectralFieldData.H" # include "FieldSolver/SpectralSolver/SpectralSolver.H" +#endif #include "BoundaryConditions/WarpX_PML_kernels.H" #include "BoundaryConditions/PML_current.H" #include "WarpX_FDTD.H" From 2c131719b099d1507048486ac34d193edff06938 Mon Sep 17 00:00:00 2001 From: Luca Fedeli Date: Wed, 12 May 2021 15:50:19 +0200 Subject: [PATCH 14/58] progress with IWYU --- Source/BoundaryConditions/PML.H | 3 - Source/Diagnostics/MultiDiagnostics.H | 2 +- Source/Parallelization/WarpXComm.cpp | 6 +- Source/Parallelization/WarpXRegrid.cpp | 3 + Source/Parallelization/WarpXSumGuardCells.H | 2 + Source/Particles/LaserParticleContainer.cpp | 2 + Source/Particles/MultiParticleContainer.cpp | 1 + Source/Particles/PhysicalParticleContainer.H | 2 + Source/WarpX.H | 83 +++++++++++++------- Source/WarpX.cpp | 12 ++- 10 files changed, 82 insertions(+), 34 deletions(-) diff --git a/Source/BoundaryConditions/PML.H b/Source/BoundaryConditions/PML.H index 651ee8c70c0..869bac55a1d 100644 --- a/Source/BoundaryConditions/PML.H +++ b/Source/BoundaryConditions/PML.H @@ -9,9 +9,6 @@ #ifndef WARPX_PML_H_ #define WARPX_PML_H_ -class MultiSigmaBox; /*Forward declaration*/ -class PML; /*Forward declaration*/ - #ifdef WARPX_USE_PSATD # include "FieldSolver/SpectralSolver/SpectralSolver.H" #endif diff --git a/Source/Diagnostics/MultiDiagnostics.H b/Source/Diagnostics/MultiDiagnostics.H index 491460eea19..22246c7c658 100644 --- a/Source/Diagnostics/MultiDiagnostics.H +++ b/Source/Diagnostics/MultiDiagnostics.H @@ -1,7 +1,7 @@ #ifndef WARPX_MULTIDIAGNOSTICS_H_ #define WARPX_MULTIDIAGNOSTICS_H_ -#include "Diagnostics/Diagnostics.H" +#include "Diagnostics.H" #include diff --git a/Source/Parallelization/WarpXComm.cpp b/Source/Parallelization/WarpXComm.cpp index 3badbdf2df1..2025bb9ce5e 100644 --- a/Source/Parallelization/WarpXComm.cpp +++ b/Source/Parallelization/WarpXComm.cpp @@ -7,11 +7,15 @@ * License: BSD-3-Clause-LBNL */ #include "WarpXComm_K.H" + #include "WarpX.H" #include "WarpXSumGuardCells.H" #include "Utils/CoarsenMR.H" +#include "Utils/WarpXProfilerWrapper.H" +#include "BoundaryConditions/PML.H" + #ifdef WARPX_USE_PSATD -#include "FieldSolver/SpectralSolver/SpectralKSpace.H" +# include "FieldSolver/SpectralSolver/SpectralKSpace.H" #endif #include diff --git a/Source/Parallelization/WarpXRegrid.cpp b/Source/Parallelization/WarpXRegrid.cpp index f222f90dc0f..c20c7d96b22 100644 --- a/Source/Parallelization/WarpXRegrid.cpp +++ b/Source/Parallelization/WarpXRegrid.cpp @@ -7,7 +7,10 @@ * License: BSD-3-Clause-LBNL */ #include "WarpX.H" + #include "Utils/WarpXAlgorithmSelection.H" +#include "Utils/WarpXProfilerWrapper.H" +#include "Particles/MultiParticleContainer.H" #include diff --git a/Source/Parallelization/WarpXSumGuardCells.H b/Source/Parallelization/WarpXSumGuardCells.H index b9789b45ca4..53894f686a5 100644 --- a/Source/Parallelization/WarpXSumGuardCells.H +++ b/Source/Parallelization/WarpXSumGuardCells.H @@ -8,6 +8,8 @@ #ifndef WARPX_SUM_GUARD_CELLS_H_ #define WARPX_SUM_GUARD_CELLS_H_ +#include "Utils/WarpXAlgorithmSelection.H" + #include /** \brief Sum the values of `mf`, where the different boxes overlap diff --git a/Source/Particles/LaserParticleContainer.cpp b/Source/Particles/LaserParticleContainer.cpp index c5fe3e4fb31..6e3ccf90f7e 100644 --- a/Source/Particles/LaserParticleContainer.cpp +++ b/Source/Particles/LaserParticleContainer.cpp @@ -11,6 +11,8 @@ #include "Utils/WarpX_Complex.H" #include "Particles/MultiParticleContainer.H" #include "Particles/Pusher/GetAndSetPosition.H" +#include "Utils/WarpXProfilerWrapper.H" +#include "Utils/WarpXAlgorithmSelection.H" #include diff --git a/Source/Particles/MultiParticleContainer.cpp b/Source/Particles/MultiParticleContainer.cpp index 4f6bdf05cca..f8dee2ae338 100644 --- a/Source/Particles/MultiParticleContainer.cpp +++ b/Source/Particles/MultiParticleContainer.cpp @@ -12,6 +12,7 @@ #include "MultiParticleContainer.H" #include "SpeciesPhysicalProperties.H" #include "WarpX.H" +#include "Utils/WarpXProfilerWrapper.H" #ifdef WARPX_QED #include "Particles/ElementaryProcess/QEDInternals/SchwingerProcessWrapper.H" #include "Particles/ElementaryProcess/QEDSchwingerProcess.H" diff --git a/Source/Particles/PhysicalParticleContainer.H b/Source/Particles/PhysicalParticleContainer.H index 000caf7908e..84271a12403 100644 --- a/Source/Particles/PhysicalParticleContainer.H +++ b/Source/Particles/PhysicalParticleContainer.H @@ -15,6 +15,8 @@ #include "Filter/NCIGodfreyFilter.H" #include "Particles/ElementaryProcess/Ionization.H" #include "Particles/Gather/ScaleFields.H" +#include "Utils/WarpXProfilerWrapper.H" +#include "Utils/WarpXAlgorithmSelection.H" #ifdef WARPX_QED # include "Particles/ElementaryProcess/QEDInternals/QuantumSyncEngineWrapper.H" diff --git a/Source/WarpX.H b/Source/WarpX.H index 8d3161d5a09..07f8fcf4498 100644 --- a/Source/WarpX.H +++ b/Source/WarpX.H @@ -12,44 +12,17 @@ #ifndef WARPX_H_ #define WARPX_H_ -#include "BoundaryConditions/PML.H" #include "Evolve/WarpXDtType.H" -#include "Particles/MultiParticleContainer.H" -#include "Diagnostics/BackTransformedDiagnostic.H" -#include "Diagnostics/MultiDiagnostics.H" #include "Filter/BilinearFilter.H" -#include "Filter/NCIGodfreyFilter.H" -#include "Diagnostics/ReducedDiags/MultiReducedDiags.H" -#include "Utils/WarpXUtil.H" -#include "Utils/WarpXAlgorithmSelection.H" #include "Utils/IntervalsParser.H" -#include "FieldSolver/FiniteDifferenceSolver/MacroscopicProperties/MacroscopicProperties.H" - -#include "FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.H" -#ifdef WARPX_USE_PSATD -# ifdef WARPX_DIM_RZ -# include "FieldSolver/SpectralSolver/SpectralSolverRZ.H" -# else -# include "FieldSolver/SpectralSolver/SpectralSolver.H" -# endif -#endif - #include "Parallelization/GuardCellManager.H" - -#ifdef WARPX_USE_OPENPMD -# include "Diagnostics/WarpXOpenPMD.H" -#endif - #include "Parser/WarpXParserWrapper.H" +#include "Diagnostics/MultiDiagnostics.H" #include -#include -#include #include #include #include -#include -#include #include #include #include @@ -58,6 +31,60 @@ #include #include #include +#ifdef AMREX_USE_EB +# include "AMReX_EBFabFactory.H" +#endif + +// _______________________________________________WarpX Forward declarations +class BackTransformedDiagnostic; +class FiniteDifferenceSolver; +class MacroscopicProperties; +class MultiDiagnostics; +class MultiParticleContainer; +class MultiReducedDiags; +class NCIGodfreyFilter; +class PML; +class WarpXParticleContainer; +class SpectralSolverRZ; +class SpectralSolver; +// _______________________________________________Headers +//#include "Diagnostics/BackTransformedDiagnostic.H" +//#include "FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.H" +//#include "FieldSolver/FiniteDifferenceSolver/MacroscopicProperties/MacroscopicProperties.H" +//#include "Diagnostics/MultiDiagnostics.H" +//#include "Particles/MultiParticleContainer.H" +//#include "Diagnostics/ReducedDiags/MultiReducedDiags.H" +//#include "Filter/NCIGodfreyFilter.H" +//#include "BoundaryConditions/PML.H" +//#include "FieldSolver/SpectralSolver/SpectralSolver.H" +//#ifdef WARPX_USE_PSATD +//# ifdef WARPX_DIM_RZ +//# include "FieldSolver/SpectralSolver/SpectralSolverRZ.H" +//# else +//# include "FieldSolver/SpectralSolver/SpectralSolver.H" +//# endif +//#endif +// ________________________________________________________________________ + +// _______________________________________________AMReX Forward declarations +namespace amrex { class Box; } +namespace amrex { class BoxArray; } +namespace amrex { class DistributionMapping; } +namespace amrex { class FArrayBox; } +namespace amrex { class Geometry; } +namespace amrex { class IArrayBox; } +namespace amrex { class MultiFab; } +namespace amrex { class TagBoxArray; } +namespace amrex { class iMultiFab; } +namespace amrex { template class FabFactory; } +namespace amrex { template class LayoutData; } +// _______________________________________________Headers +//#include +//#include +//#include +// #include +// ________________________________________________________________________ + #include #include diff --git a/Source/WarpX.cpp b/Source/WarpX.cpp index 7ba3e97fc32..d771032568e 100644 --- a/Source/WarpX.cpp +++ b/Source/WarpX.cpp @@ -13,12 +13,22 @@ #include "FieldSolver/WarpX_FDTD.H" #ifdef WARPX_USE_PSATD -#include "FieldSolver/SpectralSolver/SpectralKSpace.H" +# include "FieldSolver/SpectralSolver/SpectralSolver.H" +# include "FieldSolver/SpectralSolver/SpectralKSpace.H" +#endif +#ifdef WARPX_DIM_RZ +# include "FieldSolver/SpectralSolver/SpectralSolverRZ.H" #endif #include "Python/WarpXWrappers.h" #include "Utils/WarpXConst.H" #include "Utils/WarpXUtil.H" #include "Utils/WarpXAlgorithmSelection.H" +#include "Particles/MultiParticleContainer.H" +#include "Diagnostics/ReducedDiags/MultiReducedDiags.H" +#include "FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.H" +#include "Diagnostics/MultiDiagnostics.H" +#include "Diagnostics/ReducedDiags/MultiReducedDiags.H" +#include "Diagnostics/BackTransformedDiagnostic.H" #include #include From dbb9cd777f13653249ccdd0053814b8ee8f810e3 Mon Sep 17 00:00:00 2001 From: Luca Fedeli Date: Wed, 12 May 2021 17:14:08 +0200 Subject: [PATCH 15/58] progress with IWYU + use forward declarations in WarpX.H --- Source/Parallelization/WarpXRegrid.cpp | 1 + Source/Particles/Gather/GetExternalFields.cpp | 4 +++- Source/Particles/RigidInjectedParticleContainer.cpp | 1 + Source/Python/WarpXWrappers.cpp | 2 ++ Source/WarpX.H | 1 - 5 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Source/Parallelization/WarpXRegrid.cpp b/Source/Parallelization/WarpXRegrid.cpp index c20c7d96b22..872a78c0e01 100644 --- a/Source/Parallelization/WarpXRegrid.cpp +++ b/Source/Parallelization/WarpXRegrid.cpp @@ -11,6 +11,7 @@ #include "Utils/WarpXAlgorithmSelection.H" #include "Utils/WarpXProfilerWrapper.H" #include "Particles/MultiParticleContainer.H" +#include "Diagnostics/MultiDiagnostics.H" #include diff --git a/Source/Particles/Gather/GetExternalFields.cpp b/Source/Particles/Gather/GetExternalFields.cpp index c1fbe49daca..e8ff350d839 100644 --- a/Source/Particles/Gather/GetExternalFields.cpp +++ b/Source/Particles/Gather/GetExternalFields.cpp @@ -1,6 +1,8 @@ -#include "WarpX.H" #include "Particles/Gather/GetExternalFields.H" +#include "WarpX.H" +#include "Particles/MultiParticleContainer.H" + GetExternalEField::GetExternalEField (const WarpXParIter& a_pti, int a_offset) noexcept { auto& warpx = WarpX::GetInstance(); diff --git a/Source/Particles/RigidInjectedParticleContainer.cpp b/Source/Particles/RigidInjectedParticleContainer.cpp index 5cb49f69ce3..fad735b7d8e 100644 --- a/Source/Particles/RigidInjectedParticleContainer.cpp +++ b/Source/Particles/RigidInjectedParticleContainer.cpp @@ -14,6 +14,7 @@ #include "RigidInjectedParticleContainer.H" #include "WarpX.H" #include "Utils/WarpXConst.H" +#include "Utils/WarpXUtil.H" #include "Utils/WarpXAlgorithmSelection.H" #include "Pusher/UpdateMomentumBoris.H" #include "Pusher/UpdateMomentumVay.H" diff --git a/Source/Python/WarpXWrappers.cpp b/Source/Python/WarpXWrappers.cpp index be06c259ecb..37e55652c69 100644 --- a/Source/Python/WarpXWrappers.cpp +++ b/Source/Python/WarpXWrappers.cpp @@ -12,6 +12,8 @@ #include "WarpX.H" #include "Utils/WarpXUtil.H" #include "WarpX_py.H" +#include "Particles/MultiParticleContainer.H" +#include "BoundaryConditions/PML.H" #include #include diff --git a/Source/WarpX.H b/Source/WarpX.H index 07f8fcf4498..4c57c769f82 100644 --- a/Source/WarpX.H +++ b/Source/WarpX.H @@ -17,7 +17,6 @@ #include "Utils/IntervalsParser.H" #include "Parallelization/GuardCellManager.H" #include "Parser/WarpXParserWrapper.H" -#include "Diagnostics/MultiDiagnostics.H" #include #include From 377cfe7fb403fa35bfe19cb630ca6190d4d47f25 Mon Sep 17 00:00:00 2001 From: Luca Fedeli Date: Sat, 15 May 2021 16:08:41 +0200 Subject: [PATCH 16/58] first try with .def files --- Source/BoundaryConditions/PML.def | 16 ++++++ .../Diagnostics/BackTransformedDiagnostic.def | 11 ++++ Source/Diagnostics/MultiDiagnostics.def | 8 +++ .../ReducedDiags/MultiReducedDiags.def | 8 +++ .../FiniteDifferenceSolver.H | 3 -- .../FiniteDifferenceSolver.def | 8 +++ .../MacroscopicProperties.def | 8 +++ .../SpectralSolver/SpectralSolver.def | 8 +++ .../SpectralSolver/SpectralSolverRZ.def | 8 +++ Source/Filter/NCIGodfreyFilter.def | 10 ++++ Source/Particles/MultiParticleContainer.def | 8 +++ Source/Particles/WarpXParticleContainer.def | 17 +++++++ Source/WarpX.H | 51 +++++++------------ 13 files changed, 129 insertions(+), 35 deletions(-) create mode 100644 Source/BoundaryConditions/PML.def create mode 100644 Source/Diagnostics/BackTransformedDiagnostic.def create mode 100644 Source/Diagnostics/MultiDiagnostics.def create mode 100644 Source/Diagnostics/ReducedDiags/MultiReducedDiags.def create mode 100644 Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.def create mode 100644 Source/FieldSolver/FiniteDifferenceSolver/MacroscopicProperties/MacroscopicProperties.def create mode 100644 Source/FieldSolver/SpectralSolver/SpectralSolver.def create mode 100644 Source/FieldSolver/SpectralSolver/SpectralSolverRZ.def create mode 100644 Source/Filter/NCIGodfreyFilter.def create mode 100644 Source/Particles/MultiParticleContainer.def create mode 100644 Source/Particles/WarpXParticleContainer.def diff --git a/Source/BoundaryConditions/PML.def b/Source/BoundaryConditions/PML.def new file mode 100644 index 00000000000..7395a2c87cd --- /dev/null +++ b/Source/BoundaryConditions/PML.def @@ -0,0 +1,16 @@ +/* Copyright 2021 Luca Fedeli + * + * This file is part of WarpX. + * + * License: BSD-3-Clause-LBNL + */ + +struct Sigma; +struct SigmaBox; + +class SigmaBoxFactory; +class MultiSigmaBox; + +enum struct PatchType; + +class PML; diff --git a/Source/Diagnostics/BackTransformedDiagnostic.def b/Source/Diagnostics/BackTransformedDiagnostic.def new file mode 100644 index 00000000000..32ff20f762d --- /dev/null +++ b/Source/Diagnostics/BackTransformedDiagnostic.def @@ -0,0 +1,11 @@ +/* Copyright 2021 Luca Fedeli + * + * This file is part of WarpX. + * + * License: BSD-3-Clause-LBNL + */ + + +class LabFrameDiag; +class LabFrameSnapShot; +class BackTransformedDiagnostic; diff --git a/Source/Diagnostics/MultiDiagnostics.def b/Source/Diagnostics/MultiDiagnostics.def new file mode 100644 index 00000000000..195174bb959 --- /dev/null +++ b/Source/Diagnostics/MultiDiagnostics.def @@ -0,0 +1,8 @@ +/* Copyright 2021 Luca Fedeli + * + * This file is part of WarpX. + * + * License: BSD-3-Clause-LBNL + */ + +class MultiDiagnostics; diff --git a/Source/Diagnostics/ReducedDiags/MultiReducedDiags.def b/Source/Diagnostics/ReducedDiags/MultiReducedDiags.def new file mode 100644 index 00000000000..c3b9c1f514a --- /dev/null +++ b/Source/Diagnostics/ReducedDiags/MultiReducedDiags.def @@ -0,0 +1,8 @@ +/* Copyright 2021 Luca Fedeli + * + * This file is part of WarpX. + * + * License: BSD-3-Clause-LBNL + */ + +class MultiReducedDiags; diff --git a/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.H b/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.H index d6f34afca59..41d7346575c 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.H +++ b/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.H @@ -8,9 +8,6 @@ #ifndef WARPX_FINITE_DIFFERENCE_SOLVER_H_ #define WARPX_FINITE_DIFFERENCE_SOLVER_H_ -class FiniteDifferenceSolver; /*Forward declaration*/ - -#include "BoundaryConditions/PML.H" #include "MacroscopicProperties/MacroscopicProperties.H" #include diff --git a/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.def b/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.def new file mode 100644 index 00000000000..4ecd05116c4 --- /dev/null +++ b/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.def @@ -0,0 +1,8 @@ +/* Copyright 2021 Luca Fedeli + * + * This file is part of WarpX. + * + * License: BSD-3-Clause-LBNL + */ + +class FiniteDifferenceSolver; diff --git a/Source/FieldSolver/FiniteDifferenceSolver/MacroscopicProperties/MacroscopicProperties.def b/Source/FieldSolver/FiniteDifferenceSolver/MacroscopicProperties/MacroscopicProperties.def new file mode 100644 index 00000000000..2ca4662d7dc --- /dev/null +++ b/Source/FieldSolver/FiniteDifferenceSolver/MacroscopicProperties/MacroscopicProperties.def @@ -0,0 +1,8 @@ +/* Copyright 2021 Luca Fedeli + * + * This file is part of WarpX. + * + * License: BSD-3-Clause-LBNL + */ + +class MacroscopicProperties; diff --git a/Source/FieldSolver/SpectralSolver/SpectralSolver.def b/Source/FieldSolver/SpectralSolver/SpectralSolver.def new file mode 100644 index 00000000000..fecd3bd8b2c --- /dev/null +++ b/Source/FieldSolver/SpectralSolver/SpectralSolver.def @@ -0,0 +1,8 @@ +/* Copyright 2021 Luca Fedeli + * + * This file is part of WarpX. + * + * License: BSD-3-Clause-LBNL + */ + +class SpectralSolver; diff --git a/Source/FieldSolver/SpectralSolver/SpectralSolverRZ.def b/Source/FieldSolver/SpectralSolver/SpectralSolverRZ.def new file mode 100644 index 00000000000..bfe332fe742 --- /dev/null +++ b/Source/FieldSolver/SpectralSolver/SpectralSolverRZ.def @@ -0,0 +1,8 @@ +/* Copyright 2021 Luca Fedeli + * + * This file is part of WarpX. + * + * License: BSD-3-Clause-LBNL + */ + +class SpectralSolverRZ; diff --git a/Source/Filter/NCIGodfreyFilter.def b/Source/Filter/NCIGodfreyFilter.def new file mode 100644 index 00000000000..33e098ddeaf --- /dev/null +++ b/Source/Filter/NCIGodfreyFilter.def @@ -0,0 +1,10 @@ +/* Copyright 2021 Luca Fedeli + * + * This file is part of WarpX. + * + * License: BSD-3-Clause-LBNL + */ + +enum class godfrey_coeff_set; + +class NCIGodfreyFilter; diff --git a/Source/Particles/MultiParticleContainer.def b/Source/Particles/MultiParticleContainer.def new file mode 100644 index 00000000000..20316a9cd53 --- /dev/null +++ b/Source/Particles/MultiParticleContainer.def @@ -0,0 +1,8 @@ +/* Copyright 2021 Luca Fedeli + * + * This file is part of WarpX. + * + * License: BSD-3-Clause-LBNL + */ + +class MultiParticleContainer; diff --git a/Source/Particles/WarpXParticleContainer.def b/Source/Particles/WarpXParticleContainer.def new file mode 100644 index 00000000000..4228892e6d1 --- /dev/null +++ b/Source/Particles/WarpXParticleContainer.def @@ -0,0 +1,17 @@ +/* Copyright 2021 Luca Fedeli + * + * This file is part of WarpX. + * + * License: BSD-3-Clause-LBNL + */ + +enum struct ParticleBC; +enum struct ConvertDirection; + +struct PIdx; +struct DiagIdx; +struct TmpIdx; + +class WarpXParIter; + +class WarpXParticleContainer; diff --git a/Source/WarpX.H b/Source/WarpX.H index 4c57c769f82..41817a128be 100644 --- a/Source/WarpX.H +++ b/Source/WarpX.H @@ -17,6 +17,25 @@ #include "Utils/IntervalsParser.H" #include "Parallelization/GuardCellManager.H" #include "Parser/WarpXParserWrapper.H" +// _______________________________________________WarpX Forward declarations +#include "Diagnostics/BackTransformedDiagnostic.def" +#include "FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.def" +#include "FieldSolver/FiniteDifferenceSolver/MacroscopicProperties/MacroscopicProperties.def" +#include "Diagnostics/MultiDiagnostics.def" +#include "Particles/MultiParticleContainer.def" +#include "Diagnostics/ReducedDiags/MultiReducedDiags.def" +#include "Filter/NCIGodfreyFilter.def" +#include "BoundaryConditions/PML.def" +#include "Particles/WarpXParticleContainer.def" +#include "FieldSolver/SpectralSolver/SpectralSolver.H" +#ifdef WARPX_USE_PSATD +# ifdef WARPX_DIM_RZ +# include "FieldSolver/SpectralSolver/SpectralSolverRZ.def" +# else +# include "FieldSolver/SpectralSolver/SpectralSolver.def" +# endif +#endif +// ________________________________________________________________________ #include #include @@ -34,37 +53,6 @@ # include "AMReX_EBFabFactory.H" #endif -// _______________________________________________WarpX Forward declarations -class BackTransformedDiagnostic; -class FiniteDifferenceSolver; -class MacroscopicProperties; -class MultiDiagnostics; -class MultiParticleContainer; -class MultiReducedDiags; -class NCIGodfreyFilter; -class PML; -class WarpXParticleContainer; -class SpectralSolverRZ; -class SpectralSolver; -// _______________________________________________Headers -//#include "Diagnostics/BackTransformedDiagnostic.H" -//#include "FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.H" -//#include "FieldSolver/FiniteDifferenceSolver/MacroscopicProperties/MacroscopicProperties.H" -//#include "Diagnostics/MultiDiagnostics.H" -//#include "Particles/MultiParticleContainer.H" -//#include "Diagnostics/ReducedDiags/MultiReducedDiags.H" -//#include "Filter/NCIGodfreyFilter.H" -//#include "BoundaryConditions/PML.H" -//#include "FieldSolver/SpectralSolver/SpectralSolver.H" -//#ifdef WARPX_USE_PSATD -//# ifdef WARPX_DIM_RZ -//# include "FieldSolver/SpectralSolver/SpectralSolverRZ.H" -//# else -//# include "FieldSolver/SpectralSolver/SpectralSolver.H" -//# endif -//#endif -// ________________________________________________________________________ - // _______________________________________________AMReX Forward declarations namespace amrex { class Box; } namespace amrex { class BoxArray; } @@ -84,7 +72,6 @@ namespace amrex { template class LayoutData; } // #include // ________________________________________________________________________ - #include #include #include From a4ff7473b3714b92cdf1f986c1639225cb50e10b Mon Sep 17 00:00:00 2001 From: Luca Fedeli Date: Sat, 15 May 2021 16:31:36 +0200 Subject: [PATCH 17/58] fix bugs --- Source/BoundaryConditions/PML.H | 2 ++ .../FiniteDifferenceSolver/FiniteDifferenceSolver.H | 3 +++ Source/WarpX.H | 1 - Source/WarpX.cpp | 1 + 4 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Source/BoundaryConditions/PML.H b/Source/BoundaryConditions/PML.H index 869bac55a1d..ba1f7cd2167 100644 --- a/Source/BoundaryConditions/PML.H +++ b/Source/BoundaryConditions/PML.H @@ -180,6 +180,8 @@ public: static void Exchange (amrex::MultiFab& pml, amrex::MultiFab& reg, const amrex::Geometry& geom, int do_pml_in_domain); + ~PML () = default; + private: bool m_ok; diff --git a/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.H b/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.H index 41d7346575c..79792ac822c 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.H +++ b/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.H @@ -9,6 +9,9 @@ #define WARPX_FINITE_DIFFERENCE_SOLVER_H_ #include "MacroscopicProperties/MacroscopicProperties.H" +// _______________________________________________WarpX Forward declarations +#include "BoundaryConditions/PML.def" +//________________________________________________ #include #include diff --git a/Source/WarpX.H b/Source/WarpX.H index 41817a128be..30ec258426b 100644 --- a/Source/WarpX.H +++ b/Source/WarpX.H @@ -27,7 +27,6 @@ #include "Filter/NCIGodfreyFilter.def" #include "BoundaryConditions/PML.def" #include "Particles/WarpXParticleContainer.def" -#include "FieldSolver/SpectralSolver/SpectralSolver.H" #ifdef WARPX_USE_PSATD # ifdef WARPX_DIM_RZ # include "FieldSolver/SpectralSolver/SpectralSolverRZ.def" diff --git a/Source/WarpX.cpp b/Source/WarpX.cpp index d771032568e..d3d65c94c0d 100644 --- a/Source/WarpX.cpp +++ b/Source/WarpX.cpp @@ -29,6 +29,7 @@ #include "Diagnostics/MultiDiagnostics.H" #include "Diagnostics/ReducedDiags/MultiReducedDiags.H" #include "Diagnostics/BackTransformedDiagnostic.H" +#include "BoundaryConditions/PML.H" #include #include From 7a9f121e5d3e534ae5743b06efdc04284ff40299 Mon Sep 17 00:00:00 2001 From: Luca Fedeli Date: Mon, 17 May 2021 11:08:26 +0200 Subject: [PATCH 18/58] progress with IWYU --- Source/BoundaryConditions/PML.H | 1 - .../ComputeDiagFunctor.def | 9 ++++++ Source/Diagnostics/Diagnostics.H | 6 ++-- .../Diagnostics/FlushFormats/FlushFormat.def | 8 +++++ .../FlushFormats/FlushFormatAscent.H | 4 ++- .../FlushFormats/FlushFormatCheckpoint.H | 3 ++ .../FlushFormats/FlushFormatOpenPMD.H | 4 +++ .../FlushFormats/FlushFormatPlotfile.H | 4 ++- .../Diagnostics/ParticleDiag/ParticleDiag.H | 6 ++-- .../Diagnostics/ParticleDiag/ParticleDiag.cpp | 1 + .../Diagnostics/ParticleDiag/ParticleDiag.def | 10 ++++++ Source/Diagnostics/WarpXOpenPMD.H | 4 ++- .../FiniteDifferenceSolver.H | 2 +- .../MacroscopicEvolveE.cpp | 1 - .../SpectralAlgorithms/PMLPsatdAlgorithm.H | 9 +++--- .../SpectralAlgorithms/PMLPsatdAlgorithm.cpp | 5 +++ .../SpectralBaseAlgorithm.H | 32 +++++++++---------- .../SpectralBaseAlgorithm.cpp | 21 ++++++++++++ .../SpectralSolver/SpectralFieldData.def | 12 +++++++ .../SpectralSolver/SpectralKSpace.def | 10 ++++++ Source/Initialization/InjectorPosition.def | 10 ++++++ Source/Initialization/PlasmaInjector.H | 6 ++-- Source/Initialization/PlasmaInjector.cpp | 3 ++ .../LaserProfileFieldFunction.cpp | 12 +++++++ .../LaserProfileFromTXYEFile.cpp | 21 ++++++++++-- .../LaserProfileGaussian.cpp | 16 ++++++++-- .../LaserProfilesImpl/LaserProfileHarris.cpp | 8 ++++- Source/Parallelization/GuardCellManager.H | 2 ++ Source/Parallelization/GuardCellManager.cpp | 7 +++- Source/Parallelization/WarpXComm.cpp | 9 ++---- Source/Parser/WarpXParser.H | 18 +++++------ Source/Parser/WarpXParserWrapper.def | 9 ++++++ .../Particles/PhysicalParticleContainer.cpp | 1 + Source/WarpX.cpp | 9 ++++-- 34 files changed, 226 insertions(+), 57 deletions(-) create mode 100644 Source/Diagnostics/ComputeDiagFunctors/ComputeDiagFunctor.def create mode 100644 Source/Diagnostics/FlushFormats/FlushFormat.def create mode 100644 Source/Diagnostics/ParticleDiag/ParticleDiag.def create mode 100644 Source/FieldSolver/SpectralSolver/SpectralFieldData.def create mode 100644 Source/FieldSolver/SpectralSolver/SpectralKSpace.def create mode 100644 Source/Initialization/InjectorPosition.def create mode 100644 Source/Parser/WarpXParserWrapper.def diff --git a/Source/BoundaryConditions/PML.H b/Source/BoundaryConditions/PML.H index ba1f7cd2167..33ebacb3054 100644 --- a/Source/BoundaryConditions/PML.H +++ b/Source/BoundaryConditions/PML.H @@ -12,7 +12,6 @@ #ifdef WARPX_USE_PSATD # include "FieldSolver/SpectralSolver/SpectralSolver.H" #endif -#include #include #include diff --git a/Source/Diagnostics/ComputeDiagFunctors/ComputeDiagFunctor.def b/Source/Diagnostics/ComputeDiagFunctors/ComputeDiagFunctor.def new file mode 100644 index 00000000000..ca4b730585f --- /dev/null +++ b/Source/Diagnostics/ComputeDiagFunctors/ComputeDiagFunctor.def @@ -0,0 +1,9 @@ +/* Copyright 2019 Andrew Myers, Axel Huebl, Maxence Thevenet + * Revathi Jambunathan, Weiqun Zhang + * + * This file is part of WarpX. + * + * License: BSD-3-Clause-LBNL + */ + +class ComputeDiagFunctor; diff --git a/Source/Diagnostics/Diagnostics.H b/Source/Diagnostics/Diagnostics.H index 6badc364d82..16fa15c3fbe 100644 --- a/Source/Diagnostics/Diagnostics.H +++ b/Source/Diagnostics/Diagnostics.H @@ -2,8 +2,10 @@ #define WARPX_DIAGNOSTICS_H_ #include "ParticleDiag/ParticleDiag.H" -#include "FlushFormats/FlushFormat.H" -#include "ComputeDiagFunctors/ComputeDiagFunctor.H" +// _______________________________________________WarpX Forward declarations +#include "FlushFormats/FlushFormat.def" +#include "ComputeDiagFunctors/ComputeDiagFunctor.def" +//________________________________________________________________________ #include #include diff --git a/Source/Diagnostics/FlushFormats/FlushFormat.def b/Source/Diagnostics/FlushFormats/FlushFormat.def new file mode 100644 index 00000000000..53890ddbd7e --- /dev/null +++ b/Source/Diagnostics/FlushFormats/FlushFormat.def @@ -0,0 +1,8 @@ +/* Copyright 2021 Luca Fedeli + * + * This file is part of WarpX. + * + * License: BSD-3-Clause-LBNL + */ + +class FlushFormat; diff --git a/Source/Diagnostics/FlushFormats/FlushFormatAscent.H b/Source/Diagnostics/FlushFormats/FlushFormatAscent.H index b9258b1410a..64dba02f394 100644 --- a/Source/Diagnostics/FlushFormats/FlushFormatAscent.H +++ b/Source/Diagnostics/FlushFormats/FlushFormatAscent.H @@ -2,7 +2,9 @@ #define WARPX_FLUSHFORMATASCENT_H_ #include "FlushFormat.H" -#include "Diagnostics/ParticleDiag/ParticleDiag.H" +// _______________________________________________WarpX Forward declarations +#include "Diagnostics/ParticleDiag/ParticleDiag.def" +//________________________________________________________________________ #include #include diff --git a/Source/Diagnostics/FlushFormats/FlushFormatCheckpoint.H b/Source/Diagnostics/FlushFormats/FlushFormatCheckpoint.H index d23cc386509..22fc274f58c 100644 --- a/Source/Diagnostics/FlushFormats/FlushFormatCheckpoint.H +++ b/Source/Diagnostics/FlushFormats/FlushFormatCheckpoint.H @@ -2,6 +2,9 @@ #define WARPX_FLUSHFORMATCHECKPOINT_H_ #include "FlushFormatPlotfile.H" +// _______________________________________________WarpX Forward declarations +#include "Diagnostics/ParticleDiag/ParticleDiag.def" +//________________________________________________________________________ #include #include diff --git a/Source/Diagnostics/FlushFormats/FlushFormatOpenPMD.H b/Source/Diagnostics/FlushFormats/FlushFormatOpenPMD.H index c83ad731570..750fa320fc4 100644 --- a/Source/Diagnostics/FlushFormats/FlushFormatOpenPMD.H +++ b/Source/Diagnostics/FlushFormats/FlushFormatOpenPMD.H @@ -3,6 +3,10 @@ #include "FlushFormat.H" #include "Diagnostics/WarpXOpenPMD.H" +// _______________________________________________WarpX Forward declarations +#include "Diagnostics/ParticleDiag/ParticleDiag.def" +//________________________________________________________________________ + #include #include diff --git a/Source/Diagnostics/FlushFormats/FlushFormatPlotfile.H b/Source/Diagnostics/FlushFormats/FlushFormatPlotfile.H index f26ab63d47a..21500282981 100644 --- a/Source/Diagnostics/FlushFormats/FlushFormatPlotfile.H +++ b/Source/Diagnostics/FlushFormats/FlushFormatPlotfile.H @@ -2,7 +2,9 @@ #define WARPX_FLUSHFORMATPLOTFILE_H_ #include "FlushFormat.H" -#include "Diagnostics/ParticleDiag/ParticleDiag.H" +// _______________________________________________WarpX Forward declarations +#include "Diagnostics/ParticleDiag/ParticleDiag.def" +//________________________________________________________________________ #include #include diff --git a/Source/Diagnostics/ParticleDiag/ParticleDiag.H b/Source/Diagnostics/ParticleDiag/ParticleDiag.H index e26b49df0d9..00c7ee4efc5 100644 --- a/Source/Diagnostics/ParticleDiag/ParticleDiag.H +++ b/Source/Diagnostics/ParticleDiag/ParticleDiag.H @@ -1,8 +1,10 @@ #ifndef WARPX_PARTICLEDIAG_H_ #define WARPX_PARTICLEDIAG_H_ -#include "Parser/WarpXParserWrapper.H" -#include "Particles/WarpXParticleContainer.H" +// _______________________________________________WarpX Forward declarations +#include "Particles/WarpXParticleContainer.def" +#include "Parser/WarpXParserWrapper.def" +//________________________________________________________________________ #include #include diff --git a/Source/Diagnostics/ParticleDiag/ParticleDiag.cpp b/Source/Diagnostics/ParticleDiag/ParticleDiag.cpp index 68710ff6c6e..64f91104977 100644 --- a/Source/Diagnostics/ParticleDiag/ParticleDiag.cpp +++ b/Source/Diagnostics/ParticleDiag/ParticleDiag.cpp @@ -4,6 +4,7 @@ #include "Utils/WarpXUtil.H" #include "Diagnostics/ParticleDiag/ParticleDiag.H" #include "Particles/WarpXParticleContainer.H" +#include "Parser/WarpXParserWrapper.H" #include diff --git a/Source/Diagnostics/ParticleDiag/ParticleDiag.def b/Source/Diagnostics/ParticleDiag/ParticleDiag.def new file mode 100644 index 00000000000..99cecb2198a --- /dev/null +++ b/Source/Diagnostics/ParticleDiag/ParticleDiag.def @@ -0,0 +1,10 @@ +/* Copyright 2021 Luca Fedeli + * + * This file is part of WarpX. + * + * License: BSD-3-Clause-LBNL + */ + +class ParticleDiag; + + diff --git a/Source/Diagnostics/WarpXOpenPMD.H b/Source/Diagnostics/WarpXOpenPMD.H index 3274b7a810f..66674a2a502 100644 --- a/Source/Diagnostics/WarpXOpenPMD.H +++ b/Source/Diagnostics/WarpXOpenPMD.H @@ -9,7 +9,9 @@ #define WARPX_OPEN_PMD_H_ #include "Particles/WarpXParticleContainer.H" -#include "Diagnostics/ParticleDiag/ParticleDiag.H" +// _______________________________________________WarpX Forward declarations +#include "Diagnostics/ParticleDiag/ParticleDiag.def" +//________________________________________________________________________ #include #include diff --git a/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.H b/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.H index 79792ac822c..303c01ca09d 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.H +++ b/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.H @@ -8,9 +8,9 @@ #ifndef WARPX_FINITE_DIFFERENCE_SOLVER_H_ #define WARPX_FINITE_DIFFERENCE_SOLVER_H_ -#include "MacroscopicProperties/MacroscopicProperties.H" // _______________________________________________WarpX Forward declarations #include "BoundaryConditions/PML.def" +#include "MacroscopicProperties/MacroscopicProperties.def" //________________________________________________ #include diff --git a/Source/FieldSolver/FiniteDifferenceSolver/MacroscopicEvolveE.cpp b/Source/FieldSolver/FiniteDifferenceSolver/MacroscopicEvolveE.cpp index af9969999d0..5227550cf92 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/MacroscopicEvolveE.cpp +++ b/Source/FieldSolver/FiniteDifferenceSolver/MacroscopicEvolveE.cpp @@ -13,7 +13,6 @@ #include "MacroscopicProperties/MacroscopicProperties.H" #include -#include #include #include #include diff --git a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PMLPsatdAlgorithm.H b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PMLPsatdAlgorithm.H index eb0ae5cd371..649ebd424ad 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PMLPsatdAlgorithm.H +++ b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PMLPsatdAlgorithm.H @@ -8,7 +8,10 @@ #define WARPX_PML_PSATD_ALGORITHM_H_ #include "SpectralBaseAlgorithm.H" -#include "FieldSolver/SpectralSolver/SpectralFieldData.H" +// _______________________________________________WarpX Forward declarations +#include "FieldSolver/SpectralSolver/SpectralFieldData.def" +#include "FieldSolver/SpectralSolver/SpectralKSpace.def" +//________________________________________________________________________ #include @@ -38,9 +41,7 @@ class PMLPsatdAlgorithm : public SpectralBaseAlgorithm // Redefine functions from base class virtual void pushSpectralFields(SpectralFieldData& f) const override final; - virtual int getRequiredNumberOfFields() const override final { - return SpectralPMLIndex::n_fields; - } + virtual int getRequiredNumberOfFields() const override final; /** * \brief Virtual function for current correction in Fourier space diff --git a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PMLPsatdAlgorithm.cpp b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PMLPsatdAlgorithm.cpp index aac0a1313fd..86e0f768f90 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PMLPsatdAlgorithm.cpp +++ b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PMLPsatdAlgorithm.cpp @@ -6,6 +6,7 @@ */ #include "PMLPsatdAlgorithm.H" +#include "FieldSolver/SpectralSolver/SpectralFieldData.H" #include "FieldSolver/SpectralSolver/SpectralKSpace.H" #include "Utils/WarpX_Complex.H" #include "Utils/WarpXConst.H" @@ -414,4 +415,8 @@ PMLPsatdAlgorithm::VayDeposition (const int /*lev*/, amrex::Abort("Vay deposition not implemented for PML PSATD"); } +int PMLPsatdAlgorithm::getRequiredNumberOfFields() const { + return SpectralPMLIndex::n_fields; +} + #endif // WARPX_USE_PSATD diff --git a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/SpectralBaseAlgorithm.H b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/SpectralBaseAlgorithm.H index 107ca688124..7290fe73b2a 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/SpectralBaseAlgorithm.H +++ b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/SpectralBaseAlgorithm.H @@ -7,8 +7,19 @@ #ifndef WARPX_SPECTRAL_BASE_ALGORITHM_H_ #define WARPX_SPECTRAL_BASE_ALGORITHM_H_ +#include "Utils/WarpX_Complex.H" #include "FieldSolver/SpectralSolver/SpectralKSpace.H" -#include "FieldSolver/SpectralSolver/SpectralFieldData.H" +// _______________________________________________WarpX Forward declarations +#include "FieldSolver/SpectralSolver/SpectralFieldData.def" +//________________________________________________________________________ + +#include +#include +#include +#include + +#include +#include #if WARPX_USE_PSATD @@ -73,24 +84,13 @@ class SpectralBaseAlgorithm using SpectralComplexCoefficients = \ amrex::FabArray< amrex::BaseFab >; - // Constructor + /** + * \brief Constructor + */ SpectralBaseAlgorithm(const SpectralKSpace& spectral_kspace, const amrex::DistributionMapping& dm, const int norder_x, const int norder_y, - const int norder_z, const bool nodal) - // Compute and assign the modified k vectors - : modified_kx_vec(spectral_kspace.getModifiedKComponent(dm,0,norder_x,nodal)), -#if (AMREX_SPACEDIM==3) - modified_ky_vec(spectral_kspace.getModifiedKComponent(dm,1,norder_y,nodal)), - modified_kz_vec(spectral_kspace.getModifiedKComponent(dm,2,norder_z,nodal)) -#else - modified_kz_vec(spectral_kspace.getModifiedKComponent(dm,1,norder_z,nodal)) -#endif - { -#if (AMREX_SPACEDIM!=3) - amrex::ignore_unused(norder_y); -#endif - } + const int norder_z, const bool nodal); // Modified finite-order vectors KVectorComponent modified_kx_vec; diff --git a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/SpectralBaseAlgorithm.cpp b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/SpectralBaseAlgorithm.cpp index 91abad70de2..e3640ee6ca6 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/SpectralBaseAlgorithm.cpp +++ b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/SpectralBaseAlgorithm.cpp @@ -25,6 +25,27 @@ using namespace amrex; +/** + * \brief Constructor + */ +SpectralBaseAlgorithm::SpectralBaseAlgorithm(const SpectralKSpace& spectral_kspace, + const amrex::DistributionMapping& dm, + const int norder_x, const int norder_y, + const int norder_z, const bool nodal): + // Compute and assign the modified k vectors + modified_kx_vec(spectral_kspace.getModifiedKComponent(dm,0,norder_x,nodal)), +#if (AMREX_SPACEDIM==3) + modified_ky_vec(spectral_kspace.getModifiedKComponent(dm,1,norder_y,nodal)), + modified_kz_vec(spectral_kspace.getModifiedKComponent(dm,2,norder_z,nodal)) +#else + modified_kz_vec(spectral_kspace.getModifiedKComponent(dm,1,norder_z,nodal)) +#endif + { +#if (AMREX_SPACEDIM!=3) + amrex::ignore_unused(norder_y); +#endif + } + /** * \brief Compute spectral divergence of E */ diff --git a/Source/FieldSolver/SpectralSolver/SpectralFieldData.def b/Source/FieldSolver/SpectralSolver/SpectralFieldData.def new file mode 100644 index 00000000000..631dd3b06c1 --- /dev/null +++ b/Source/FieldSolver/SpectralSolver/SpectralFieldData.def @@ -0,0 +1,12 @@ +/* Copyright 2021 Luca Fedeli + * + * This file is part of WarpX. + * + * License: BSD-3-Clause-LBNL + */ + +struct SpectralFieldIndex; +struct SpectralAvgFieldIndex; +struct SpectralPMLIndex; + +class SpectralFieldData; diff --git a/Source/FieldSolver/SpectralSolver/SpectralKSpace.def b/Source/FieldSolver/SpectralSolver/SpectralKSpace.def new file mode 100644 index 00000000000..32417ff5c94 --- /dev/null +++ b/Source/FieldSolver/SpectralSolver/SpectralKSpace.def @@ -0,0 +1,10 @@ +/* Copyright 2021 Luca Fedeli + * + * This file is part of WarpX. + * + * License: BSD-3-Clause-LBNL + */ + +struct ShiftType; + +class SpectralKSpace; diff --git a/Source/Initialization/InjectorPosition.def b/Source/Initialization/InjectorPosition.def new file mode 100644 index 00000000000..7c585915f1b --- /dev/null +++ b/Source/Initialization/InjectorPosition.def @@ -0,0 +1,10 @@ +/* Copyright 2021 Luca Fedeli + * + * This file is part of WarpX. + * + * License: BSD-3-Clause-LBNL + */ + +struct InjectorPositionRandom; +struct InjectorPositionRegular; +struct InjectorPosition; diff --git a/Source/Initialization/PlasmaInjector.H b/Source/Initialization/PlasmaInjector.H index daaacf50267..d486cce1cf8 100644 --- a/Source/Initialization/PlasmaInjector.H +++ b/Source/Initialization/PlasmaInjector.H @@ -10,9 +10,11 @@ #define PLASMA_INJECTOR_H_ #include "Particles/SpeciesPhysicalProperties.H" -#include "InjectorPosition.H" -#include "InjectorDensity.H" #include "InjectorMomentum.H" +#include "InjectorDensity.H" +// _______________________________________________WarpX Forward declarations +#include "InjectorPosition.def" +// ________________________________________________________________________ #include #include diff --git a/Source/Initialization/PlasmaInjector.cpp b/Source/Initialization/PlasmaInjector.cpp index c29f9204056..9573f71f736 100644 --- a/Source/Initialization/PlasmaInjector.cpp +++ b/Source/Initialization/PlasmaInjector.cpp @@ -10,6 +10,9 @@ #include "PlasmaInjector.H" #include "Particles/SpeciesPhysicalProperties.H" +#include "Initialization/InjectorDensity.H" +#include "Initialization/InjectorMomentum.H" +#include "Initialization/InjectorPosition.H" #include "Utils/WarpXConst.H" #include "Utils/WarpXUtil.H" #include "WarpX.H" diff --git a/Source/Laser/LaserProfilesImpl/LaserProfileFieldFunction.cpp b/Source/Laser/LaserProfilesImpl/LaserProfileFieldFunction.cpp index 3ec95b5934b..bd3beef4c70 100644 --- a/Source/Laser/LaserProfilesImpl/LaserProfileFieldFunction.cpp +++ b/Source/Laser/LaserProfilesImpl/LaserProfileFieldFunction.cpp @@ -5,8 +5,20 @@ * License: BSD-3-Clause-LBNL */ #include "Laser/LaserProfiles.H" +#include "Parser/WarpXParser.H" +#include "Parser/WarpXParserWrapper.H" #include "Utils/WarpX_Complex.H" +#include +#include +#include +#include +#include +#include + +#include +#include +#include using namespace amrex; diff --git a/Source/Laser/LaserProfilesImpl/LaserProfileFromTXYEFile.cpp b/Source/Laser/LaserProfilesImpl/LaserProfileFromTXYEFile.cpp index 589fc5267e8..87b9f73ae24 100644 --- a/Source/Laser/LaserProfilesImpl/LaserProfileFromTXYEFile.cpp +++ b/Source/Laser/LaserProfilesImpl/LaserProfileFromTXYEFile.cpp @@ -5,19 +5,34 @@ * License: BSD-3-Clause-LBNL */ #include "Laser/LaserProfiles.H" -#include "Utils/WarpX_Complex.H" -#include "Utils/WarpXConst.H" #include "Utils/WarpXUtil.H" +#include "Utils/WarpX_Complex.H" #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include -#include #include #include #include +#include +#include +#include +#include +#include +#include using namespace amrex; diff --git a/Source/Laser/LaserProfilesImpl/LaserProfileGaussian.cpp b/Source/Laser/LaserProfilesImpl/LaserProfileGaussian.cpp index 7fdeb2bc2d1..7fe446210d7 100644 --- a/Source/Laser/LaserProfilesImpl/LaserProfileGaussian.cpp +++ b/Source/Laser/LaserProfilesImpl/LaserProfileGaussian.cpp @@ -6,12 +6,24 @@ * License: BSD-3-Clause-LBNL */ #include "Laser/LaserProfiles.H" -#include "Utils/WarpX_Complex.H" #include "Utils/WarpXConst.H" #include "Utils/WarpXUtil.H" +#include "Utils/WarpX_Complex.H" -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include using namespace amrex; diff --git a/Source/Laser/LaserProfilesImpl/LaserProfileHarris.cpp b/Source/Laser/LaserProfilesImpl/LaserProfileHarris.cpp index 068a1409de6..0402dc73645 100644 --- a/Source/Laser/LaserProfilesImpl/LaserProfileHarris.cpp +++ b/Source/Laser/LaserProfilesImpl/LaserProfileHarris.cpp @@ -5,10 +5,16 @@ * License: BSD-3-Clause-LBNL */ #include "Laser/LaserProfiles.H" -#include "Utils/WarpX_Complex.H" #include "Utils/WarpXConst.H" #include "Utils/WarpXUtil.H" +#include "Utils/WarpX_Complex.H" + +#include +#include +#include +#include +#include using namespace amrex; diff --git a/Source/Parallelization/GuardCellManager.H b/Source/Parallelization/GuardCellManager.H index 1583c0bd622..cd2db4fb125 100644 --- a/Source/Parallelization/GuardCellManager.H +++ b/Source/Parallelization/GuardCellManager.H @@ -9,6 +9,8 @@ #include #include +#include +#include /** * \brief This class computes and stores the number of guard cells needed for diff --git a/Source/Parallelization/GuardCellManager.cpp b/Source/Parallelization/GuardCellManager.cpp index b569c43e79d..f1d3d7fd2d3 100644 --- a/Source/Parallelization/GuardCellManager.cpp +++ b/Source/Parallelization/GuardCellManager.cpp @@ -10,7 +10,12 @@ #include "Utils/WarpXConst.H" #include -#include +#include +#include +#include + +#include +#include using namespace amrex; diff --git a/Source/Parallelization/WarpXComm.cpp b/Source/Parallelization/WarpXComm.cpp index 2025bb9ce5e..9d148532327 100644 --- a/Source/Parallelization/WarpXComm.cpp +++ b/Source/Parallelization/WarpXComm.cpp @@ -6,20 +6,15 @@ * * License: BSD-3-Clause-LBNL */ -#include "WarpXComm_K.H" - #include "WarpX.H" + +#include "WarpXComm_K.H" #include "WarpXSumGuardCells.H" #include "Utils/CoarsenMR.H" #include "Utils/WarpXProfilerWrapper.H" #include "BoundaryConditions/PML.H" -#ifdef WARPX_USE_PSATD -# include "FieldSolver/SpectralSolver/SpectralKSpace.H" -#endif - #include -#include #include using namespace amrex; diff --git a/Source/Parser/WarpXParser.H b/Source/Parser/WarpXParser.H index 3e7a373a4cf..10207fe6cc8 100644 --- a/Source/Parser/WarpXParser.H +++ b/Source/Parser/WarpXParser.H @@ -7,21 +7,21 @@ #ifndef WARPX_PARSER_H_ #define WARPX_PARSER_H_ -#include -#include -#include -#include - -#include - #include "wp_parser_c.h" #include "wp_parser_y.h" +#include +#include + #ifdef AMREX_USE_OMP -#include +# include #endif -template class GpuParser; +#include +#include +#include +#include +#include class WarpXParser { diff --git a/Source/Parser/WarpXParserWrapper.def b/Source/Parser/WarpXParserWrapper.def new file mode 100644 index 00000000000..6e0f9bcebd0 --- /dev/null +++ b/Source/Parser/WarpXParserWrapper.def @@ -0,0 +1,9 @@ +/* Copyright 2021 Luca Fedeli + * + * This file is part of WarpX. + * + * License: BSD-3-Clause-LBNL + */ + +template struct HostDeviceParser; +template struct ParserWrapper; diff --git a/Source/Particles/PhysicalParticleContainer.cpp b/Source/Particles/PhysicalParticleContainer.cpp index be068f6a77f..68456293ee0 100644 --- a/Source/Particles/PhysicalParticleContainer.cpp +++ b/Source/Particles/PhysicalParticleContainer.cpp @@ -22,6 +22,7 @@ #include "Particles/Pusher/PushSelector.H" #include "Particles/Gather/GetExternalFields.H" #include "Utils/WarpXAlgorithmSelection.H" +#include "Initialization/InjectorPosition.H" #include #include diff --git a/Source/WarpX.cpp b/Source/WarpX.cpp index d3d65c94c0d..498de61e932 100644 --- a/Source/WarpX.cpp +++ b/Source/WarpX.cpp @@ -24,15 +24,16 @@ #include "Utils/WarpXUtil.H" #include "Utils/WarpXAlgorithmSelection.H" #include "Particles/MultiParticleContainer.H" -#include "Diagnostics/ReducedDiags/MultiReducedDiags.H" #include "FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.H" #include "Diagnostics/MultiDiagnostics.H" #include "Diagnostics/ReducedDiags/MultiReducedDiags.H" #include "Diagnostics/BackTransformedDiagnostic.H" #include "BoundaryConditions/PML.H" +#include "FieldSolver/FiniteDifferenceSolver/MacroscopicProperties/MacroscopicProperties.H" +#include "Filter/NCIGodfreyFilter.H" +#include "Parser/WarpXParserWrapper.H" #include -#include #include #ifdef BL_USE_SENSEI_INSITU # include @@ -59,6 +60,10 @@ #include #include #include +#ifdef AMREX_USE_EB +# include +# include +#endif #include #include From c4a319d00348346888afead3b119be44bcdb992c Mon Sep 17 00:00:00 2001 From: Luca Fedeli Date: Mon, 17 May 2021 12:20:53 +0200 Subject: [PATCH 19/58] progress with IWYU --- .../BreitWheelerEngineWrapper.def | 12 +++++ .../QEDInternals/QuantumSyncEngineWrapper.def | 12 +++++ Source/Particles/LaserParticleContainer.cpp | 3 ++ Source/Particles/MultiParticleContainer.H | 34 +++++++++----- Source/Particles/MultiParticleContainer.cpp | 45 +++++++++++++++++-- Source/Particles/PhotonParticleContainer.H | 15 ++++++- Source/Particles/PhotonParticleContainer.cpp | 32 ++++++++----- 7 files changed, 128 insertions(+), 25 deletions(-) create mode 100644 Source/Particles/ElementaryProcess/QEDInternals/BreitWheelerEngineWrapper.def create mode 100644 Source/Particles/ElementaryProcess/QEDInternals/QuantumSyncEngineWrapper.def diff --git a/Source/Particles/ElementaryProcess/QEDInternals/BreitWheelerEngineWrapper.def b/Source/Particles/ElementaryProcess/QEDInternals/BreitWheelerEngineWrapper.def new file mode 100644 index 00000000000..42ad2369409 --- /dev/null +++ b/Source/Particles/ElementaryProcess/QEDInternals/BreitWheelerEngineWrapper.def @@ -0,0 +1,12 @@ +/* Copyright 2021 Luca Fedeli + * + * This file is part of WarpX. + * + * License: BSD-3-Clause-LBNL + */ + +class BreitWheelerGetOpticalDepth; +class BreitWheelerEvolveOpticalDepth; +class BreitWheelerGeneratePairs; + +class BreitWheelerEngine; diff --git a/Source/Particles/ElementaryProcess/QEDInternals/QuantumSyncEngineWrapper.def b/Source/Particles/ElementaryProcess/QEDInternals/QuantumSyncEngineWrapper.def new file mode 100644 index 00000000000..eb79b0c07a2 --- /dev/null +++ b/Source/Particles/ElementaryProcess/QEDInternals/QuantumSyncEngineWrapper.def @@ -0,0 +1,12 @@ +/* Copyright 2021 Luca Fedeli + * + * This file is part of WarpX. + * + * License: BSD-3-Clause-LBNL + */ + +class QuantumSynchrotronGetOpticalDepth; +class QuantumSynchrotronEvolveOpticalDepth; +class QuantumSynchrotronPhotonEmission; + +class QuantumSynchrotronEngine; diff --git a/Source/Particles/LaserParticleContainer.cpp b/Source/Particles/LaserParticleContainer.cpp index 2cc9200752d..285fabf5761 100644 --- a/Source/Particles/LaserParticleContainer.cpp +++ b/Source/Particles/LaserParticleContainer.cpp @@ -6,6 +6,8 @@ * * License: BSD-3-Clause-LBNL */ +#include "LaserParticleContainer.H" + #include "WarpX.H" #include "Utils/WarpXConst.H" #include "Utils/WarpX_Complex.H" @@ -13,6 +15,7 @@ #include "Particles/Pusher/GetAndSetPosition.H" #include "Utils/WarpXProfilerWrapper.H" #include "Utils/WarpXAlgorithmSelection.H" +#include "Laser/LaserProfiles.H" #include diff --git a/Source/Particles/MultiParticleContainer.H b/Source/Particles/MultiParticleContainer.H index d6a7967b5dd..2dbc5cf6ca6 100644 --- a/Source/Particles/MultiParticleContainer.H +++ b/Source/Particles/MultiParticleContainer.H @@ -14,28 +14,40 @@ #include "Utils/WarpXUtil.H" #include "WarpXParticleContainer.H" #include "PhysicalParticleContainer.H" -#include "PhotonParticleContainer.H" -#include "LaserParticleContainer.H" #include "Parser/WarpXParserWrapper.H" #include "Particles/Collision/CollisionHandler.H" -#include "Particles/ParticleCreation/SmartUtils.H" -#include "Particles/ParticleCreation/SmartCopy.H" -#include "Particles/ParticleCreation/SmartCreate.H" -#include "Particles/ParticleCreation/FilterCopyTransform.H" -#include "Particles/RigidInjectedParticleContainer.H" +#include "Evolve/WarpXDtType.H" +#include "Utils/WarpXConst.H" #ifdef WARPX_QED # include "Particles/ElementaryProcess/QEDInternals/QedChiFunctions.H" -# include "Particles/ElementaryProcess/QEDInternals/BreitWheelerEngineWrapper.H" -# include "Particles/ElementaryProcess/QEDInternals/QuantumSyncEngineWrapper.H" +# include "Particles/ElementaryProcess/QEDInternals/BreitWheelerEngineWrapper.def" +# include "Particles/ElementaryProcess/QEDInternals/QuantumSyncEngineWrapper.def" #endif -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include -#include #include #include +#include +#include +#include +#include +#include /** * The class MultiParticleContainer holds multiple instances of the polymorphic diff --git a/Source/Particles/MultiParticleContainer.cpp b/Source/Particles/MultiParticleContainer.cpp index 5b3f1751f32..97ac16affb2 100644 --- a/Source/Particles/MultiParticleContainer.cpp +++ b/Source/Particles/MultiParticleContainer.cpp @@ -13,18 +13,57 @@ #include "SpeciesPhysicalProperties.H" #include "WarpX.H" #include "Utils/WarpXProfilerWrapper.H" +#include "Particles/ElementaryProcess/Ionization.H" +#include "Particles/LaserParticleContainer.H" +#include "Particles/ParticleCreation/FilterCopyTransform.H" +#include "Particles/ParticleCreation/SmartCopy.H" +#include "Particles/ParticleCreation/SmartCreate.H" +#include "Particles/ParticleCreation/SmartUtils.H" +#include "Particles/PhotonParticleContainer.H" +#include "Particles/PhysicalParticleContainer.H" +#include "Particles/RigidInjectedParticleContainer.H" +#include "Particles/WarpXParticleContainer.H" +#include "Utils/WarpXAlgorithmSelection.H" #ifdef WARPX_QED - #include "Particles/ElementaryProcess/QEDInternals/SchwingerProcessWrapper.H" - #include "Particles/ElementaryProcess/QEDSchwingerProcess.H" - #include "Particles/ParticleCreation/FilterCreateTransformFromFAB.H" +# include "Particles/ElementaryProcess/QEDInternals/BreitWheelerEngineWrapper.H" +# include "Particles/ElementaryProcess/QEDInternals/QuantumSyncEngineWrapper.H" +# include "Particles/ElementaryProcess/QEDInternals/SchwingerProcessWrapper.H" +# include "Particles/ElementaryProcess/QEDSchwingerProcess.H" +# include "Particles/ParticleCreation/FilterCreateTransformFromFAB.H" +# include "Particles/ElementaryProcess/QEDInternals/QedChiFunctions.H" #endif #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include #include +#include +#include +#include using namespace amrex; diff --git a/Source/Particles/PhotonParticleContainer.H b/Source/Particles/PhotonParticleContainer.H index 0cfb37729ed..7d6df0f9554 100644 --- a/Source/Particles/PhotonParticleContainer.H +++ b/Source/Particles/PhotonParticleContainer.H @@ -9,7 +9,20 @@ #define WARPX_PhotonParticleContainer_H_ #include "PhysicalParticleContainer.H" -#include +#include "Evolve/WarpXDtType.H" +#include "Particles/Gather/ScaleFields.H" +// _______________________________________________WarpX Forward declarations +#include "Particles/WarpXParticleContainer.def" +// ________________________________________________________________________ + +#include +#include +#include +#include +#include +#include + +#include /** * Photon particles have no mass, they deposit no charge, and see specific QED diff --git a/Source/Particles/PhotonParticleContainer.cpp b/Source/Particles/PhotonParticleContainer.cpp index bda0f984e34..1f3b71ed9d4 100644 --- a/Source/Particles/PhotonParticleContainer.cpp +++ b/Source/Particles/PhotonParticleContainer.cpp @@ -6,9 +6,13 @@ * License: BSD-3-Clause-LBNL */ #include "PhotonParticleContainer.H" -#include "Utils/WarpXConst.H" -#include "WarpX.H" +#include "WarpX.H" +#include "Particles/PhysicalParticleContainer.H" +#include "Particles/WarpXParticleContainer.H" +#ifdef WARPX_QED +# include "Particles/ElementaryProcess/QEDInternals/BreitWheelerEngineWrapper.H" +#endif // Import low-level single-particle kernels #include "Particles/Pusher/UpdatePositionPhoton.H" #include "Particles/Pusher/GetAndSetPosition.H" @@ -16,14 +20,22 @@ #include "Particles/Gather/FieldGather.H" #include "Particles/Gather/GetExternalFields.H" -#ifdef AMREX_USE_OMP -#include -#endif - -#include -#include -#include - +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include using namespace amrex; From 845a8e0e357dfe5c3efddf8d59318ac6be229b09 Mon Sep 17 00:00:00 2001 From: Luca Fedeli Date: Tue, 18 May 2021 04:52:48 +0200 Subject: [PATCH 20/58] progress with iwyu --- Source/Particles/Collision/CollisionBase.H | 9 ++- Source/Particles/Collision/CollisionBase.cpp | 2 + Source/Particles/Collision/CollisionHandler.H | 9 ++- .../Particles/Collision/CollisionHandler.cpp | 4 ++ .../Collision/PairWiseCoulombCollision.H | 10 +++- .../Collision/PairWiseCoulombCollision.cpp | 26 ++++++++ .../Particles/ElementaryProcess/Ionization.H | 11 ++++ .../ElementaryProcess/Ionization.cpp | 10 +++- .../QEDInternals/BreitWheelerEngineWrapper.H | 18 ++++-- .../BreitWheelerEngineWrapper.cpp | 13 ++-- .../QEDInternals/QuantumSyncEngineWrapper.H | 16 ++++- .../QEDInternals/QuantumSyncEngineWrapper.cpp | 12 +++- .../ElementaryProcess/QEDPairGeneration.H | 10 +++- .../ElementaryProcess/QEDPairGeneration.cpp | 10 +++- .../ElementaryProcess/QEDPhotonEmission.H | 10 ++++ .../ElementaryProcess/QEDPhotonEmission.cpp | 9 ++- Source/Particles/Gather/GetExternalFields.H | 12 +++- Source/Particles/Gather/GetExternalFields.cpp | 6 ++ Source/Particles/LaserParticleContainer.H | 12 +++- Source/Particles/LaserParticleContainer.cpp | 45 +++++++++++++- .../Particles/ParticleCreation/SmartUtils.H | 11 ++++ .../Particles/ParticleCreation/SmartUtils.cpp | 3 + Source/Particles/PhysicalParticleContainer.H | 29 +++++---- .../Particles/PhysicalParticleContainer.cpp | 59 ++++++++++++++++++- Source/Particles/Pusher/PushSelector.H | 1 + .../Particles/Resampling/LevelingThinning.H | 6 ++ .../Particles/Resampling/LevelingThinning.cpp | 16 ++++- Source/Particles/Resampling/Resampling.H | 9 ++- Source/Particles/Resampling/Resampling.cpp | 4 ++ .../Particles/Resampling/ResamplingTrigger.H | 5 +- .../Resampling/ResamplingTrigger.cpp | 6 ++ .../RigidInjectedParticleContainer.H | 14 +++++ .../RigidInjectedParticleContainer.cpp | 34 ++++++++--- Source/Particles/Sorting/Partition.cpp | 11 +++- Source/Particles/WarpXParticleContainer.H | 29 ++++++--- Source/Particles/WarpXParticleContainer.cpp | 39 +++++++++++- Source/Python/WarpXWrappers.cpp | 19 +++++- Source/Python/WarpXWrappers.h | 7 +-- 38 files changed, 481 insertions(+), 75 deletions(-) diff --git a/Source/Particles/Collision/CollisionBase.H b/Source/Particles/Collision/CollisionBase.H index f4047684767..56dd72b80d3 100644 --- a/Source/Particles/Collision/CollisionBase.H +++ b/Source/Particles/Collision/CollisionBase.H @@ -7,11 +7,14 @@ #ifndef WARPX_PARTICLES_COLLISION_COLLISIONBASE_H_ #define WARPX_PARTICLES_COLLISION_COLLISIONBASE_H_ -#include +// _______________________________________________WarpX Forward declarations +#include "Particles/MultiParticleContainer.def" +// ______________________________________________ + #include +#include -// Forward declaration needed -class MultiParticleContainer; +#include class CollisionBase { diff --git a/Source/Particles/Collision/CollisionBase.cpp b/Source/Particles/Collision/CollisionBase.cpp index 99822842a82..067a8c7e9d4 100644 --- a/Source/Particles/Collision/CollisionBase.cpp +++ b/Source/Particles/Collision/CollisionBase.cpp @@ -6,6 +6,8 @@ */ #include "CollisionBase.H" +#include + CollisionBase::CollisionBase (std::string collision_name) { diff --git a/Source/Particles/Collision/CollisionHandler.H b/Source/Particles/Collision/CollisionHandler.H index f4338e3bfb8..9826ce563d8 100644 --- a/Source/Particles/Collision/CollisionHandler.H +++ b/Source/Particles/Collision/CollisionHandler.H @@ -8,10 +8,15 @@ #define WARPX_PARTICLES_COLLISION_COLLISIONHANDLER_H_ #include "CollisionBase.H" +// _______________________________________________WarpX Forward declarations +#include "Particles/MultiParticleContainer.def" +// ______________________________________________ + #include +#include -// Forward declaration needed -class MultiParticleContainer; +#include +#include /* \brief CollisionHandler is a light weight class that contains the * list of collisions to be done. diff --git a/Source/Particles/Collision/CollisionHandler.cpp b/Source/Particles/Collision/CollisionHandler.cpp index c4ba94a4d08..1be2f69ed3f 100644 --- a/Source/Particles/Collision/CollisionHandler.cpp +++ b/Source/Particles/Collision/CollisionHandler.cpp @@ -5,9 +5,13 @@ * License: BSD-3-Clause-LBNL */ #include "CollisionHandler.H" + #include "PairWiseCoulombCollision.H" + #include +#include + CollisionHandler::CollisionHandler() { diff --git a/Source/Particles/Collision/PairWiseCoulombCollision.H b/Source/Particles/Collision/PairWiseCoulombCollision.H index 15ae329f6d7..2a68b61aee7 100644 --- a/Source/Particles/Collision/PairWiseCoulombCollision.H +++ b/Source/Particles/Collision/PairWiseCoulombCollision.H @@ -7,9 +7,15 @@ #ifndef WARPX_PARTICLES_COLLISION_PAIRWISECOULOMBCOLLISION_H_ #define WARPX_PARTICLES_COLLISION_PAIRWISECOULOMBCOLLISION_H_ -#include "Particles/MultiParticleContainer.H" #include "CollisionBase.H" -#include +// _______________________________________________WarpX Forward declarations +#include "Particles/MultiParticleContainer.def" +#include "Particles/WarpXParticleContainer.def" +// ______________________________________________ + +#include + +#include class PairWiseCoulombCollision : public CollisionBase diff --git a/Source/Particles/Collision/PairWiseCoulombCollision.cpp b/Source/Particles/Collision/PairWiseCoulombCollision.cpp index 79e0b83b072..d8ebcfe7bb6 100644 --- a/Source/Particles/Collision/PairWiseCoulombCollision.cpp +++ b/Source/Particles/Collision/PairWiseCoulombCollision.cpp @@ -9,8 +9,34 @@ #include "ElasticCollisionPerez.H" #include "Utils/ParticleUtils.H" #include "Utils/WarpXUtil.H" +#include "Particles/Collision/CollisionBase.H" +#include "Particles/MultiParticleContainer.H" +#include "Particles/WarpXParticleContainer.H" +#include "Utils/WarpXAlgorithmSelection.H" #include "WarpX.H" +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include + using namespace amrex::literals; PairWiseCoulombCollision::PairWiseCoulombCollision (std::string const collision_name) diff --git a/Source/Particles/ElementaryProcess/Ionization.H b/Source/Particles/ElementaryProcess/Ionization.H index e371be919eb..995b2bd548e 100644 --- a/Source/Particles/ElementaryProcess/Ionization.H +++ b/Source/Particles/ElementaryProcess/Ionization.H @@ -14,6 +14,17 @@ #include "Particles/Gather/FieldGather.H" #include "Particles/Pusher/GetAndSetPosition.H" +#include +#include +#include +#include +#include +#include +#include +#include + +#include + struct IonizationFilterFunc { const amrex::Real* AMREX_RESTRICT m_ionization_energies; diff --git a/Source/Particles/ElementaryProcess/Ionization.cpp b/Source/Particles/ElementaryProcess/Ionization.cpp index 189764e6b01..4e361e8e5df 100644 --- a/Source/Particles/ElementaryProcess/Ionization.cpp +++ b/Source/Particles/ElementaryProcess/Ionization.cpp @@ -6,9 +6,17 @@ * License: BSD-3-Clause-LBNL */ -#include "WarpX.H" #include "Particles/ElementaryProcess/Ionization.H" +#include "WarpX.H" + +#include +#include +#include + +#include +#include + IonizationFilterFunc::IonizationFilterFunc (const WarpXParIter& a_pti, int lev, amrex::IntVect ngE, amrex::FArrayBox const& exfab, amrex::FArrayBox const& eyfab, diff --git a/Source/Particles/ElementaryProcess/QEDInternals/BreitWheelerEngineWrapper.H b/Source/Particles/ElementaryProcess/QEDInternals/BreitWheelerEngineWrapper.H index 0a38e37f0be..16322a90a44 100644 --- a/Source/Particles/ElementaryProcess/QEDInternals/BreitWheelerEngineWrapper.H +++ b/Source/Particles/ElementaryProcess/QEDInternals/BreitWheelerEngineWrapper.H @@ -11,16 +11,26 @@ #include "QedChiFunctions.H" #include "Utils/WarpXConst.H" -#include -#include -#include +#include +#include +#include +#include +#include #include #include #include +#include +#include +#include +#include +#include +#include -#include #include +#include + +namespace amrex { struct RandomEngine; } // Aliases ============================= using BW_dndt_table_params = diff --git a/Source/Particles/ElementaryProcess/QEDInternals/BreitWheelerEngineWrapper.cpp b/Source/Particles/ElementaryProcess/QEDInternals/BreitWheelerEngineWrapper.cpp index 6904698105e..6da3103678c 100644 --- a/Source/Particles/ElementaryProcess/QEDInternals/BreitWheelerEngineWrapper.cpp +++ b/Source/Particles/ElementaryProcess/QEDInternals/BreitWheelerEngineWrapper.cpp @@ -6,18 +6,23 @@ */ #include "BreitWheelerEngineWrapper.H" -#include - //Functions needed to generate a new table #ifdef WARPX_QED_TABLE_GEN # include #endif -#include +#include +#include + +#include +#include -#include #include #include +#include +#include +#include +#include using namespace std; using namespace amrex; diff --git a/Source/Particles/ElementaryProcess/QEDInternals/QuantumSyncEngineWrapper.H b/Source/Particles/ElementaryProcess/QEDInternals/QuantumSyncEngineWrapper.H index 6a771dd6877..fe7bbfacd17 100644 --- a/Source/Particles/ElementaryProcess/QEDInternals/QuantumSyncEngineWrapper.H +++ b/Source/Particles/ElementaryProcess/QEDInternals/QuantumSyncEngineWrapper.H @@ -11,15 +11,25 @@ #include "QedChiFunctions.H" #include "Utils/WarpXConst.H" -#include #include -#include +#include +#include +#include +#include +#include #include #include +#include +#include +#include +#include +#include -#include #include +#include + +namespace amrex { struct RandomEngine; } // Aliases ============================= using QS_dndt_table_params = diff --git a/Source/Particles/ElementaryProcess/QEDInternals/QuantumSyncEngineWrapper.cpp b/Source/Particles/ElementaryProcess/QEDInternals/QuantumSyncEngineWrapper.cpp index 0019f042b86..b8234bcb028 100644 --- a/Source/Particles/ElementaryProcess/QEDInternals/QuantumSyncEngineWrapper.cpp +++ b/Source/Particles/ElementaryProcess/QEDInternals/QuantumSyncEngineWrapper.cpp @@ -6,16 +6,22 @@ */ #include "QuantumSyncEngineWrapper.H" +#include +#include + //Functions needed to generate a new table #ifdef WARPX_QED_TABLE_GEN # include #endif +#include "picsar_qed/physics/quantum_sync/quantum_sync_engine_tables.hpp" +#include "picsar_qed/utils/serialization.hpp" -#include - -#include #include #include +#include +#include +#include +#include using namespace std; using namespace amrex; diff --git a/Source/Particles/ElementaryProcess/QEDPairGeneration.H b/Source/Particles/ElementaryProcess/QEDPairGeneration.H index c1c695647b0..bfdc5ebb441 100644 --- a/Source/Particles/ElementaryProcess/QEDPairGeneration.H +++ b/Source/Particles/ElementaryProcess/QEDPairGeneration.H @@ -8,13 +8,21 @@ #ifndef QED_PAIR_GENERATION_H_ #define QED_PAIR_GENERATION_H_ -#include "Utils/WarpXConst.H" #include "Particles/WarpXParticleContainer.H" #include "Particles/Gather/GetExternalFields.H" #include "Particles/Gather/FieldGather.H" #include "Particles/Pusher/GetAndSetPosition.H" #include "QEDInternals/BreitWheelerEngineWrapper.H" +#include +#include +#include +#include +#include +#include +#include + + /** @file * * This file contains the implementation of the elementary process diff --git a/Source/Particles/ElementaryProcess/QEDPairGeneration.cpp b/Source/Particles/ElementaryProcess/QEDPairGeneration.cpp index 5daa6ca17fe..344fd973a42 100644 --- a/Source/Particles/ElementaryProcess/QEDPairGeneration.cpp +++ b/Source/Particles/ElementaryProcess/QEDPairGeneration.cpp @@ -6,9 +6,17 @@ * License: BSD-3-Clause-LBNL */ -#include "WarpX.H" #include "Particles/ElementaryProcess/QEDPairGeneration.H" +#include "WarpX.H" + +#include +#include +#include + +#include +#include + PairGenerationTransformFunc:: PairGenerationTransformFunc (BreitWheelerGeneratePairs const generate_functor, const WarpXParIter& a_pti, int lev, amrex::IntVect ngE, diff --git a/Source/Particles/ElementaryProcess/QEDPhotonEmission.H b/Source/Particles/ElementaryProcess/QEDPhotonEmission.H index d285a835c1a..0490665e879 100644 --- a/Source/Particles/ElementaryProcess/QEDPhotonEmission.H +++ b/Source/Particles/ElementaryProcess/QEDPhotonEmission.H @@ -15,6 +15,16 @@ #include "Particles/Pusher/GetAndSetPosition.H" #include "QEDInternals/QuantumSyncEngineWrapper.H" +#include +#include +#include +#include +#include +#include +#include +#include + +#include #include /** @file diff --git a/Source/Particles/ElementaryProcess/QEDPhotonEmission.cpp b/Source/Particles/ElementaryProcess/QEDPhotonEmission.cpp index 58a84d1cea2..3feec1ec703 100644 --- a/Source/Particles/ElementaryProcess/QEDPhotonEmission.cpp +++ b/Source/Particles/ElementaryProcess/QEDPhotonEmission.cpp @@ -6,9 +6,16 @@ * License: BSD-3-Clause-LBNL */ -#include "WarpX.H" #include "Particles/ElementaryProcess/QEDPhotonEmission.H" +#include "WarpX.H" + +#include +#include +#include + +#include + PhotonEmissionTransformFunc:: PhotonEmissionTransformFunc (QuantumSynchrotronGetOpticalDepth opt_depth_functor, int const opt_depth_runtime_comp, diff --git a/Source/Particles/Gather/GetExternalFields.H b/Source/Particles/Gather/GetExternalFields.H index 4bf520be955..44dee13920d 100644 --- a/Source/Particles/Gather/GetExternalFields.H +++ b/Source/Particles/Gather/GetExternalFields.H @@ -1,12 +1,18 @@ #ifndef WARPX_PARTICLES_GATHER_GETEXTERNALFIELDS_H_ #define WARPX_PARTICLES_GATHER_GETEXTERNALFIELDS_H_ -#include "Particles/WarpXParticleContainer.H" + #include "Particles/Pusher/GetAndSetPosition.H" +#include "Parser/WarpXParserWrapper.H" +// _______________________________________________WarpX Forward declarations +#include "Particles/WarpXParticleContainer.def" +// ________________________________________________________________________ #include - -#include +#include +#include +#include +#include enum ExternalFieldInitType { Constant, Parser }; diff --git a/Source/Particles/Gather/GetExternalFields.cpp b/Source/Particles/Gather/GetExternalFields.cpp index e8ff350d839..898a32f9a2e 100644 --- a/Source/Particles/Gather/GetExternalFields.cpp +++ b/Source/Particles/Gather/GetExternalFields.cpp @@ -1,8 +1,14 @@ #include "Particles/Gather/GetExternalFields.H" #include "WarpX.H" +#include "Particles/WarpXParticleContainer.H" #include "Particles/MultiParticleContainer.H" +#include + +#include + + GetExternalEField::GetExternalEField (const WarpXParIter& a_pti, int a_offset) noexcept { auto& warpx = WarpX::GetInstance(); diff --git a/Source/Particles/LaserParticleContainer.H b/Source/Particles/LaserParticleContainer.H index eabd64bbd0b..deda1aa48c9 100644 --- a/Source/Particles/LaserParticleContainer.H +++ b/Source/Particles/LaserParticleContainer.H @@ -10,13 +10,19 @@ #define WARPX_LaserParticleContainer_H_ #include "Laser/LaserProfiles.H" - +#include "Evolve/WarpXDtType.H" #include "WarpXParticleContainer.H" -#include "Utils/WarpXConst.H" -#include "Parser/WarpXParser.H" + +#include +#include +#include +#include +#include +#include #include #include +#include /** * The main method to inject a laser pulse in WarpX is to use an artificial diff --git a/Source/Particles/LaserParticleContainer.cpp b/Source/Particles/LaserParticleContainer.cpp index 285fabf5761..9443fa71212 100644 --- a/Source/Particles/LaserParticleContainer.cpp +++ b/Source/Particles/LaserParticleContainer.cpp @@ -10,19 +10,60 @@ #include "WarpX.H" #include "Utils/WarpXConst.H" -#include "Utils/WarpX_Complex.H" -#include "Particles/MultiParticleContainer.H" #include "Particles/Pusher/GetAndSetPosition.H" +#include "Particles/LaserParticleContainer.H" +#include "Particles/WarpXParticleContainer.H" #include "Utils/WarpXProfilerWrapper.H" #include "Utils/WarpXAlgorithmSelection.H" #include "Laser/LaserProfiles.H" +#include "Evolve/WarpXDtType.H" +#include "Utils/WarpXUtil.H" #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#ifdef AMREX_USE_OMP +# include +#endif #include #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include using namespace amrex; using namespace WarpXLaserProfiles; diff --git a/Source/Particles/ParticleCreation/SmartUtils.H b/Source/Particles/ParticleCreation/SmartUtils.H index 94a72f8822e..1784a5f1883 100644 --- a/Source/Particles/ParticleCreation/SmartUtils.H +++ b/Source/Particles/ParticleCreation/SmartUtils.H @@ -11,6 +11,17 @@ #include "DefaultInitialization.H" +#include +#include +#include +#include +#include +#include + +#include +#include +#include + using NameMap = std::map; using PolicyVec = amrex::Gpu::DeviceVector; diff --git a/Source/Particles/ParticleCreation/SmartUtils.cpp b/Source/Particles/ParticleCreation/SmartUtils.cpp index eeff136a738..2ed06b9a269 100644 --- a/Source/Particles/ParticleCreation/SmartUtils.cpp +++ b/Source/Particles/ParticleCreation/SmartUtils.cpp @@ -7,6 +7,9 @@ */ #include "SmartUtils.H" +#include +#include + PolicyVec getPolicies (const NameMap& names) noexcept { PolicyVec policies; diff --git a/Source/Particles/PhysicalParticleContainer.H b/Source/Particles/PhysicalParticleContainer.H index 84271a12403..43b68f8cf91 100644 --- a/Source/Particles/PhysicalParticleContainer.H +++ b/Source/Particles/PhysicalParticleContainer.H @@ -12,24 +12,31 @@ #include "Initialization/PlasmaInjector.H" #include "WarpXParticleContainer.H" -#include "Filter/NCIGodfreyFilter.H" #include "Particles/ElementaryProcess/Ionization.H" #include "Particles/Gather/ScaleFields.H" -#include "Utils/WarpXProfilerWrapper.H" -#include "Utils/WarpXAlgorithmSelection.H" - +#include "Evolve/WarpXDtType.H" +#include "Particles/Resampling/Resampling.H" #ifdef WARPX_QED -# include "Particles/ElementaryProcess/QEDInternals/QuantumSyncEngineWrapper.H" -# include "Particles/ElementaryProcess/QEDInternals/BreitWheelerEngineWrapper.H" -# include "Particles/ElementaryProcess/QEDInternals/QedChiFunctions.H" - # include "Particles/ElementaryProcess/QEDPairGeneration.H" # include "Particles/ElementaryProcess/QEDPhotonEmission.H" +// _______________________________________________WarpX Forward declarations +# include "Particles/ElementaryProcess/QEDInternals/QuantumSyncEngineWrapper.def" +# include "Particles/ElementaryProcess/QEDInternals/BreitWheelerEngineWrapper.def" +// ______________________________________________ #endif -#include - -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include /** * PhysicalParticleContainer is the ParticleContainer class containing plasma diff --git a/Source/Particles/PhysicalParticleContainer.cpp b/Source/Particles/PhysicalParticleContainer.cpp index 68456293ee0..f056b459d8a 100644 --- a/Source/Particles/PhysicalParticleContainer.cpp +++ b/Source/Particles/PhysicalParticleContainer.cpp @@ -23,19 +23,76 @@ #include "Particles/Gather/GetExternalFields.H" #include "Utils/WarpXAlgorithmSelection.H" #include "Initialization/InjectorPosition.H" +#include "Filter/NCIGodfreyFilter.H" +#include "Initialization/InjectorDensity.H" +#include "Initialization/InjectorMomentum.H" +#include "Particles/ElementaryProcess/QEDInternals/BreitWheelerEngineWrapper.H" +#include "Particles/ElementaryProcess/QEDInternals/QuantumSyncEngineWrapper.H" +#include "Particles/Pusher/UpdateMomentumBoris.H" +#include "Particles/Pusher/UpdateMomentumBorisWithRadiationReaction.H" +#include "Particles/Pusher/UpdateMomentumHigueraCary.H" +#include "Particles/Pusher/UpdateMomentumVay.H" +#include "Particles/SpeciesPhysicalProperties.H" +#include "Particles/WarpXParticleContainer.H" +#include "Utils/WarpXProfilerWrapper.H" #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #ifdef WARPX_USE_OPENPMD # include #endif +#ifdef AMREX_USE_OMP +# include +#endif + #include #include -#include #include +#include +#include +#include +#include +#include +#include +#include using namespace amrex; diff --git a/Source/Particles/Pusher/PushSelector.H b/Source/Particles/Pusher/PushSelector.H index bd469b51b4b..c7f227af8ab 100644 --- a/Source/Particles/Pusher/PushSelector.H +++ b/Source/Particles/Pusher/PushSelector.H @@ -7,6 +7,7 @@ #ifndef WARPX_PARTICLES_PUSHER_PUSHSELECTOR_H_ #define WARPX_PARTICLES_PUSHER_PUSHSELECTOR_H_ +#include "Utils/WarpXAlgorithmSelection.H" // Import low-level single-particle kernels #include "Particles/Pusher/UpdatePosition.H" #include "Particles/Pusher/UpdateMomentumBoris.H" diff --git a/Source/Particles/Resampling/LevelingThinning.H b/Source/Particles/Resampling/LevelingThinning.H index ecfd727c4c4..8570a137466 100644 --- a/Source/Particles/Resampling/LevelingThinning.H +++ b/Source/Particles/Resampling/LevelingThinning.H @@ -8,6 +8,12 @@ #define WARPX_LEVELING_THINNING_H_ #include "Resampling.H" +// _______________________________________________WarpX Forward declarations +#include "Particles/WarpXParticleContainer.def" +// ________________________________________________________________________ + +#include +#include /** * \brief This class implements the leveling thinning algorithm as defined in Muraviev, A., et al. diff --git a/Source/Particles/Resampling/LevelingThinning.cpp b/Source/Particles/Resampling/LevelingThinning.cpp index 4406b6adeb2..99cd72c115f 100644 --- a/Source/Particles/Resampling/LevelingThinning.cpp +++ b/Source/Particles/Resampling/LevelingThinning.cpp @@ -5,9 +5,23 @@ * License: BSD-3-Clause-LBNL */ #include "LevelingThinning.H" + #include "Utils/ParticleUtils.H" #include "Utils/WarpXUtil.H" - +#include "Particles/WarpXParticleContainer.H" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include LevelingThinning::LevelingThinning (const std::string species_name) diff --git a/Source/Particles/Resampling/Resampling.H b/Source/Particles/Resampling/Resampling.H index 7b08c39e399..d4d9271110d 100644 --- a/Source/Particles/Resampling/Resampling.H +++ b/Source/Particles/Resampling/Resampling.H @@ -8,9 +8,14 @@ #define WARPX_RESAMPLING_H_ #include "ResamplingTrigger.H" +// _______________________________________________WarpX Forward declarations +#include "Particles/WarpXParticleContainer.def" +// ________________________________________________________________________ -class WarpXParIter; // forward declaration -class WarpXParticleContainer; // forward declaration +#include + +#include +#include /** * \brief An empty base class from which specific resampling algorithms are derived. diff --git a/Source/Particles/Resampling/Resampling.cpp b/Source/Particles/Resampling/Resampling.cpp index 6c12ed49aaf..2034f291c11 100644 --- a/Source/Particles/Resampling/Resampling.cpp +++ b/Source/Particles/Resampling/Resampling.cpp @@ -5,8 +5,12 @@ * License: BSD-3-Clause-LBNL */ #include "Resampling.H" + #include "LevelingThinning.H" +#include +#include + Resampling::Resampling (const std::string species_name) { amrex::ParmParse pp_species_name(species_name); diff --git a/Source/Particles/Resampling/ResamplingTrigger.H b/Source/Particles/Resampling/ResamplingTrigger.H index 830b511f2bd..03850cf510f 100644 --- a/Source/Particles/Resampling/ResamplingTrigger.H +++ b/Source/Particles/Resampling/ResamplingTrigger.H @@ -9,7 +9,10 @@ #include "Utils/IntervalsParser.H" -#include +#include + +#include +#include /** * \brief This class is used to determine if resampling should be done at a given timestep for diff --git a/Source/Particles/Resampling/ResamplingTrigger.cpp b/Source/Particles/Resampling/ResamplingTrigger.cpp index 8d6726da7e2..44c1ef75be0 100644 --- a/Source/Particles/Resampling/ResamplingTrigger.cpp +++ b/Source/Particles/Resampling/ResamplingTrigger.cpp @@ -5,9 +5,15 @@ * License: BSD-3-Clause-LBNL */ #include "ResamplingTrigger.H" + #include "WarpX.H" #include "Utils/WarpXUtil.H" +#include +#include + +#include + ResamplingTrigger::ResamplingTrigger (const std::string species_name) { amrex::ParmParse pp_species_name(species_name); diff --git a/Source/Particles/RigidInjectedParticleContainer.H b/Source/Particles/RigidInjectedParticleContainer.H index 1f52c0861a2..539380fd7d3 100644 --- a/Source/Particles/RigidInjectedParticleContainer.H +++ b/Source/Particles/RigidInjectedParticleContainer.H @@ -9,7 +9,21 @@ #define WARPX_RigidInjectedParticleContainer_H_ #include "PhysicalParticleContainer.H" +#include "Evolve/WarpXDtType.H" +#include "Particles/Gather/ScaleFields.H" +// _______________________________________________WarpX Forward declarations +#include "WarpXParticleContainer.def" +// ________________________________________________________________________ + #include +#include +#include +#include +#include +#include + +#include +#include /** * When injecting a particle beam (typically for a plasma wakefield diff --git a/Source/Particles/RigidInjectedParticleContainer.cpp b/Source/Particles/RigidInjectedParticleContainer.cpp index fad735b7d8e..85ee8862953 100644 --- a/Source/Particles/RigidInjectedParticleContainer.cpp +++ b/Source/Particles/RigidInjectedParticleContainer.cpp @@ -7,9 +7,6 @@ * * License: BSD-3-Clause-LBNL */ -#ifdef AMREX_USE_OMP -# include -#endif #include "RigidInjectedParticleContainer.H" #include "WarpX.H" @@ -21,15 +18,38 @@ #include "Pusher/UpdateMomentumBorisWithRadiationReaction.H" #include "Pusher/UpdateMomentumHigueraCary.H" #include "Pusher/GetAndSetPosition.H" -#include "Gather/ScaleFields.H" #include "Gather/FieldGather.H" +#include "Particles/Gather/GetExternalFields.H" +#include "Particles/PhysicalParticleContainer.H" +#include "Particles/WarpXParticleContainer.H" +#include "Utils/WarpXProfilerWrapper.H" #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include -#include -#include #include - +#include +#include +#include using namespace amrex; diff --git a/Source/Particles/Sorting/Partition.cpp b/Source/Particles/Sorting/Partition.cpp index 455c3ffb81a..109b12daccd 100644 --- a/Source/Particles/Sorting/Partition.cpp +++ b/Source/Particles/Sorting/Partition.cpp @@ -7,9 +7,18 @@ #include "SortingUtils.H" #include "Particles/PhysicalParticleContainer.H" #include "WarpX.H" +#include "Particles/WarpXParticleContainer.H" +#include "Utils/WarpXProfilerWrapper.H" #include - +#include +#include +#include +#include +#include +#include + +#include using namespace amrex; diff --git a/Source/Particles/WarpXParticleContainer.H b/Source/Particles/WarpXParticleContainer.H index 07a9ddcd662..a3647865976 100644 --- a/Source/Particles/WarpXParticleContainer.H +++ b/Source/Particles/WarpXParticleContainer.H @@ -10,21 +10,35 @@ #ifndef WARPX_WarpXParticleContainer_H_ #define WARPX_WarpXParticleContainer_H_ -#include "Parser/WarpXParserWrapper.H" -#include "Utils/WarpXConst.H" #include "SpeciesPhysicalProperties.H" #include "Evolve/WarpXDtType.H" -#include "Particles/Resampling/Resampling.H" - +// _______________________________________________WarpX Forward declarations +#include "MultiParticleContainer.def" #ifdef WARPX_QED -# include "ElementaryProcess/QEDInternals/QuantumSyncEngineWrapper.H" -# include "ElementaryProcess/QEDInternals/BreitWheelerEngineWrapper.H" +# include "ElementaryProcess/QEDInternals/QuantumSyncEngineWrapper.def" +# include "ElementaryProcess/QEDInternals/BreitWheelerEngineWrapper.def" #endif +// ________________________________________________________________________ #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include +#include +#include +#include +#include +#include enum struct ParticleBC { none=0, absorbing }; @@ -104,9 +118,6 @@ public: } }; -// Forward-declaration needed by WarpXParticleContainer below -class MultiParticleContainer; - /** * WarpXParticleContainer is the base polymorphic class from which all concrete * particle container classes (that store a collection of particles) derive. Derived diff --git a/Source/Particles/WarpXParticleContainer.cpp b/Source/Particles/WarpXParticleContainer.cpp index d838704a294..52c872f18fc 100644 --- a/Source/Particles/WarpXParticleContainer.cpp +++ b/Source/Particles/WarpXParticleContainer.cpp @@ -7,7 +7,6 @@ * * License: BSD-3-Clause-LBNL */ -#include "MultiParticleContainer.H" #include "WarpXParticleContainer.H" #include "WarpX.H" #include "Utils/WarpXAlgorithmSelection.H" @@ -17,12 +16,48 @@ #include "Pusher/UpdatePosition.H" #include "Deposition/CurrentDeposition.H" #include "Deposition/ChargeDeposition.H" +#include "Utils/WarpXConst.H" +#include "Utils/WarpXProfilerWrapper.H" #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include -#include +#ifdef AMREX_USE_OMP +# include +#endif +#include +#include using namespace amrex; diff --git a/Source/Python/WarpXWrappers.cpp b/Source/Python/WarpXWrappers.cpp index 37e55652c69..b645ed14241 100644 --- a/Source/Python/WarpXWrappers.cpp +++ b/Source/Python/WarpXWrappers.cpp @@ -16,8 +16,23 @@ #include "BoundaryConditions/PML.H" #include -#include - +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include namespace { diff --git a/Source/Python/WarpXWrappers.h b/Source/Python/WarpXWrappers.h index 766d813c28f..443b2cbf139 100644 --- a/Source/Python/WarpXWrappers.h +++ b/Source/Python/WarpXWrappers.h @@ -8,16 +8,13 @@ #ifndef WARPX_WRAPPERS_H_ #define WARPX_WRAPPERS_H_ -#include -#include +#include +#include #ifdef BL_USE_MPI # include #endif -#include - - #ifdef __cplusplus extern "C" { #endif From 3510163dda0e8eb3999f10ae621aac79467aebdd Mon Sep 17 00:00:00 2001 From: Luca Fedeli Date: Thu, 20 May 2021 18:51:14 +0200 Subject: [PATCH 21/58] correct copyright --- Source/Diagnostics/ComputeDiagFunctors/ComputeDiagFunctor.def | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Source/Diagnostics/ComputeDiagFunctors/ComputeDiagFunctor.def b/Source/Diagnostics/ComputeDiagFunctors/ComputeDiagFunctor.def index ca4b730585f..958da378b47 100644 --- a/Source/Diagnostics/ComputeDiagFunctors/ComputeDiagFunctor.def +++ b/Source/Diagnostics/ComputeDiagFunctors/ComputeDiagFunctor.def @@ -1,5 +1,4 @@ -/* Copyright 2019 Andrew Myers, Axel Huebl, Maxence Thevenet - * Revathi Jambunathan, Weiqun Zhang +/* Copyright 2021 Luca Fedeli * * This file is part of WarpX. * From 6d17b5329b55d736171f8753add1040d9d8f1142 Mon Sep 17 00:00:00 2001 From: Luca Fedeli Date: Thu, 20 May 2021 19:22:14 +0200 Subject: [PATCH 22/58] fixed bug --- Source/Particles/PhysicalParticleContainer.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Source/Particles/PhysicalParticleContainer.cpp b/Source/Particles/PhysicalParticleContainer.cpp index f056b459d8a..adb4980eeef 100644 --- a/Source/Particles/PhysicalParticleContainer.cpp +++ b/Source/Particles/PhysicalParticleContainer.cpp @@ -26,8 +26,6 @@ #include "Filter/NCIGodfreyFilter.H" #include "Initialization/InjectorDensity.H" #include "Initialization/InjectorMomentum.H" -#include "Particles/ElementaryProcess/QEDInternals/BreitWheelerEngineWrapper.H" -#include "Particles/ElementaryProcess/QEDInternals/QuantumSyncEngineWrapper.H" #include "Particles/Pusher/UpdateMomentumBoris.H" #include "Particles/Pusher/UpdateMomentumBorisWithRadiationReaction.H" #include "Particles/Pusher/UpdateMomentumHigueraCary.H" @@ -35,6 +33,10 @@ #include "Particles/SpeciesPhysicalProperties.H" #include "Particles/WarpXParticleContainer.H" #include "Utils/WarpXProfilerWrapper.H" +#ifdef WARPX_QED +# include "Particles/ElementaryProcess/QEDInternals/BreitWheelerEngineWrapper.H" +# include "Particles/ElementaryProcess/QEDInternals/QuantumSyncEngineWrapper.H" +#endif #include #include From 8aea73fa7689a6bfdf614795d325f0d3f3d1ed45 Mon Sep 17 00:00:00 2001 From: Luca Fedeli Date: Thu, 20 May 2021 19:39:51 +0200 Subject: [PATCH 23/58] fixed bugs --- Source/BoundaryConditions/PML.cpp | 2 +- Source/BoundaryConditions/WarpXEvolvePML.cpp | 2 +- Source/Diagnostics/BackTransformedDiagnostic.cpp | 2 +- Source/Diagnostics/ComputeDiagFunctors/BackTransformFunctor.cpp | 2 +- Source/Diagnostics/ParticleIO.cpp | 2 +- Source/Diagnostics/ReducedDiags/ParticleHistogram.cpp | 2 +- Source/FieldSolver/ElectrostaticSolver.cpp | 2 +- .../FiniteDifferenceSolver/ApplySilverMuellerBoundary.cpp | 2 +- Source/FieldSolver/FiniteDifferenceSolver/ComputeDivE.cpp | 2 +- Source/FieldSolver/FiniteDifferenceSolver/EvolveB.cpp | 2 +- Source/FieldSolver/FiniteDifferenceSolver/EvolveBPML.cpp | 2 +- Source/FieldSolver/FiniteDifferenceSolver/EvolveE.cpp | 2 +- Source/FieldSolver/FiniteDifferenceSolver/EvolveEPML.cpp | 2 +- Source/FieldSolver/FiniteDifferenceSolver/EvolveF.cpp | 2 +- Source/FieldSolver/FiniteDifferenceSolver/EvolveFPML.cpp | 2 +- Source/FieldSolver/FiniteDifferenceSolver/EvolveG.cpp | 2 +- .../FieldSolver/FiniteDifferenceSolver/MacroscopicEvolveE.cpp | 2 +- .../MacroscopicProperties/MacroscopicProperties.cpp | 2 +- .../SpectralAlgorithms/ComovingPsatdAlgorithm.cpp | 2 +- .../SpectralSolver/SpectralAlgorithms/PMLPsatdAlgorithm.cpp | 2 +- .../SpectralSolver/SpectralAlgorithms/PsatdAlgorithm.cpp | 2 +- .../SpectralSolver/SpectralAlgorithms/SpectralBaseAlgorithm.cpp | 2 +- Source/FieldSolver/SpectralSolver/SpectralFieldData.cpp | 2 +- Source/FieldSolver/SpectralSolver/SpectralKSpace.cpp | 2 +- Source/FieldSolver/WarpXPushFieldsEM.cpp | 2 +- Source/FieldSolver/WarpX_QED_Field_Pushers.cpp | 2 +- Source/Initialization/WarpXInitData.cpp | 2 +- Source/Laser/LaserProfilesImpl/LaserProfileFieldFunction.cpp | 2 +- Source/Laser/LaserProfilesImpl/LaserProfileFromTXYEFile.cpp | 2 +- Source/Laser/LaserProfilesImpl/LaserProfileGaussian.cpp | 2 +- Source/Laser/LaserProfilesImpl/LaserProfileHarris.cpp | 2 +- Source/Particles/Collision/PairWiseCoulombCollision.cpp | 2 +- Source/Particles/ElementaryProcess/QEDPhotonEmission.H | 2 +- Source/Particles/LaserParticleContainer.cpp | 2 +- Source/Particles/ParticleCreation/SmartUtils.H | 2 +- Source/Particles/PhotonParticleContainer.cpp | 2 +- Source/Particles/PhysicalParticleContainer.cpp | 2 +- Source/Particles/Resampling/LevelingThinning.cpp | 2 +- Source/Particles/RigidInjectedParticleContainer.cpp | 2 +- Source/Particles/Sorting/Partition.cpp | 2 +- Source/Particles/WarpXParticleContainer.cpp | 2 +- Source/Utils/CoarsenIO.cpp | 2 +- Source/Utils/CoarsenMR.cpp | 2 +- Source/Utils/Interpolate.cpp | 2 +- Source/Utils/ParticleUtils.cpp | 2 +- Source/Utils/WarpXMovingWindow.cpp | 1 - Source/Utils/WarpXUtil.cpp | 2 +- Source/WarpX.cpp | 2 +- 48 files changed, 47 insertions(+), 48 deletions(-) diff --git a/Source/BoundaryConditions/PML.cpp b/Source/BoundaryConditions/PML.cpp index 016de485d73..cebfe5131d8 100644 --- a/Source/BoundaryConditions/PML.cpp +++ b/Source/BoundaryConditions/PML.cpp @@ -31,7 +31,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/Source/BoundaryConditions/WarpXEvolvePML.cpp b/Source/BoundaryConditions/WarpXEvolvePML.cpp index 800979be2ad..e51d7aa9f8a 100644 --- a/Source/BoundaryConditions/WarpXEvolvePML.cpp +++ b/Source/BoundaryConditions/WarpXEvolvePML.cpp @@ -19,7 +19,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/Source/Diagnostics/BackTransformedDiagnostic.cpp b/Source/Diagnostics/BackTransformedDiagnostic.cpp index 5dcec5ed372..7c123544a65 100644 --- a/Source/Diagnostics/BackTransformedDiagnostic.cpp +++ b/Source/Diagnostics/BackTransformedDiagnostic.cpp @@ -22,7 +22,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/Source/Diagnostics/ComputeDiagFunctors/BackTransformFunctor.cpp b/Source/Diagnostics/ComputeDiagFunctors/BackTransformFunctor.cpp index 9ab4a013304..4226983a30c 100644 --- a/Source/Diagnostics/ComputeDiagFunctors/BackTransformFunctor.cpp +++ b/Source/Diagnostics/ComputeDiagFunctors/BackTransformFunctor.cpp @@ -12,7 +12,7 @@ #include // for FabA... #include // for Geom... #include // for notI... -#include // for Para... +#include // for Para... #include // for AMRE... #include // for MFIter #include // for Mult... diff --git a/Source/Diagnostics/ParticleIO.cpp b/Source/Diagnostics/ParticleIO.cpp index f150f9b1585..e391cbf8bef 100644 --- a/Source/Diagnostics/ParticleIO.cpp +++ b/Source/Diagnostics/ParticleIO.cpp @@ -20,7 +20,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/Source/Diagnostics/ReducedDiags/ParticleHistogram.cpp b/Source/Diagnostics/ReducedDiags/ParticleHistogram.cpp index e8a8ed0331e..f5e6fd33318 100644 --- a/Source/Diagnostics/ReducedDiags/ParticleHistogram.cpp +++ b/Source/Diagnostics/ReducedDiags/ParticleHistogram.cpp @@ -24,7 +24,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/Source/FieldSolver/ElectrostaticSolver.cpp b/Source/FieldSolver/ElectrostaticSolver.cpp index 536094af4b5..24bcc9b8087 100644 --- a/Source/FieldSolver/ElectrostaticSolver.cpp +++ b/Source/FieldSolver/ElectrostaticSolver.cpp @@ -27,7 +27,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/Source/FieldSolver/FiniteDifferenceSolver/ApplySilverMuellerBoundary.cpp b/Source/FieldSolver/FiniteDifferenceSolver/ApplySilverMuellerBoundary.cpp index c9ea9956191..cedfe467524 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/ApplySilverMuellerBoundary.cpp +++ b/Source/FieldSolver/FiniteDifferenceSolver/ApplySilverMuellerBoundary.cpp @@ -18,7 +18,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/Source/FieldSolver/FiniteDifferenceSolver/ComputeDivE.cpp b/Source/FieldSolver/FiniteDifferenceSolver/ComputeDivE.cpp index 947d5c1c8cc..487377227f7 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/ComputeDivE.cpp +++ b/Source/FieldSolver/FiniteDifferenceSolver/ComputeDivE.cpp @@ -21,7 +21,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/Source/FieldSolver/FiniteDifferenceSolver/EvolveB.cpp b/Source/FieldSolver/FiniteDifferenceSolver/EvolveB.cpp index 299e928f7b7..904e8ed4959 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/EvolveB.cpp +++ b/Source/FieldSolver/FiniteDifferenceSolver/EvolveB.cpp @@ -25,7 +25,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/Source/FieldSolver/FiniteDifferenceSolver/EvolveBPML.cpp b/Source/FieldSolver/FiniteDifferenceSolver/EvolveBPML.cpp index a7aabfe7b08..baa8f6668fe 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/EvolveBPML.cpp +++ b/Source/FieldSolver/FiniteDifferenceSolver/EvolveBPML.cpp @@ -22,7 +22,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/Source/FieldSolver/FiniteDifferenceSolver/EvolveE.cpp b/Source/FieldSolver/FiniteDifferenceSolver/EvolveE.cpp index be239705137..29e5cf7443e 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/EvolveE.cpp +++ b/Source/FieldSolver/FiniteDifferenceSolver/EvolveE.cpp @@ -25,7 +25,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/Source/FieldSolver/FiniteDifferenceSolver/EvolveEPML.cpp b/Source/FieldSolver/FiniteDifferenceSolver/EvolveEPML.cpp index 0447fc9f9c5..bc430ffbbcc 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/EvolveEPML.cpp +++ b/Source/FieldSolver/FiniteDifferenceSolver/EvolveEPML.cpp @@ -25,7 +25,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/Source/FieldSolver/FiniteDifferenceSolver/EvolveF.cpp b/Source/FieldSolver/FiniteDifferenceSolver/EvolveF.cpp index 140ab4357f3..e28097b112a 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/EvolveF.cpp +++ b/Source/FieldSolver/FiniteDifferenceSolver/EvolveF.cpp @@ -22,7 +22,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/Source/FieldSolver/FiniteDifferenceSolver/EvolveFPML.cpp b/Source/FieldSolver/FiniteDifferenceSolver/EvolveFPML.cpp index 99ebd543401..f90fceb8f7c 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/EvolveFPML.cpp +++ b/Source/FieldSolver/FiniteDifferenceSolver/EvolveFPML.cpp @@ -22,7 +22,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/Source/FieldSolver/FiniteDifferenceSolver/EvolveG.cpp b/Source/FieldSolver/FiniteDifferenceSolver/EvolveG.cpp index a1800bc655a..a060b64ff71 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/EvolveG.cpp +++ b/Source/FieldSolver/FiniteDifferenceSolver/EvolveG.cpp @@ -21,7 +21,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/Source/FieldSolver/FiniteDifferenceSolver/MacroscopicEvolveE.cpp b/Source/FieldSolver/FiniteDifferenceSolver/MacroscopicEvolveE.cpp index 5227550cf92..b32f3de2b2c 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/MacroscopicEvolveE.cpp +++ b/Source/FieldSolver/FiniteDifferenceSolver/MacroscopicEvolveE.cpp @@ -18,7 +18,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/Source/FieldSolver/FiniteDifferenceSolver/MacroscopicProperties/MacroscopicProperties.cpp b/Source/FieldSolver/FiniteDifferenceSolver/MacroscopicProperties/MacroscopicProperties.cpp index d81c5ce0d90..662d87ca563 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/MacroscopicProperties/MacroscopicProperties.cpp +++ b/Source/FieldSolver/FiniteDifferenceSolver/MacroscopicProperties/MacroscopicProperties.cpp @@ -9,7 +9,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/ComovingPsatdAlgorithm.cpp b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/ComovingPsatdAlgorithm.cpp index f5f43c771c4..64920d32518 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/ComovingPsatdAlgorithm.cpp +++ b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/ComovingPsatdAlgorithm.cpp @@ -9,7 +9,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PMLPsatdAlgorithm.cpp b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PMLPsatdAlgorithm.cpp index 86e0f768f90..1be5094bd02 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PMLPsatdAlgorithm.cpp +++ b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PMLPsatdAlgorithm.cpp @@ -17,7 +17,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithm.cpp b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithm.cpp index 83e8aaec761..8a5b791ab2d 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithm.cpp +++ b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithm.cpp @@ -14,7 +14,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/SpectralBaseAlgorithm.cpp b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/SpectralBaseAlgorithm.cpp index e3640ee6ca6..d281bbedc70 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/SpectralBaseAlgorithm.cpp +++ b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/SpectralBaseAlgorithm.cpp @@ -15,7 +15,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/Source/FieldSolver/SpectralSolver/SpectralFieldData.cpp b/Source/FieldSolver/SpectralSolver/SpectralFieldData.cpp index 126ef3e5804..455f83925a8 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralFieldData.cpp +++ b/Source/FieldSolver/SpectralSolver/SpectralFieldData.cpp @@ -17,7 +17,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/Source/FieldSolver/SpectralSolver/SpectralKSpace.cpp b/Source/FieldSolver/SpectralSolver/SpectralKSpace.cpp index 16774496574..1c2d1e065b3 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralKSpace.cpp +++ b/Source/FieldSolver/SpectralSolver/SpectralKSpace.cpp @@ -14,7 +14,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/Source/FieldSolver/WarpXPushFieldsEM.cpp b/Source/FieldSolver/WarpXPushFieldsEM.cpp index f8a63a87ef2..79e4ec7fe7b 100644 --- a/Source/FieldSolver/WarpXPushFieldsEM.cpp +++ b/Source/FieldSolver/WarpXPushFieldsEM.cpp @@ -34,7 +34,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/Source/FieldSolver/WarpX_QED_Field_Pushers.cpp b/Source/FieldSolver/WarpX_QED_Field_Pushers.cpp index 8f667dfecdc..d49e4053c2c 100644 --- a/Source/FieldSolver/WarpX_QED_Field_Pushers.cpp +++ b/Source/FieldSolver/WarpX_QED_Field_Pushers.cpp @@ -18,7 +18,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/Source/Initialization/WarpXInitData.cpp b/Source/Initialization/WarpXInitData.cpp index f6fbc563279..2fd8eaa2ee0 100644 --- a/Source/Initialization/WarpXInitData.cpp +++ b/Source/Initialization/WarpXInitData.cpp @@ -37,7 +37,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/Source/Laser/LaserProfilesImpl/LaserProfileFieldFunction.cpp b/Source/Laser/LaserProfilesImpl/LaserProfileFieldFunction.cpp index bd3beef4c70..d8ed19173e9 100644 --- a/Source/Laser/LaserProfilesImpl/LaserProfileFieldFunction.cpp +++ b/Source/Laser/LaserProfilesImpl/LaserProfileFieldFunction.cpp @@ -11,7 +11,7 @@ #include #include -#include +#include #include #include #include diff --git a/Source/Laser/LaserProfilesImpl/LaserProfileFromTXYEFile.cpp b/Source/Laser/LaserProfilesImpl/LaserProfileFromTXYEFile.cpp index 87b9f73ae24..91b8801d2ec 100644 --- a/Source/Laser/LaserProfilesImpl/LaserProfileFromTXYEFile.cpp +++ b/Source/Laser/LaserProfilesImpl/LaserProfileFromTXYEFile.cpp @@ -16,7 +16,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/Source/Laser/LaserProfilesImpl/LaserProfileGaussian.cpp b/Source/Laser/LaserProfilesImpl/LaserProfileGaussian.cpp index 7fe446210d7..371b0324795 100644 --- a/Source/Laser/LaserProfilesImpl/LaserProfileGaussian.cpp +++ b/Source/Laser/LaserProfilesImpl/LaserProfileGaussian.cpp @@ -14,7 +14,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/Source/Laser/LaserProfilesImpl/LaserProfileHarris.cpp b/Source/Laser/LaserProfilesImpl/LaserProfileHarris.cpp index 0402dc73645..a174606a504 100644 --- a/Source/Laser/LaserProfilesImpl/LaserProfileHarris.cpp +++ b/Source/Laser/LaserProfilesImpl/LaserProfileHarris.cpp @@ -10,7 +10,7 @@ #include "Utils/WarpX_Complex.H" #include -#include +#include #include #include diff --git a/Source/Particles/Collision/PairWiseCoulombCollision.cpp b/Source/Particles/Collision/PairWiseCoulombCollision.cpp index d8ebcfe7bb6..f5f15a2785c 100644 --- a/Source/Particles/Collision/PairWiseCoulombCollision.cpp +++ b/Source/Particles/Collision/PairWiseCoulombCollision.cpp @@ -24,7 +24,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/Source/Particles/ElementaryProcess/QEDPhotonEmission.H b/Source/Particles/ElementaryProcess/QEDPhotonEmission.H index 0490665e879..9ab29023aef 100644 --- a/Source/Particles/ElementaryProcess/QEDPhotonEmission.H +++ b/Source/Particles/ElementaryProcess/QEDPhotonEmission.H @@ -19,7 +19,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/Source/Particles/LaserParticleContainer.cpp b/Source/Particles/LaserParticleContainer.cpp index 9443fa71212..c2952ea3fa7 100644 --- a/Source/Particles/LaserParticleContainer.cpp +++ b/Source/Particles/LaserParticleContainer.cpp @@ -31,7 +31,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/Source/Particles/ParticleCreation/SmartUtils.H b/Source/Particles/ParticleCreation/SmartUtils.H index 1784a5f1883..ee1dc321cef 100644 --- a/Source/Particles/ParticleCreation/SmartUtils.H +++ b/Source/Particles/ParticleCreation/SmartUtils.H @@ -13,7 +13,7 @@ #include #include -#include +#include #include #include #include diff --git a/Source/Particles/PhotonParticleContainer.cpp b/Source/Particles/PhotonParticleContainer.cpp index 1f3b71ed9d4..78862f01978 100644 --- a/Source/Particles/PhotonParticleContainer.cpp +++ b/Source/Particles/PhotonParticleContainer.cpp @@ -28,7 +28,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/Source/Particles/PhysicalParticleContainer.cpp b/Source/Particles/PhysicalParticleContainer.cpp index adb4980eeef..e7e17508c5b 100644 --- a/Source/Particles/PhysicalParticleContainer.cpp +++ b/Source/Particles/PhysicalParticleContainer.cpp @@ -56,7 +56,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/Source/Particles/Resampling/LevelingThinning.cpp b/Source/Particles/Resampling/LevelingThinning.cpp index 99cd72c115f..7575766c3e5 100644 --- a/Source/Particles/Resampling/LevelingThinning.cpp +++ b/Source/Particles/Resampling/LevelingThinning.cpp @@ -14,7 +14,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/Source/Particles/RigidInjectedParticleContainer.cpp b/Source/Particles/RigidInjectedParticleContainer.cpp index 85ee8862953..cdef638840c 100644 --- a/Source/Particles/RigidInjectedParticleContainer.cpp +++ b/Source/Particles/RigidInjectedParticleContainer.cpp @@ -37,7 +37,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/Source/Particles/Sorting/Partition.cpp b/Source/Particles/Sorting/Partition.cpp index 109b12daccd..d6021191200 100644 --- a/Source/Particles/Sorting/Partition.cpp +++ b/Source/Particles/Sorting/Partition.cpp @@ -14,7 +14,7 @@ #include #include #include -#include +#include #include #include diff --git a/Source/Particles/WarpXParticleContainer.cpp b/Source/Particles/WarpXParticleContainer.cpp index 52c872f18fc..572977a35f9 100644 --- a/Source/Particles/WarpXParticleContainer.cpp +++ b/Source/Particles/WarpXParticleContainer.cpp @@ -33,7 +33,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/Source/Utils/CoarsenIO.cpp b/Source/Utils/CoarsenIO.cpp index a2e27a250a1..33a0d024636 100644 --- a/Source/Utils/CoarsenIO.cpp +++ b/Source/Utils/CoarsenIO.cpp @@ -8,7 +8,7 @@ #include #include #include -#include +#include #include #include diff --git a/Source/Utils/CoarsenMR.cpp b/Source/Utils/CoarsenMR.cpp index fce3b488b10..cc1095f93d8 100644 --- a/Source/Utils/CoarsenMR.cpp +++ b/Source/Utils/CoarsenMR.cpp @@ -5,7 +5,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/Source/Utils/Interpolate.cpp b/Source/Utils/Interpolate.cpp index 393872e9401..3c7e403fddd 100644 --- a/Source/Utils/Interpolate.cpp +++ b/Source/Utils/Interpolate.cpp @@ -9,7 +9,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/Source/Utils/ParticleUtils.cpp b/Source/Utils/ParticleUtils.cpp index 3986dfbda88..c31f84ba2db 100644 --- a/Source/Utils/ParticleUtils.cpp +++ b/Source/Utils/ParticleUtils.cpp @@ -12,7 +12,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/Source/Utils/WarpXMovingWindow.cpp b/Source/Utils/WarpXMovingWindow.cpp index fb22fbb3c2e..5d034286c79 100644 --- a/Source/Utils/WarpXMovingWindow.cpp +++ b/Source/Utils/WarpXMovingWindow.cpp @@ -25,7 +25,6 @@ #include // for Geometry #include // for notInLaunchRegion #include // for AMREX_PARALLEL_FOR_4D -#include // for ParallelFor #include // for AMREX_GPU_DEVICE #include // for amrex #include // for IndexType diff --git a/Source/Utils/WarpXUtil.cpp b/Source/Utils/WarpXUtil.cpp index 45dc2677aca..f0b5cbde151 100644 --- a/Source/Utils/WarpXUtil.cpp +++ b/Source/Utils/WarpXUtil.cpp @@ -21,7 +21,7 @@ #include #include #include -#include +#include #include #include diff --git a/Source/WarpX.cpp b/Source/WarpX.cpp index 6799bd18bdf..004ba66e8b2 100644 --- a/Source/WarpX.cpp +++ b/Source/WarpX.cpp @@ -47,7 +47,7 @@ #include #include #include -#include +#include #include #include #include From 90ed4cec3827c4474d71579963f865197b83a330 Mon Sep 17 00:00:00 2001 From: Luca Fedeli Date: Fri, 21 May 2021 03:34:33 +0200 Subject: [PATCH 24/58] fix missing include --- Source/Diagnostics/ComputeDiagFunctors/CellCenterFunctor.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/Diagnostics/ComputeDiagFunctors/CellCenterFunctor.cpp b/Source/Diagnostics/ComputeDiagFunctors/CellCenterFunctor.cpp index 7da657de245..5ca0c3edce0 100644 --- a/Source/Diagnostics/ComputeDiagFunctors/CellCenterFunctor.cpp +++ b/Source/Diagnostics/ComputeDiagFunctors/CellCenterFunctor.cpp @@ -1,6 +1,9 @@ #include "CellCenterFunctor.H" #include "Utils/CoarsenIO.H" +#ifdef WARPX_DIM_RZ +# include "WarpX.H" +#endif #include #include From ff9600364f829104d3359a02c7f73022903beb0c Mon Sep 17 00:00:00 2001 From: Luca Fedeli Date: Sat, 22 May 2021 11:45:53 +0200 Subject: [PATCH 25/58] fixed bug --- Source/Diagnostics/ComputeDiagFunctors/DivEFunctor.cpp | 3 +++ Source/Diagnostics/ComputeDiagFunctors/RhoFunctor.cpp | 1 + 2 files changed, 4 insertions(+) diff --git a/Source/Diagnostics/ComputeDiagFunctors/DivEFunctor.cpp b/Source/Diagnostics/ComputeDiagFunctors/DivEFunctor.cpp index 6e1b2d75d63..f047f41ad73 100644 --- a/Source/Diagnostics/ComputeDiagFunctors/DivEFunctor.cpp +++ b/Source/Diagnostics/ComputeDiagFunctors/DivEFunctor.cpp @@ -2,6 +2,9 @@ #include "WarpX.H" #include "Utils/CoarsenIO.H" +#ifdef WARPX_DIM_RZ +# include "WarpXAlgorithmSelection.H" +#endif #include #include diff --git a/Source/Diagnostics/ComputeDiagFunctors/RhoFunctor.cpp b/Source/Diagnostics/ComputeDiagFunctors/RhoFunctor.cpp index 21fa160d1f3..467374ad4d5 100644 --- a/Source/Diagnostics/ComputeDiagFunctors/RhoFunctor.cpp +++ b/Source/Diagnostics/ComputeDiagFunctors/RhoFunctor.cpp @@ -7,6 +7,7 @@ #include "Particles/WarpXParticleContainer.H" #if (defined WARPX_DIM_RZ) && (defined WARPX_USE_PSATD) #include "FieldSolver/SpectralSolver/SpectralFieldData.H" + #include "FieldSolver/SpectralSolver/SpectralSolverRZ.H" #endif #include From 4ec73cb789c4e53fd5aa8805613d6288f7c53491 Mon Sep 17 00:00:00 2001 From: Luca Fedeli Date: Sat, 22 May 2021 12:02:47 +0200 Subject: [PATCH 26/58] fix bug --- Source/Diagnostics/ComputeDiagFunctors/DivEFunctor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Diagnostics/ComputeDiagFunctors/DivEFunctor.cpp b/Source/Diagnostics/ComputeDiagFunctors/DivEFunctor.cpp index f047f41ad73..b1f16646399 100644 --- a/Source/Diagnostics/ComputeDiagFunctors/DivEFunctor.cpp +++ b/Source/Diagnostics/ComputeDiagFunctors/DivEFunctor.cpp @@ -3,7 +3,7 @@ #include "WarpX.H" #include "Utils/CoarsenIO.H" #ifdef WARPX_DIM_RZ -# include "WarpXAlgorithmSelection.H" +# include "Utilis/WarpXAlgorithmSelection.H" #endif #include From f3ca90a07fb664572d702e7e5140a1ea499c5d96 Mon Sep 17 00:00:00 2001 From: Luca Fedeli Date: Sat, 22 May 2021 12:37:40 +0200 Subject: [PATCH 27/58] fix bug introduced during last bugfix --- Source/Diagnostics/ComputeDiagFunctors/DivEFunctor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Diagnostics/ComputeDiagFunctors/DivEFunctor.cpp b/Source/Diagnostics/ComputeDiagFunctors/DivEFunctor.cpp index b1f16646399..c0c744db706 100644 --- a/Source/Diagnostics/ComputeDiagFunctors/DivEFunctor.cpp +++ b/Source/Diagnostics/ComputeDiagFunctors/DivEFunctor.cpp @@ -3,7 +3,7 @@ #include "WarpX.H" #include "Utils/CoarsenIO.H" #ifdef WARPX_DIM_RZ -# include "Utilis/WarpXAlgorithmSelection.H" +# include "Utils/WarpXAlgorithmSelection.H" #endif #include From ed357165fe7109899108c776bf23bb261ac0e794 Mon Sep 17 00:00:00 2001 From: Luca Fedeli Date: Sat, 22 May 2021 12:41:38 +0200 Subject: [PATCH 28/58] use iwyu on newly added files --- Source/BoundaryConditions/WarpXFieldBoundaries.cpp | 8 ++++++-- Source/BoundaryConditions/WarpX_PEC.H | 10 ++++++++++ Source/BoundaryConditions/WarpX_PEC.cpp | 12 ++++++++++-- 3 files changed, 26 insertions(+), 4 deletions(-) diff --git a/Source/BoundaryConditions/WarpXFieldBoundaries.cpp b/Source/BoundaryConditions/WarpXFieldBoundaries.cpp index 7e99dbc8eb5..ac5f60e35d7 100644 --- a/Source/BoundaryConditions/WarpXFieldBoundaries.cpp +++ b/Source/BoundaryConditions/WarpXFieldBoundaries.cpp @@ -1,8 +1,12 @@ #include "WarpX.H" #include "WarpX_PEC.H" -#include + #include -#include +#include + +#include +#include + using namespace amrex::literals; void WarpX::ApplyEfieldBoundary(const int lev, PatchType patch_type) diff --git a/Source/BoundaryConditions/WarpX_PEC.H b/Source/BoundaryConditions/WarpX_PEC.H index f196d8bf889..044cd7d8c2a 100644 --- a/Source/BoundaryConditions/WarpX_PEC.H +++ b/Source/BoundaryConditions/WarpX_PEC.H @@ -4,6 +4,16 @@ #include "WarpX.H" #include "Utils/WarpXAlgorithmSelection.H" +#include +#include +#include +#include +#include +#include +#include + +#include +#include namespace PEC { using namespace amrex; diff --git a/Source/BoundaryConditions/WarpX_PEC.cpp b/Source/BoundaryConditions/WarpX_PEC.cpp index 29eb8d60a1b..f7c940098fa 100644 --- a/Source/BoundaryConditions/WarpX_PEC.cpp +++ b/Source/BoundaryConditions/WarpX_PEC.cpp @@ -1,10 +1,18 @@ #include "BoundaryConditions/WarpX_PEC.H" + #include "WarpX.H" -#include + #include #include -using namespace amrex::literals; +#include +#include +#include +#include +#include +#include +#include +using namespace amrex::literals; bool PEC::isAnyBoundaryPEC() { From bb3b6ac801f11dbe4df7c0e359bb9e60811c2298 Mon Sep 17 00:00:00 2001 From: Luca Fedeli Date: Sat, 22 May 2021 12:42:05 +0200 Subject: [PATCH 29/58] add space --- Source/BoundaryConditions/WarpX_PML_kernels.H | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/BoundaryConditions/WarpX_PML_kernels.H b/Source/BoundaryConditions/WarpX_PML_kernels.H index 0ede94cbd66..ca6b594ac9d 100644 --- a/Source/BoundaryConditions/WarpX_PML_kernels.H +++ b/Source/BoundaryConditions/WarpX_PML_kernels.H @@ -9,6 +9,7 @@ #define WARPX_PML_KERNELS_H_ #include "BoundaryConditions/PMLComponent.H" + #include #include From 7a2abbc30eaaf7467b4bef00d52271156b8eb85c Mon Sep 17 00:00:00 2001 From: Luca Fedeli Date: Sat, 22 May 2021 13:05:15 +0200 Subject: [PATCH 30/58] fix bug --- Source/FieldSolver/WarpXPushFieldsEM.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Source/FieldSolver/WarpXPushFieldsEM.cpp b/Source/FieldSolver/WarpXPushFieldsEM.cpp index 861ad3d5406..d838ccce1c4 100644 --- a/Source/FieldSolver/WarpXPushFieldsEM.cpp +++ b/Source/FieldSolver/WarpXPushFieldsEM.cpp @@ -13,14 +13,18 @@ #include "FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.H" #include "Utils/WarpXAlgorithmSelection.H" #include "Utils/WarpXProfilerWrapper.H" -#if defined(WARPX_DIM_RZ) || defined(WARPX_USE_PSATD) -# include "FieldSolver/SpectralSolver/SpectralFieldData.H" -# include "FieldSolver/SpectralSolver/SpectralSolver.H" -#endif #include "BoundaryConditions/WarpX_PML_kernels.H" #include "BoundaryConditions/PML_current.H" #include "WarpX_FDTD.H" #include "WarpXPushFieldsEM_K.H" +#if defined(WARPX_DIM_RZ) || defined(WARPX_USE_PSATD) +# include "FieldSolver/SpectralSolver/SpectralFieldData.H" +# ifdef WARPX_DIM_RZ +# include "FieldSolver/SpectralSolver/SpectralSolverRZ.H" +# elif defined(WARPX_USE_PSATD) +# include "FieldSolver/SpectralSolver/SpectralSolver.H" +# endif +#endif #ifdef BL_USE_SENSEI_INSITU # include From 620ba3c4331005dc3941a0a464e91a74e537d97a Mon Sep 17 00:00:00 2001 From: Luca Fedeli Date: Sat, 22 May 2021 14:35:24 +0200 Subject: [PATCH 31/58] fix missing include --- .../SpectralSolver/SpectralHankelTransform/BesselRoots.H | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/FieldSolver/SpectralSolver/SpectralHankelTransform/BesselRoots.H b/Source/FieldSolver/SpectralSolver/SpectralHankelTransform/BesselRoots.H index 6465d119e56..64ffc80ac37 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralHankelTransform/BesselRoots.H +++ b/Source/FieldSolver/SpectralSolver/SpectralHankelTransform/BesselRoots.H @@ -32,6 +32,8 @@ ! (www.jpmoreau.fr) ! ------------------------------------------------------------------------ */ +#include "Utils/WarpXConst.H" + #include #include From 8bdadbe7cc5ea732a4efb25ebfdf0d67a98cc18f Mon Sep 17 00:00:00 2001 From: Luca Fedeli Date: Sat, 22 May 2021 14:36:46 +0200 Subject: [PATCH 32/58] fix missing include --- .../SpectralSolver/SpectralHankelTransform/HankelTransform.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/FieldSolver/SpectralSolver/SpectralHankelTransform/HankelTransform.cpp b/Source/FieldSolver/SpectralSolver/SpectralHankelTransform/HankelTransform.cpp index 24e9d7f815a..9000f164c23 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralHankelTransform/HankelTransform.cpp +++ b/Source/FieldSolver/SpectralSolver/SpectralHankelTransform/HankelTransform.cpp @@ -5,6 +5,7 @@ * License: BSD-3-Clause-LBNL */ #include "WarpX.H" +#include "Utils/WarpXConst.H" #include "HankelTransform.H" #include "BesselRoots.H" From 59a45ee54d76695c58b0345ba4bb9edbaf7b625b Mon Sep 17 00:00:00 2001 From: Luca Fedeli Date: Sat, 22 May 2021 14:54:28 +0200 Subject: [PATCH 33/58] fix missing include --- .../FiniteDifferenceSolver/FiniteDifferenceSolver.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.cpp b/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.cpp index db35c7f2076..63bda58ef4e 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.cpp +++ b/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.cpp @@ -7,6 +7,7 @@ #include "FiniteDifferenceSolver.H" #include "Utils/WarpXAlgorithmSelection.H" +#include "WarpX.H" #ifdef WARPX_DIM_RZ # include "FiniteDifferenceAlgorithms/CylindricalYeeAlgorithm.H" #else From 7e03a34bbed6f11bcd2dd52324c9a75079fcea5e Mon Sep 17 00:00:00 2001 From: Luca Fedeli Date: Sat, 22 May 2021 15:15:29 +0200 Subject: [PATCH 34/58] fixed bugs --- Source/FieldSolver/FiniteDifferenceSolver/EvolveF.cpp | 1 + .../FiniteDifferenceSolver/FiniteDifferenceSolver.cpp | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Source/FieldSolver/FiniteDifferenceSolver/EvolveF.cpp b/Source/FieldSolver/FiniteDifferenceSolver/EvolveF.cpp index e28097b112a..f5d5d58a4e7 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/EvolveF.cpp +++ b/Source/FieldSolver/FiniteDifferenceSolver/EvolveF.cpp @@ -8,6 +8,7 @@ #include "Utils/WarpXAlgorithmSelection.H" #ifdef WARPX_DIM_RZ +# include "WarpX.H" # include "FiniteDifferenceAlgorithms/CylindricalYeeAlgorithm.H" #else # include "FiniteDifferenceAlgorithms/CartesianYeeAlgorithm.H" diff --git a/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.cpp b/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.cpp index 63bda58ef4e..54dd680d6ae 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.cpp +++ b/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.cpp @@ -7,13 +7,13 @@ #include "FiniteDifferenceSolver.H" #include "Utils/WarpXAlgorithmSelection.H" -#include "WarpX.H" #ifdef WARPX_DIM_RZ -# include "FiniteDifferenceAlgorithms/CylindricalYeeAlgorithm.H" +# include "WarpX.H" +# include "FiniteDifferenceAlgorithms/CylindricalYeeAlgorithm.H" #else -# include "FiniteDifferenceAlgorithms/CartesianYeeAlgorithm.H" -# include "FiniteDifferenceAlgorithms/CartesianCKCAlgorithm.H" -# include "FiniteDifferenceAlgorithms/CartesianNodalAlgorithm.H" +# include "FiniteDifferenceAlgorithms/CartesianYeeAlgorithm.H" +# include "FiniteDifferenceAlgorithms/CartesianCKCAlgorithm.H" +# include "FiniteDifferenceAlgorithms/CartesianNodalAlgorithm.H" #endif #include From 50394a46b9548b11c6d86ca847ec2f2aceb991b4 Mon Sep 17 00:00:00 2001 From: Luca Fedeli Date: Sat, 22 May 2021 15:50:48 +0200 Subject: [PATCH 35/58] fixed bug --- Source/Evolve/WarpXEvolve.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/Evolve/WarpXEvolve.cpp b/Source/Evolve/WarpXEvolve.cpp index d7ad37b768d..98d0b0ee1db 100644 --- a/Source/Evolve/WarpXEvolve.cpp +++ b/Source/Evolve/WarpXEvolve.cpp @@ -25,6 +25,9 @@ #ifdef WARPX_USE_PSATD # include "FieldSolver/SpectralSolver/SpectralSolver.H" #endif +#ifdef WARPX_DIM_RZ +# include "FieldSolver/SpectralSolver/SpectralSolverRZ.H" +#endif #include #include From f965f6e9c3b3226936ded88d021690d50f53d94f Mon Sep 17 00:00:00 2001 From: Luca Fedeli Date: Mon, 24 May 2021 23:13:02 +0200 Subject: [PATCH 36/58] attempt at fixing issue with math functions --- Source/Parallelization/GuardCellManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Parallelization/GuardCellManager.cpp b/Source/Parallelization/GuardCellManager.cpp index a28ca5a540a..b5ed4ac846e 100644 --- a/Source/Parallelization/GuardCellManager.cpp +++ b/Source/Parallelization/GuardCellManager.cpp @@ -19,8 +19,8 @@ #include #include #include +#include -#include #include using namespace amrex; From d4c2fc502be3b10f821eb753ccfab5050e40dbda Mon Sep 17 00:00:00 2001 From: Luca Fedeli Date: Tue, 25 May 2021 02:23:48 +0200 Subject: [PATCH 37/58] added missing include --- Source/EmbeddedBoundary/WarpXInitEB.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/EmbeddedBoundary/WarpXInitEB.cpp b/Source/EmbeddedBoundary/WarpXInitEB.cpp index 7ce6033afdc..2329d74fdce 100644 --- a/Source/EmbeddedBoundary/WarpXInitEB.cpp +++ b/Source/EmbeddedBoundary/WarpXInitEB.cpp @@ -1,4 +1,5 @@ #include "WarpX.H" +#include "Utils/WarpXUtil.H" #include #include From c4ba1f90647d2f25157a28f9ae03969cd6d81130 Mon Sep 17 00:00:00 2001 From: Luca Fedeli Date: Tue, 25 May 2021 09:38:47 +0200 Subject: [PATCH 38/58] fixed missing include --- Source/Diagnostics/ReducedDiags/FieldReduction.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/Diagnostics/ReducedDiags/FieldReduction.cpp b/Source/Diagnostics/ReducedDiags/FieldReduction.cpp index c60ae22e754..64f0670b73c 100644 --- a/Source/Diagnostics/ReducedDiags/FieldReduction.cpp +++ b/Source/Diagnostics/ReducedDiags/FieldReduction.cpp @@ -8,6 +8,7 @@ #include "FieldReduction.H" #include "WarpX.H" #include "Utils/WarpXAlgorithmSelection.H" +#include "Utils/WarpXUtil.H" // constructor FieldReduction::FieldReduction (std::string rd_name) From 90d98bd47bb3610728963293a30cb3151402daaa Mon Sep 17 00:00:00 2001 From: Luca Fedeli Date: Thu, 10 Jun 2021 14:41:18 +0200 Subject: [PATCH 39/58] using _fwd.H --- Source/BoundaryConditions/PML.H | 2 ++ .../BoundaryConditions/{PML.def => PML_fwd.H} | 0 .../Diagnostics/BackTransformedDiagnostic.H | 2 ++ ...ic.def => BackTransformedDiagnostic_fwd.H} | 0 .../ComputeDiagFunctors/ComputeDiagFunctor.H | 2 ++ ...agFunctor.def => ComputeDiagFunctor_fwd.H} | 0 Source/Diagnostics/Diagnostics.H | 7 ++-- Source/Diagnostics/FlushFormats/FlushFormat.H | 2 ++ .../FlushFormats/FlushFormatAscent.H | 5 ++- .../FlushFormats/FlushFormatCheckpoint.H | 5 ++- .../FlushFormats/FlushFormatOpenPMD.H | 4 +-- .../FlushFormats/FlushFormatPlotfile.H | 5 ++- .../{FlushFormat.def => FlushFormat_fwd.H} | 0 Source/Diagnostics/MultiDiagnostics.H | 2 ++ ...Diagnostics.def => MultiDiagnostics_fwd.H} | 0 .../Diagnostics/ParticleDiag/ParticleDiag.H | 8 ++--- .../{ParticleDiag.def => ParticleDiag_fwd.H} | 0 .../ReducedDiags/MultiReducedDiags.H | 2 ++ ...ducedDiags.def => MultiReducedDiags_fwd.H} | 0 Source/Diagnostics/WarpXOpenPMD.H | 5 ++- .../FiniteDifferenceSolver.H | 8 ++--- ...olver.def => FiniteDifferenceSolver_fwd.H} | 0 .../MacroscopicProperties.H | 2 ++ ...erties.def => MacroscopicProperties_fwd.H} | 0 .../SpectralAlgorithms/PMLPsatdAlgorithm.H | 7 ++-- .../SpectralBaseAlgorithm.H | 5 ++- .../SpectralSolver/SpectralFieldData.H | 2 ++ ...lFieldData.def => SpectralFieldData_fwd.H} | 0 .../SpectralSolver/SpectralKSpace.H | 2 ++ ...pectralKSpace.def => SpectralKSpace_fwd.H} | 0 .../SpectralSolver/SpectralSolver.H | 2 ++ .../SpectralSolver/SpectralSolverRZ.H | 2 ++ ...ralSolverRZ.def => SpectralSolverRZ_fwd.H} | 0 ...pectralSolver.def => SpectralSolver_fwd.H} | 0 Source/Filter/NCIGodfreyFilter.H | 2 ++ ...dfreyFilter.def => NCIGodfreyFilter_fwd.H} | 0 Source/Initialization/InjectorPosition.H | 2 ++ ...torPosition.def => InjectorPosition_fwd.H} | 0 Source/Initialization/PlasmaInjector.H | 5 ++- Source/Parser/WarpXParserWrapper.H | 2 ++ ...erWrapper.def => WarpXParserWrapper_fwd.H} | 0 Source/Particles/Collision/CollisionBase.H | 4 +-- Source/Particles/Collision/CollisionHandler.H | 5 ++- .../Collision/PairWiseCoulombCollision.H | 7 ++-- .../QEDInternals/BreitWheelerEngineWrapper.H | 2 ++ ...er.def => BreitWheelerEngineWrapper_fwd.H} | 0 .../QEDInternals/QuantumSyncEngineWrapper.H | 2 ++ ...per.def => QuantumSyncEngineWrapper_fwd.H} | 0 Source/Particles/Gather/GetExternalFields.H | 5 ++- Source/Particles/MultiParticleContainer.H | 6 ++-- ...ainer.def => MultiParticleContainer_fwd.H} | 0 Source/Particles/PhotonParticleContainer.H | 5 ++- Source/Particles/PhysicalParticleContainer.H | 6 ++-- .../Particles/Resampling/LevelingThinning.H | 5 ++- Source/Particles/Resampling/Resampling.H | 4 +-- .../RigidInjectedParticleContainer.H | 5 ++- Source/Particles/WarpXParticleContainer.H | 11 +++--- ...ainer.def => WarpXParticleContainer_fwd.H} | 0 Source/Utils/a.out | Bin 0 -> 152760 bytes Source/Utils/main.cpp | 34 ++++++++++++++++++ Source/WarpX.H | 26 +++++++------- 61 files changed, 132 insertions(+), 87 deletions(-) rename Source/BoundaryConditions/{PML.def => PML_fwd.H} (100%) rename Source/Diagnostics/{BackTransformedDiagnostic.def => BackTransformedDiagnostic_fwd.H} (100%) rename Source/Diagnostics/ComputeDiagFunctors/{ComputeDiagFunctor.def => ComputeDiagFunctor_fwd.H} (100%) rename Source/Diagnostics/FlushFormats/{FlushFormat.def => FlushFormat_fwd.H} (100%) rename Source/Diagnostics/{MultiDiagnostics.def => MultiDiagnostics_fwd.H} (100%) rename Source/Diagnostics/ParticleDiag/{ParticleDiag.def => ParticleDiag_fwd.H} (100%) rename Source/Diagnostics/ReducedDiags/{MultiReducedDiags.def => MultiReducedDiags_fwd.H} (100%) rename Source/FieldSolver/FiniteDifferenceSolver/{FiniteDifferenceSolver.def => FiniteDifferenceSolver_fwd.H} (100%) rename Source/FieldSolver/FiniteDifferenceSolver/MacroscopicProperties/{MacroscopicProperties.def => MacroscopicProperties_fwd.H} (100%) rename Source/FieldSolver/SpectralSolver/{SpectralFieldData.def => SpectralFieldData_fwd.H} (100%) rename Source/FieldSolver/SpectralSolver/{SpectralKSpace.def => SpectralKSpace_fwd.H} (100%) rename Source/FieldSolver/SpectralSolver/{SpectralSolverRZ.def => SpectralSolverRZ_fwd.H} (100%) rename Source/FieldSolver/SpectralSolver/{SpectralSolver.def => SpectralSolver_fwd.H} (100%) rename Source/Filter/{NCIGodfreyFilter.def => NCIGodfreyFilter_fwd.H} (100%) rename Source/Initialization/{InjectorPosition.def => InjectorPosition_fwd.H} (100%) rename Source/Parser/{WarpXParserWrapper.def => WarpXParserWrapper_fwd.H} (100%) rename Source/Particles/ElementaryProcess/QEDInternals/{BreitWheelerEngineWrapper.def => BreitWheelerEngineWrapper_fwd.H} (100%) rename Source/Particles/ElementaryProcess/QEDInternals/{QuantumSyncEngineWrapper.def => QuantumSyncEngineWrapper_fwd.H} (100%) rename Source/Particles/{MultiParticleContainer.def => MultiParticleContainer_fwd.H} (100%) rename Source/Particles/{WarpXParticleContainer.def => WarpXParticleContainer_fwd.H} (100%) create mode 100755 Source/Utils/a.out create mode 100644 Source/Utils/main.cpp diff --git a/Source/BoundaryConditions/PML.H b/Source/BoundaryConditions/PML.H index 33ebacb3054..57ff7a20741 100644 --- a/Source/BoundaryConditions/PML.H +++ b/Source/BoundaryConditions/PML.H @@ -9,6 +9,8 @@ #ifndef WARPX_PML_H_ #define WARPX_PML_H_ +#include "PML_fwd.H" + #ifdef WARPX_USE_PSATD # include "FieldSolver/SpectralSolver/SpectralSolver.H" #endif diff --git a/Source/BoundaryConditions/PML.def b/Source/BoundaryConditions/PML_fwd.H similarity index 100% rename from Source/BoundaryConditions/PML.def rename to Source/BoundaryConditions/PML_fwd.H diff --git a/Source/Diagnostics/BackTransformedDiagnostic.H b/Source/Diagnostics/BackTransformedDiagnostic.H index f3757b60e49..9226a157995 100644 --- a/Source/Diagnostics/BackTransformedDiagnostic.H +++ b/Source/Diagnostics/BackTransformedDiagnostic.H @@ -8,6 +8,8 @@ #ifndef WARPX_BackTransformedDiagnostic_H_ #define WARPX_BackTransformedDiagnostic_H_ +#include "BackTransformedDiagnostic_fwd.H" + #include "Particles/WarpXParticleContainer.H" #include "Particles/MultiParticleContainer.H" diff --git a/Source/Diagnostics/BackTransformedDiagnostic.def b/Source/Diagnostics/BackTransformedDiagnostic_fwd.H similarity index 100% rename from Source/Diagnostics/BackTransformedDiagnostic.def rename to Source/Diagnostics/BackTransformedDiagnostic_fwd.H diff --git a/Source/Diagnostics/ComputeDiagFunctors/ComputeDiagFunctor.H b/Source/Diagnostics/ComputeDiagFunctors/ComputeDiagFunctor.H index 0c3aa799a9e..3ce6a11da22 100644 --- a/Source/Diagnostics/ComputeDiagFunctors/ComputeDiagFunctor.H +++ b/Source/Diagnostics/ComputeDiagFunctors/ComputeDiagFunctor.H @@ -1,6 +1,8 @@ #ifndef WARPX_COMPUTEDIAGFUNCTOR_H_ #define WARPX_COMPUTEDIAGFUNCTOR_H_ +#include "ComputeDiagFunctor_fwd.H" + #include #include diff --git a/Source/Diagnostics/ComputeDiagFunctors/ComputeDiagFunctor.def b/Source/Diagnostics/ComputeDiagFunctors/ComputeDiagFunctor_fwd.H similarity index 100% rename from Source/Diagnostics/ComputeDiagFunctors/ComputeDiagFunctor.def rename to Source/Diagnostics/ComputeDiagFunctors/ComputeDiagFunctor_fwd.H diff --git a/Source/Diagnostics/Diagnostics.H b/Source/Diagnostics/Diagnostics.H index 16fa15c3fbe..2d1dfb0c310 100644 --- a/Source/Diagnostics/Diagnostics.H +++ b/Source/Diagnostics/Diagnostics.H @@ -2,10 +2,9 @@ #define WARPX_DIAGNOSTICS_H_ #include "ParticleDiag/ParticleDiag.H" -// _______________________________________________WarpX Forward declarations -#include "FlushFormats/FlushFormat.def" -#include "ComputeDiagFunctors/ComputeDiagFunctor.def" -//________________________________________________________________________ + +#include "FlushFormats/FlushFormat_fwd.H" +#include "ComputeDiagFunctors/ComputeDiagFunctor_fwd.H" #include #include diff --git a/Source/Diagnostics/FlushFormats/FlushFormat.H b/Source/Diagnostics/FlushFormats/FlushFormat.H index 800c991602a..8fa4dd4f47b 100644 --- a/Source/Diagnostics/FlushFormats/FlushFormat.H +++ b/Source/Diagnostics/FlushFormats/FlushFormat.H @@ -1,6 +1,8 @@ #ifndef WARPX_FLUSHFORMAT_H_ #define WARPX_FLUSHFORMAT_H_ +#include "FlushFormat_fwd.H" + #include "Particles/MultiParticleContainer.H" #include "Diagnostics/ParticleDiag/ParticleDiag.H" diff --git a/Source/Diagnostics/FlushFormats/FlushFormatAscent.H b/Source/Diagnostics/FlushFormats/FlushFormatAscent.H index 64dba02f394..75ae2269620 100644 --- a/Source/Diagnostics/FlushFormats/FlushFormatAscent.H +++ b/Source/Diagnostics/FlushFormats/FlushFormatAscent.H @@ -2,9 +2,8 @@ #define WARPX_FLUSHFORMATASCENT_H_ #include "FlushFormat.H" -// _______________________________________________WarpX Forward declarations -#include "Diagnostics/ParticleDiag/ParticleDiag.def" -//________________________________________________________________________ + +#include "Diagnostics/ParticleDiag/ParticleDiag_fwd.H" #include #include diff --git a/Source/Diagnostics/FlushFormats/FlushFormatCheckpoint.H b/Source/Diagnostics/FlushFormats/FlushFormatCheckpoint.H index 22fc274f58c..f7d5801af36 100644 --- a/Source/Diagnostics/FlushFormats/FlushFormatCheckpoint.H +++ b/Source/Diagnostics/FlushFormats/FlushFormatCheckpoint.H @@ -2,9 +2,8 @@ #define WARPX_FLUSHFORMATCHECKPOINT_H_ #include "FlushFormatPlotfile.H" -// _______________________________________________WarpX Forward declarations -#include "Diagnostics/ParticleDiag/ParticleDiag.def" -//________________________________________________________________________ + +#include "Diagnostics/ParticleDiag/ParticleDiag_fwd.H" #include #include diff --git a/Source/Diagnostics/FlushFormats/FlushFormatOpenPMD.H b/Source/Diagnostics/FlushFormats/FlushFormatOpenPMD.H index 750fa320fc4..6da1b27c5f7 100644 --- a/Source/Diagnostics/FlushFormats/FlushFormatOpenPMD.H +++ b/Source/Diagnostics/FlushFormats/FlushFormatOpenPMD.H @@ -3,10 +3,8 @@ #include "FlushFormat.H" #include "Diagnostics/WarpXOpenPMD.H" -// _______________________________________________WarpX Forward declarations -#include "Diagnostics/ParticleDiag/ParticleDiag.def" -//________________________________________________________________________ +#include "Diagnostics/ParticleDiag/ParticleDiag_fwd.H" #include #include diff --git a/Source/Diagnostics/FlushFormats/FlushFormatPlotfile.H b/Source/Diagnostics/FlushFormats/FlushFormatPlotfile.H index 21500282981..8983db6ff12 100644 --- a/Source/Diagnostics/FlushFormats/FlushFormatPlotfile.H +++ b/Source/Diagnostics/FlushFormats/FlushFormatPlotfile.H @@ -2,9 +2,8 @@ #define WARPX_FLUSHFORMATPLOTFILE_H_ #include "FlushFormat.H" -// _______________________________________________WarpX Forward declarations -#include "Diagnostics/ParticleDiag/ParticleDiag.def" -//________________________________________________________________________ + +#include "Diagnostics/ParticleDiag/ParticleDiag_fwd.H" #include #include diff --git a/Source/Diagnostics/FlushFormats/FlushFormat.def b/Source/Diagnostics/FlushFormats/FlushFormat_fwd.H similarity index 100% rename from Source/Diagnostics/FlushFormats/FlushFormat.def rename to Source/Diagnostics/FlushFormats/FlushFormat_fwd.H diff --git a/Source/Diagnostics/MultiDiagnostics.H b/Source/Diagnostics/MultiDiagnostics.H index 22246c7c658..c13d5656f4b 100644 --- a/Source/Diagnostics/MultiDiagnostics.H +++ b/Source/Diagnostics/MultiDiagnostics.H @@ -1,6 +1,8 @@ #ifndef WARPX_MULTIDIAGNOSTICS_H_ #define WARPX_MULTIDIAGNOSTICS_H_ +#include "MultiDiagnostics_fwd.H" + #include "Diagnostics.H" #include diff --git a/Source/Diagnostics/MultiDiagnostics.def b/Source/Diagnostics/MultiDiagnostics_fwd.H similarity index 100% rename from Source/Diagnostics/MultiDiagnostics.def rename to Source/Diagnostics/MultiDiagnostics_fwd.H diff --git a/Source/Diagnostics/ParticleDiag/ParticleDiag.H b/Source/Diagnostics/ParticleDiag/ParticleDiag.H index 00c7ee4efc5..092d0b521bd 100644 --- a/Source/Diagnostics/ParticleDiag/ParticleDiag.H +++ b/Source/Diagnostics/ParticleDiag/ParticleDiag.H @@ -1,10 +1,10 @@ #ifndef WARPX_PARTICLEDIAG_H_ #define WARPX_PARTICLEDIAG_H_ -// _______________________________________________WarpX Forward declarations -#include "Particles/WarpXParticleContainer.def" -#include "Parser/WarpXParserWrapper.def" -//________________________________________________________________________ +#include "ParticleDiag_fwd.H" + +#include "Particles/WarpXParticleContainer_fwd.H" +#include "Parser/WarpXParserWrapper_fwd.H" #include #include diff --git a/Source/Diagnostics/ParticleDiag/ParticleDiag.def b/Source/Diagnostics/ParticleDiag/ParticleDiag_fwd.H similarity index 100% rename from Source/Diagnostics/ParticleDiag/ParticleDiag.def rename to Source/Diagnostics/ParticleDiag/ParticleDiag_fwd.H diff --git a/Source/Diagnostics/ReducedDiags/MultiReducedDiags.H b/Source/Diagnostics/ReducedDiags/MultiReducedDiags.H index 3c8d9a6282b..ecfa6a7c249 100644 --- a/Source/Diagnostics/ReducedDiags/MultiReducedDiags.H +++ b/Source/Diagnostics/ReducedDiags/MultiReducedDiags.H @@ -8,6 +8,8 @@ #ifndef WARPX_DIAGNOSTICS_REDUCEDDIAGS_MULTIREDUCEDDIAGS_H_ #define WARPX_DIAGNOSTICS_REDUCEDDIAGS_MULTIREDUCEDDIAGS_H_ +#include "MultiReducedDiags_fwd.H" + #include "ReducedDiags.H" #include diff --git a/Source/Diagnostics/ReducedDiags/MultiReducedDiags.def b/Source/Diagnostics/ReducedDiags/MultiReducedDiags_fwd.H similarity index 100% rename from Source/Diagnostics/ReducedDiags/MultiReducedDiags.def rename to Source/Diagnostics/ReducedDiags/MultiReducedDiags_fwd.H diff --git a/Source/Diagnostics/WarpXOpenPMD.H b/Source/Diagnostics/WarpXOpenPMD.H index 13650c54118..33b64d3339f 100644 --- a/Source/Diagnostics/WarpXOpenPMD.H +++ b/Source/Diagnostics/WarpXOpenPMD.H @@ -9,9 +9,8 @@ #define WARPX_OPEN_PMD_H_ #include "Particles/WarpXParticleContainer.H" -// _______________________________________________WarpX Forward declarations -#include "Diagnostics/ParticleDiag/ParticleDiag.def" -//________________________________________________________________________ + +#include "Diagnostics/ParticleDiag/ParticleDiag_fwd.H" #include #include diff --git a/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.H b/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.H index 303c01ca09d..dc44ab1b338 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.H +++ b/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.H @@ -8,10 +8,10 @@ #ifndef WARPX_FINITE_DIFFERENCE_SOLVER_H_ #define WARPX_FINITE_DIFFERENCE_SOLVER_H_ -// _______________________________________________WarpX Forward declarations -#include "BoundaryConditions/PML.def" -#include "MacroscopicProperties/MacroscopicProperties.def" -//________________________________________________ +#include "FiniteDifferenceSolver_fwd.H" + +#include "BoundaryConditions/PML_fwd.H" +#include "MacroscopicProperties/MacroscopicProperties_fwd.H" #include #include diff --git a/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.def b/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver_fwd.H similarity index 100% rename from Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.def rename to Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver_fwd.H diff --git a/Source/FieldSolver/FiniteDifferenceSolver/MacroscopicProperties/MacroscopicProperties.H b/Source/FieldSolver/FiniteDifferenceSolver/MacroscopicProperties/MacroscopicProperties.H index c0f0e94bd50..efa059b0341 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/MacroscopicProperties/MacroscopicProperties.H +++ b/Source/FieldSolver/FiniteDifferenceSolver/MacroscopicProperties/MacroscopicProperties.H @@ -1,6 +1,8 @@ #ifndef WARPX_MACROSCOPICPROPERTIES_H_ #define WARPX_MACROSCOPICPROPERTIES_H_ +#include "MacroscopicProperties_fwd.H" + #include "Parser/WarpXParserWrapper.H" #include "Utils/WarpXConst.H" diff --git a/Source/FieldSolver/FiniteDifferenceSolver/MacroscopicProperties/MacroscopicProperties.def b/Source/FieldSolver/FiniteDifferenceSolver/MacroscopicProperties/MacroscopicProperties_fwd.H similarity index 100% rename from Source/FieldSolver/FiniteDifferenceSolver/MacroscopicProperties/MacroscopicProperties.def rename to Source/FieldSolver/FiniteDifferenceSolver/MacroscopicProperties/MacroscopicProperties_fwd.H diff --git a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PMLPsatdAlgorithm.H b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PMLPsatdAlgorithm.H index 649ebd424ad..99032cf060b 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PMLPsatdAlgorithm.H +++ b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PMLPsatdAlgorithm.H @@ -8,10 +8,9 @@ #define WARPX_PML_PSATD_ALGORITHM_H_ #include "SpectralBaseAlgorithm.H" -// _______________________________________________WarpX Forward declarations -#include "FieldSolver/SpectralSolver/SpectralFieldData.def" -#include "FieldSolver/SpectralSolver/SpectralKSpace.def" -//________________________________________________________________________ + +#include "FieldSolver/SpectralSolver/SpectralFieldData_fwd.H" +#include "FieldSolver/SpectralSolver/SpectralKSpace_fwd.H" #include diff --git a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/SpectralBaseAlgorithm.H b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/SpectralBaseAlgorithm.H index 7290fe73b2a..17b0851ad09 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/SpectralBaseAlgorithm.H +++ b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/SpectralBaseAlgorithm.H @@ -9,9 +9,8 @@ #include "Utils/WarpX_Complex.H" #include "FieldSolver/SpectralSolver/SpectralKSpace.H" -// _______________________________________________WarpX Forward declarations -#include "FieldSolver/SpectralSolver/SpectralFieldData.def" -//________________________________________________________________________ + +#include "FieldSolver/SpectralSolver/SpectralFieldData_fwd.H" #include #include diff --git a/Source/FieldSolver/SpectralSolver/SpectralFieldData.H b/Source/FieldSolver/SpectralSolver/SpectralFieldData.H index 875dfddab3b..fa0074cd217 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralFieldData.H +++ b/Source/FieldSolver/SpectralSolver/SpectralFieldData.H @@ -8,6 +8,8 @@ #ifndef WARPX_SPECTRAL_FIELD_DATA_H_ #define WARPX_SPECTRAL_FIELD_DATA_H_ +#include "SpectralFieldData_fwd.H" + #include "Utils/WarpX_Complex.H" #include "SpectralKSpace.H" #include "AnyFFT.H" diff --git a/Source/FieldSolver/SpectralSolver/SpectralFieldData.def b/Source/FieldSolver/SpectralSolver/SpectralFieldData_fwd.H similarity index 100% rename from Source/FieldSolver/SpectralSolver/SpectralFieldData.def rename to Source/FieldSolver/SpectralSolver/SpectralFieldData_fwd.H diff --git a/Source/FieldSolver/SpectralSolver/SpectralKSpace.H b/Source/FieldSolver/SpectralSolver/SpectralKSpace.H index 10302ce7b0d..9d74c38534c 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralKSpace.H +++ b/Source/FieldSolver/SpectralSolver/SpectralKSpace.H @@ -8,6 +8,8 @@ #ifndef WARPX_SPECTRAL_K_SPACE_H_ #define WARPX_SPECTRAL_K_SPACE_H_ +#include "SpectralKSpace_fwd.H" + #include "Utils/WarpX_Complex.H" #include diff --git a/Source/FieldSolver/SpectralSolver/SpectralKSpace.def b/Source/FieldSolver/SpectralSolver/SpectralKSpace_fwd.H similarity index 100% rename from Source/FieldSolver/SpectralSolver/SpectralKSpace.def rename to Source/FieldSolver/SpectralSolver/SpectralKSpace_fwd.H diff --git a/Source/FieldSolver/SpectralSolver/SpectralSolver.H b/Source/FieldSolver/SpectralSolver/SpectralSolver.H index 82e313ec7fa..7b8b5b01c06 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralSolver.H +++ b/Source/FieldSolver/SpectralSolver/SpectralSolver.H @@ -7,6 +7,8 @@ #ifndef WARPX_SPECTRAL_SOLVER_H_ #define WARPX_SPECTRAL_SOLVER_H_ +#include "SpectralSolver_fwd.H" + #include "SpectralAlgorithms/SpectralBaseAlgorithm.H" #include "SpectralFieldData.H" diff --git a/Source/FieldSolver/SpectralSolver/SpectralSolverRZ.H b/Source/FieldSolver/SpectralSolver/SpectralSolverRZ.H index 7fe4bd00ccd..114d199c5b3 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralSolverRZ.H +++ b/Source/FieldSolver/SpectralSolver/SpectralSolverRZ.H @@ -7,6 +7,8 @@ #ifndef WARPX_SPECTRAL_SOLVER_RZ_H_ #define WARPX_SPECTRAL_SOLVER_RZ_H_ +#include "SpectralSolverRZ_fwd.H" + #include "SpectralAlgorithms/SpectralBaseAlgorithmRZ.H" #include "SpectralFieldDataRZ.H" diff --git a/Source/FieldSolver/SpectralSolver/SpectralSolverRZ.def b/Source/FieldSolver/SpectralSolver/SpectralSolverRZ_fwd.H similarity index 100% rename from Source/FieldSolver/SpectralSolver/SpectralSolverRZ.def rename to Source/FieldSolver/SpectralSolver/SpectralSolverRZ_fwd.H diff --git a/Source/FieldSolver/SpectralSolver/SpectralSolver.def b/Source/FieldSolver/SpectralSolver/SpectralSolver_fwd.H similarity index 100% rename from Source/FieldSolver/SpectralSolver/SpectralSolver.def rename to Source/FieldSolver/SpectralSolver/SpectralSolver_fwd.H diff --git a/Source/Filter/NCIGodfreyFilter.H b/Source/Filter/NCIGodfreyFilter.H index 0bcd0fb675c..18b93189d76 100644 --- a/Source/Filter/NCIGodfreyFilter.H +++ b/Source/Filter/NCIGodfreyFilter.H @@ -7,6 +7,8 @@ #ifndef WARPX_GODFREY_FILTER_H_ #define WARPX_GODFREY_FILTER_H_ +#include "NCIGodfreyFilter_fwd.H" + #include "Filter.H" #include diff --git a/Source/Filter/NCIGodfreyFilter.def b/Source/Filter/NCIGodfreyFilter_fwd.H similarity index 100% rename from Source/Filter/NCIGodfreyFilter.def rename to Source/Filter/NCIGodfreyFilter_fwd.H diff --git a/Source/Initialization/InjectorPosition.H b/Source/Initialization/InjectorPosition.H index ee90ce7ffd5..88f989c8317 100644 --- a/Source/Initialization/InjectorPosition.H +++ b/Source/Initialization/InjectorPosition.H @@ -8,6 +8,8 @@ #ifndef INJECTOR_POSITION_H_ #define INJECTOR_POSITION_H_ +#include "InjectorPosition_fwd.H" + #include #include #include diff --git a/Source/Initialization/InjectorPosition.def b/Source/Initialization/InjectorPosition_fwd.H similarity index 100% rename from Source/Initialization/InjectorPosition.def rename to Source/Initialization/InjectorPosition_fwd.H diff --git a/Source/Initialization/PlasmaInjector.H b/Source/Initialization/PlasmaInjector.H index bdca52cbf71..3e578c5d3c3 100644 --- a/Source/Initialization/PlasmaInjector.H +++ b/Source/Initialization/PlasmaInjector.H @@ -12,9 +12,8 @@ #include "Particles/SpeciesPhysicalProperties.H" #include "InjectorMomentum.H" #include "InjectorDensity.H" -// _______________________________________________WarpX Forward declarations -#include "InjectorPosition.def" -// ________________________________________________________________________ + +#include "InjectorPosition_fwd.H" #include #include diff --git a/Source/Parser/WarpXParserWrapper.H b/Source/Parser/WarpXParserWrapper.H index bcd222910ec..4395858b5ec 100644 --- a/Source/Parser/WarpXParserWrapper.H +++ b/Source/Parser/WarpXParserWrapper.H @@ -7,6 +7,8 @@ #ifndef WARPX_PARSER_WRAPPER_H_ #define WARPX_PARSER_WRAPPER_H_ +#include "WarpXParserWrapper_fwd.H" + #include "Parser/WarpXParser.H" #include "Parser/GpuParser.H" diff --git a/Source/Parser/WarpXParserWrapper.def b/Source/Parser/WarpXParserWrapper_fwd.H similarity index 100% rename from Source/Parser/WarpXParserWrapper.def rename to Source/Parser/WarpXParserWrapper_fwd.H diff --git a/Source/Particles/Collision/CollisionBase.H b/Source/Particles/Collision/CollisionBase.H index 56dd72b80d3..528185aa2eb 100644 --- a/Source/Particles/Collision/CollisionBase.H +++ b/Source/Particles/Collision/CollisionBase.H @@ -7,9 +7,7 @@ #ifndef WARPX_PARTICLES_COLLISION_COLLISIONBASE_H_ #define WARPX_PARTICLES_COLLISION_COLLISIONBASE_H_ -// _______________________________________________WarpX Forward declarations -#include "Particles/MultiParticleContainer.def" -// ______________________________________________ +#include "Particles/MultiParticleContainer_fwd.H" #include #include diff --git a/Source/Particles/Collision/CollisionHandler.H b/Source/Particles/Collision/CollisionHandler.H index 9826ce563d8..efcb7fe9513 100644 --- a/Source/Particles/Collision/CollisionHandler.H +++ b/Source/Particles/Collision/CollisionHandler.H @@ -8,9 +8,8 @@ #define WARPX_PARTICLES_COLLISION_COLLISIONHANDLER_H_ #include "CollisionBase.H" -// _______________________________________________WarpX Forward declarations -#include "Particles/MultiParticleContainer.def" -// ______________________________________________ + +#include "Particles/MultiParticleContainer_fwd.H" #include #include diff --git a/Source/Particles/Collision/PairWiseCoulombCollision.H b/Source/Particles/Collision/PairWiseCoulombCollision.H index 2a68b61aee7..ae7f191dad3 100644 --- a/Source/Particles/Collision/PairWiseCoulombCollision.H +++ b/Source/Particles/Collision/PairWiseCoulombCollision.H @@ -8,10 +8,9 @@ #define WARPX_PARTICLES_COLLISION_PAIRWISECOULOMBCOLLISION_H_ #include "CollisionBase.H" -// _______________________________________________WarpX Forward declarations -#include "Particles/MultiParticleContainer.def" -#include "Particles/WarpXParticleContainer.def" -// ______________________________________________ + +#include "Particles/MultiParticleContainer_fwd.H" +#include "Particles/WarpXParticleContainer_fwd.H" #include diff --git a/Source/Particles/ElementaryProcess/QEDInternals/BreitWheelerEngineWrapper.H b/Source/Particles/ElementaryProcess/QEDInternals/BreitWheelerEngineWrapper.H index 16322a90a44..e59aea89281 100644 --- a/Source/Particles/ElementaryProcess/QEDInternals/BreitWheelerEngineWrapper.H +++ b/Source/Particles/ElementaryProcess/QEDInternals/BreitWheelerEngineWrapper.H @@ -7,6 +7,8 @@ #ifndef WARPX_breit_wheeler_engine_wrapper_h_ #define WARPX_breit_wheeler_engine_wrapper_h_ +#include "BreitWheelerEngineWrapper_fwd.H" + #include "QedWrapperCommons.H" #include "QedChiFunctions.H" #include "Utils/WarpXConst.H" diff --git a/Source/Particles/ElementaryProcess/QEDInternals/BreitWheelerEngineWrapper.def b/Source/Particles/ElementaryProcess/QEDInternals/BreitWheelerEngineWrapper_fwd.H similarity index 100% rename from Source/Particles/ElementaryProcess/QEDInternals/BreitWheelerEngineWrapper.def rename to Source/Particles/ElementaryProcess/QEDInternals/BreitWheelerEngineWrapper_fwd.H diff --git a/Source/Particles/ElementaryProcess/QEDInternals/QuantumSyncEngineWrapper.H b/Source/Particles/ElementaryProcess/QEDInternals/QuantumSyncEngineWrapper.H index fe7bbfacd17..d1e9aee074e 100644 --- a/Source/Particles/ElementaryProcess/QEDInternals/QuantumSyncEngineWrapper.H +++ b/Source/Particles/ElementaryProcess/QEDInternals/QuantumSyncEngineWrapper.H @@ -7,6 +7,8 @@ #ifndef WARPX_quantum_sync_engine_wrapper_h_ #define WARPX_quantum_sync_engine_wrapper_h_ +#include "BreitWheelerEngineWrapper_fwd.H" + #include "QedWrapperCommons.H" #include "QedChiFunctions.H" #include "Utils/WarpXConst.H" diff --git a/Source/Particles/ElementaryProcess/QEDInternals/QuantumSyncEngineWrapper.def b/Source/Particles/ElementaryProcess/QEDInternals/QuantumSyncEngineWrapper_fwd.H similarity index 100% rename from Source/Particles/ElementaryProcess/QEDInternals/QuantumSyncEngineWrapper.def rename to Source/Particles/ElementaryProcess/QEDInternals/QuantumSyncEngineWrapper_fwd.H diff --git a/Source/Particles/Gather/GetExternalFields.H b/Source/Particles/Gather/GetExternalFields.H index 44dee13920d..f742f6668fd 100644 --- a/Source/Particles/Gather/GetExternalFields.H +++ b/Source/Particles/Gather/GetExternalFields.H @@ -4,9 +4,8 @@ #include "Particles/Pusher/GetAndSetPosition.H" #include "Parser/WarpXParserWrapper.H" -// _______________________________________________WarpX Forward declarations -#include "Particles/WarpXParticleContainer.def" -// ________________________________________________________________________ + +#include "Particles/WarpXParticleContainer_fwd.H" #include #include diff --git a/Source/Particles/MultiParticleContainer.H b/Source/Particles/MultiParticleContainer.H index a29f3928aea..05d2730f1d4 100644 --- a/Source/Particles/MultiParticleContainer.H +++ b/Source/Particles/MultiParticleContainer.H @@ -11,6 +11,8 @@ #ifndef WARPX_ParticleContainer_H_ #define WARPX_ParticleContainer_H_ +#include "MultiParticleContainer_fwd.H" + #include "Utils/WarpXUtil.H" #include "WarpXParticleContainer.H" #include "PhysicalParticleContainer.H" @@ -21,8 +23,8 @@ #ifdef WARPX_QED # include "Particles/ElementaryProcess/QEDInternals/QedChiFunctions.H" -# include "Particles/ElementaryProcess/QEDInternals/BreitWheelerEngineWrapper.def" -# include "Particles/ElementaryProcess/QEDInternals/QuantumSyncEngineWrapper.def" +# include "Particles/ElementaryProcess/QEDInternals/BreitWheelerEngineWrapper_fwd.H" +# include "Particles/ElementaryProcess/QEDInternals/QuantumSyncEngineWrapper_fwd.H" #endif #include diff --git a/Source/Particles/MultiParticleContainer.def b/Source/Particles/MultiParticleContainer_fwd.H similarity index 100% rename from Source/Particles/MultiParticleContainer.def rename to Source/Particles/MultiParticleContainer_fwd.H diff --git a/Source/Particles/PhotonParticleContainer.H b/Source/Particles/PhotonParticleContainer.H index 7d6df0f9554..fce97b2cbc6 100644 --- a/Source/Particles/PhotonParticleContainer.H +++ b/Source/Particles/PhotonParticleContainer.H @@ -11,9 +11,8 @@ #include "PhysicalParticleContainer.H" #include "Evolve/WarpXDtType.H" #include "Particles/Gather/ScaleFields.H" -// _______________________________________________WarpX Forward declarations -#include "Particles/WarpXParticleContainer.def" -// ________________________________________________________________________ + +#include "Particles/WarpXParticleContainer_fwd.H" #include #include diff --git a/Source/Particles/PhysicalParticleContainer.H b/Source/Particles/PhysicalParticleContainer.H index 900afddf59d..13d91d59b58 100644 --- a/Source/Particles/PhysicalParticleContainer.H +++ b/Source/Particles/PhysicalParticleContainer.H @@ -19,10 +19,8 @@ #ifdef WARPX_QED # include "Particles/ElementaryProcess/QEDPairGeneration.H" # include "Particles/ElementaryProcess/QEDPhotonEmission.H" -// _______________________________________________WarpX Forward declarations -# include "Particles/ElementaryProcess/QEDInternals/QuantumSyncEngineWrapper.def" -# include "Particles/ElementaryProcess/QEDInternals/BreitWheelerEngineWrapper.def" -// ______________________________________________ +# include "Particles/ElementaryProcess/QEDInternals/QuantumSyncEngineWrapper_fwd.H" +# include "Particles/ElementaryProcess/QEDInternals/BreitWheelerEngineWrapper_fwd.H" #endif #include diff --git a/Source/Particles/Resampling/LevelingThinning.H b/Source/Particles/Resampling/LevelingThinning.H index 8570a137466..535585e8cc8 100644 --- a/Source/Particles/Resampling/LevelingThinning.H +++ b/Source/Particles/Resampling/LevelingThinning.H @@ -8,9 +8,8 @@ #define WARPX_LEVELING_THINNING_H_ #include "Resampling.H" -// _______________________________________________WarpX Forward declarations -#include "Particles/WarpXParticleContainer.def" -// ________________________________________________________________________ + +#include "Particles/WarpXParticleContainer_fwd.H" #include #include diff --git a/Source/Particles/Resampling/Resampling.H b/Source/Particles/Resampling/Resampling.H index d4d9271110d..69823836acd 100644 --- a/Source/Particles/Resampling/Resampling.H +++ b/Source/Particles/Resampling/Resampling.H @@ -8,9 +8,7 @@ #define WARPX_RESAMPLING_H_ #include "ResamplingTrigger.H" -// _______________________________________________WarpX Forward declarations -#include "Particles/WarpXParticleContainer.def" -// ________________________________________________________________________ +#include "Particles/WarpXParticleContainer_fwd.H" #include diff --git a/Source/Particles/RigidInjectedParticleContainer.H b/Source/Particles/RigidInjectedParticleContainer.H index 539380fd7d3..cdd3927e0a8 100644 --- a/Source/Particles/RigidInjectedParticleContainer.H +++ b/Source/Particles/RigidInjectedParticleContainer.H @@ -11,9 +11,8 @@ #include "PhysicalParticleContainer.H" #include "Evolve/WarpXDtType.H" #include "Particles/Gather/ScaleFields.H" -// _______________________________________________WarpX Forward declarations -#include "WarpXParticleContainer.def" -// ________________________________________________________________________ + +#include "WarpXParticleContainer_fwd.H" #include #include diff --git a/Source/Particles/WarpXParticleContainer.H b/Source/Particles/WarpXParticleContainer.H index 377606ff078..0852483c25d 100644 --- a/Source/Particles/WarpXParticleContainer.H +++ b/Source/Particles/WarpXParticleContainer.H @@ -10,15 +10,16 @@ #ifndef WARPX_WarpXParticleContainer_H_ #define WARPX_WarpXParticleContainer_H_ +#include "WarpXParticleContainer_fwd.H" + #include "SpeciesPhysicalProperties.H" #include "Evolve/WarpXDtType.H" -// _______________________________________________WarpX Forward declarations -#include "MultiParticleContainer.def" + +#include "MultiParticleContainer_fwd.H" #ifdef WARPX_QED -# include "ElementaryProcess/QEDInternals/QuantumSyncEngineWrapper.def" -# include "ElementaryProcess/QEDInternals/BreitWheelerEngineWrapper.def" +# include "ElementaryProcess/QEDInternals/QuantumSyncEngineWrapper_fwd.H" +# include "ElementaryProcess/QEDInternals/BreitWheelerEngineWrapper_fwd.H" #endif -// ________________________________________________________________________ #include #include diff --git a/Source/Particles/WarpXParticleContainer.def b/Source/Particles/WarpXParticleContainer_fwd.H similarity index 100% rename from Source/Particles/WarpXParticleContainer.def rename to Source/Particles/WarpXParticleContainer_fwd.H diff --git a/Source/Utils/a.out b/Source/Utils/a.out new file mode 100755 index 0000000000000000000000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A~ILaJhx$Wn6R%Ut9& zri!Y*5H~0bHbkur@9sJ+O_UkobwZI5<3NF8&O=CsvBQ*Y=hmdpH+GBRk=u>BZk;8D zm(m1+q1WzRilDI@=CF3KE1(p~k*sHIui@rvS5XbD==kogS^-WEu(53hzl%PD-1&V<3=JQ7*k!+}bo!RhYmm8&7PX%-#MSW4A{IeANjN2mLjhXxNRLqlNRZw-#^^>X(3 ziz`^8o3#bJ#j}s>TGg#XZ2s*1K>s2cmkG z>Ot@nQB|#XiLF;RCUbb(g=O5?LQN-)1Z(n!B!nUzqe_!{6R8wxfbl98V^r2BJfvc& zLy3~{DlPe{&698$;k8PG)pMWfUcMV^KHR%vt+^ZAI+L)nS-A?=F9#cVP>iG7MM8Io zNq822((-RflsNjlSZ~*PLr7)F&FJ4ml)y;whN4o| zA{#5SI|HNA+XP!I;{?I|a52f(6V1SGvF&l2cS$d2kPCY_@B~s880Tu?T)+4Xp<~73 zGaZpp3a+o@NRpuH_2)0n7Q<&aE)Z*@;|c#p#gJy_y*~QJE-+;$i4J_;*}n}vnr(SzDA@8Y#Q|HPcn$8QCH{|mwEz2N-6 zH0Sg2M)3FH`9HwtKmF>fDc}F6=6pW>kvadD%rU(GA>RKr{NwY#H0Sg2ZS$I*k;abC ze+|FW&lvycPx$;B^oRK2hmU`b&wnP) z|HPcn$4|}qbX#R;^9 zd@-H>+xQor|0BFdm*DU3-M|a_xuO2=(fXD@;r#zCK9uL*xS{`=kDt;Es_rX_2(dGE9T z(|`Bbf9Yd5-h6#Nehm-*b#eX|=KL?r`TTeK+uZu+_rH$wY3=j%zclB6$=5gcZ^Vk- zKYU;RfOBd5`TU>!Oke3I|E-U&(TC!PuggdJT%NCA;e`LuC-FY#ui*3e^*3=cy~o$T zufDC +#include + +int main() +{ + MsgLogger::Logger logger; + + logger.record_entry( + MsgLogger::Type::warning, MsgLogger::Importance::low, + "Particles", "species_1 has 0 particles at time 0"); + + logger.record_entry( + MsgLogger::Type::warning, MsgLogger::Importance::medium, + "Laser", "laser_1 has e_max=0 and will be disabled"); + + logger.record_entry( + MsgLogger::Type::warning, MsgLogger::Importance::high, + "Parallelization", "Parallelization is extremely inefficient!"); + + logger.record_entry( + MsgLogger::Type::warning, MsgLogger::Importance::medium, + "Laser", "laser_1 is out of the simulation box and will be disabled"); + + logger.record_entry( + MsgLogger::Type::warning, MsgLogger::Importance::medium, + "Algorithms", "algorithm xxx is experimental!"); + + std::stringstream ss; + logger.print_warnings(ss); + + std::cout << ss.str(); +} \ No newline at end of file diff --git a/Source/WarpX.H b/Source/WarpX.H index 7b244172e12..a30c31530e3 100644 --- a/Source/WarpX.H +++ b/Source/WarpX.H @@ -17,24 +17,23 @@ #include "Utils/IntervalsParser.H" #include "Parallelization/GuardCellManager.H" #include "Parser/WarpXParserWrapper.H" -// _______________________________________________WarpX Forward declarations -#include "Diagnostics/BackTransformedDiagnostic.def" -#include "FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.def" -#include "FieldSolver/FiniteDifferenceSolver/MacroscopicProperties/MacroscopicProperties.def" -#include "Diagnostics/MultiDiagnostics.def" -#include "Particles/MultiParticleContainer.def" -#include "Diagnostics/ReducedDiags/MultiReducedDiags.def" -#include "Filter/NCIGodfreyFilter.def" -#include "BoundaryConditions/PML.def" -#include "Particles/WarpXParticleContainer.def" + +#include "Diagnostics/BackTransformedDiagnostic_fwd.H" +#include "FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver_fwd.H" +#include "FieldSolver/FiniteDifferenceSolver/MacroscopicProperties/MacroscopicProperties_fwd.H" +#include "Diagnostics/MultiDiagnostics_fwd.H" +#include "Particles/MultiParticleContainer_fwd.H" +#include "Diagnostics/ReducedDiags/MultiReducedDiags_fwd.H" +#include "Filter/NCIGodfreyFilter_fwd.H" +#include "BoundaryConditions/PML_fwd.H" +#include "Particles/WarpXParticleContainer_fwd.H" #ifdef WARPX_USE_PSATD # ifdef WARPX_DIM_RZ -# include "FieldSolver/SpectralSolver/SpectralSolverRZ.def" +# include "FieldSolver/SpectralSolver/SpectralSolverRZ_fwd.H" # else -# include "FieldSolver/SpectralSolver/SpectralSolver.def" +# include "FieldSolver/SpectralSolver/SpectralSolver_fwd.H" # endif #endif -// ________________________________________________________________________ #include #include @@ -52,7 +51,6 @@ # include "AMReX_EBFabFactory.H" #endif -// _______________________________________________AMReX Forward declarations namespace amrex { class Box; } namespace amrex { class BoxArray; } namespace amrex { class DistributionMapping; } From 8ca245ea0630a1c37b3b6ab1dc59aba543a736bc Mon Sep 17 00:00:00 2001 From: Luca Fedeli Date: Thu, 10 Jun 2021 14:50:43 +0200 Subject: [PATCH 40/58] fixed bug --- Source/Diagnostics/ReducedDiags/ParticleMomentum.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/Diagnostics/ReducedDiags/ParticleMomentum.cpp b/Source/Diagnostics/ReducedDiags/ParticleMomentum.cpp index 6fbf76822cb..752905fdeab 100644 --- a/Source/Diagnostics/ReducedDiags/ParticleMomentum.cpp +++ b/Source/Diagnostics/ReducedDiags/ParticleMomentum.cpp @@ -8,6 +8,7 @@ #include "ParticleMomentum.H" #include "WarpX.H" #include "Utils/WarpXConst.H" +#include "Particles/MultiParticleContainer.H" #include #include From 5299f3b6154df4b7d79280ed55dcea62d6b60a87 Mon Sep 17 00:00:00 2001 From: Luca Fedeli Date: Thu, 10 Jun 2021 17:38:41 +0200 Subject: [PATCH 41/58] progress with iwyu --- Source/BoundaryConditions/WarpX_PEC.H | 1 + .../BackTransformFunctor.H | 1 + .../BackTransformFunctor.cpp | 27 +++++++++--------- .../ComputeDiagFunctors/CellCenterFunctor.H | 3 ++ .../ComputeDiagFunctors/DivBFunctor.H | 3 ++ .../ComputeDiagFunctors/DivEFunctor.H | 3 ++ .../ComputeDiagFunctors/DivEFunctor.cpp | 2 -- .../ComputeDiagFunctors/PartPerCellFunctor.H | 3 ++ .../PartPerCellFunctor.cpp | 2 -- .../ComputeDiagFunctors/PartPerGridFunctor.H | 3 ++ .../PartPerGridFunctor.cpp | 2 -- .../ComputeDiagFunctors/RhoFunctor.H | 4 +++ .../ComputeDiagFunctors/RhoFunctor.cpp | 2 -- .../FlushFormats/FlushFormatAscent.H | 1 + .../FlushFormats/FlushFormatCheckpoint.H | 1 + .../FlushFormats/FlushFormatCheckpoint.cpp | 1 - .../FlushFormats/FlushFormatOpenPMD.H | 1 + .../FlushFormats/FlushFormatOpenPMD.cpp | 5 ++-- .../FlushFormats/FlushFormatPlotfile.H | 1 + .../FlushFormats/FlushFormatPlotfile.cpp | 2 -- .../Diagnostics/ReducedDiags/FieldMomentum.H | 1 + .../ReducedDiags/FieldMomentum.cpp | 19 +++++++++++-- .../Diagnostics/ReducedDiags/FieldReduction.H | 24 ++++++++++++++++ .../ReducedDiags/FieldReduction.cpp | 11 +++++++- .../ReducedDiags/MultiReducedDiags.cpp | 3 ++ .../ReducedDiags/ParticleEnergy.cpp | 3 ++ .../ReducedDiags/ParticleMomentum.H | 1 + .../ReducedDiags/ParticleMomentum.cpp | 15 ++++++++-- Source/Diagnostics/WarpXOpenPMD.H | 3 +- Source/EmbeddedBoundary/WarpXInitEB.cpp | 12 ++++++++ Source/FieldSolver/ElectrostaticSolver.cpp | 7 +++++ .../FiniteDifferenceSolver/ComputeDivE.cpp | 1 + .../FiniteDifferenceSolver/EvolveB.cpp | 1 + .../FiniteDifferenceSolver/EvolveE.cpp | 1 + .../FiniteDifferenceSolver/EvolveEPML.cpp | 2 ++ .../FiniteDifferenceSolver/EvolveF.cpp | 1 + .../FiniteDifferenceSolver/EvolveFPML.cpp | 1 + .../FiniteDifferenceSolver/EvolveG.cpp | 1 + .../FiniteDifferenceSolver.H | 1 + .../MacroscopicEvolveE.cpp | 1 + .../ComovingPsatdAlgorithm.H | 2 ++ .../SpectralAlgorithms/PMLPsatdAlgorithm.H | 2 ++ .../SpectralBaseAlgorithm.H | 2 ++ .../SpectralBaseAlgorithm.cpp | 1 - .../SpectralSolver/SpectralFieldData.cpp | 1 + Source/FieldSolver/WarpXPushFieldsEM.cpp | 3 +- Source/Filter/BilinearFilter.H | 1 + Source/Filter/Filter.H | 3 ++ Source/Initialization/InjectorDensity.cpp | 1 + Source/Initialization/InjectorMomentum.H | 1 + Source/Initialization/PlasmaInjector.cpp | 1 + Source/Initialization/WarpXAMReXInit.cpp | 2 +- Source/Initialization/WarpXInitData.cpp | 2 +- Source/Parallelization/WarpXComm.cpp | 25 +++++++++++++++++ Source/Parallelization/WarpXRegrid.cpp | 28 ++++++++++++++++++- .../Collision/PairWiseCoulombCollision.H | 1 + .../Particles/ElementaryProcess/Ionization.H | 4 ++- .../ElementaryProcess/QEDPairGeneration.H | 4 ++- .../ElementaryProcess/QEDPhotonEmission.H | 3 ++ Source/Particles/MultiParticleContainer.H | 1 - Source/Particles/MultiParticleContainer.cpp | 4 +-- Source/Particles/PhotonParticleContainer.cpp | 5 ++++ Source/Particles/Sorting/Partition.cpp | 1 + Source/Utils/CoarsenIO.cpp | 1 + Source/Utils/ParticleUtils.H | 1 + Source/WarpX.H | 21 +++----------- 66 files changed, 235 insertions(+), 63 deletions(-) diff --git a/Source/BoundaryConditions/WarpX_PEC.H b/Source/BoundaryConditions/WarpX_PEC.H index 044cd7d8c2a..3426fccff12 100644 --- a/Source/BoundaryConditions/WarpX_PEC.H +++ b/Source/BoundaryConditions/WarpX_PEC.H @@ -11,6 +11,7 @@ #include #include #include +#include #include #include diff --git a/Source/Diagnostics/ComputeDiagFunctors/BackTransformFunctor.H b/Source/Diagnostics/ComputeDiagFunctors/BackTransformFunctor.H index 0f3f537e91b..151d16d7008 100644 --- a/Source/Diagnostics/ComputeDiagFunctors/BackTransformFunctor.H +++ b/Source/Diagnostics/ComputeDiagFunctors/BackTransformFunctor.H @@ -7,6 +7,7 @@ #include #include #include +#include #include diff --git a/Source/Diagnostics/ComputeDiagFunctors/BackTransformFunctor.cpp b/Source/Diagnostics/ComputeDiagFunctors/BackTransformFunctor.cpp index 4226983a30c..8182a5ccd62 100644 --- a/Source/Diagnostics/ComputeDiagFunctors/BackTransformFunctor.cpp +++ b/Source/Diagnostics/ComputeDiagFunctors/BackTransformFunctor.cpp @@ -1,25 +1,24 @@ #include "BackTransformFunctor.H" #include "WarpX.H" -#include "Diagnostics/ComputeDiagFunctors/ComputeDiagFunctor.H" // for Comp... -#include "Utils/WarpXConst.H" // for c +#include "Diagnostics/ComputeDiagFunctors/ComputeDiagFunctor.H" +#include "Utils/WarpXConst.H" #include -#include // for Array4 -#include // for BoxA... -#include // for AMRE... -#include // for FArr... -#include // for FabA... -#include // for Geom... -#include // for notI... -#include // for Para... -#include // for AMRE... -#include // for MFIter -#include // for Mult... +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include -#include // for map +#include using namespace amrex; diff --git a/Source/Diagnostics/ComputeDiagFunctors/CellCenterFunctor.H b/Source/Diagnostics/ComputeDiagFunctors/CellCenterFunctor.H index 809cc47bb38..9f963b6e2cf 100644 --- a/Source/Diagnostics/ComputeDiagFunctors/CellCenterFunctor.H +++ b/Source/Diagnostics/ComputeDiagFunctors/CellCenterFunctor.H @@ -3,6 +3,9 @@ #include "ComputeDiagFunctor.H" +#include +#include + /** * \brief Functor to cell-center MF and store result in mf_out. */ diff --git a/Source/Diagnostics/ComputeDiagFunctors/DivBFunctor.H b/Source/Diagnostics/ComputeDiagFunctors/DivBFunctor.H index 95bb6b6689f..31966899487 100644 --- a/Source/Diagnostics/ComputeDiagFunctors/DivBFunctor.H +++ b/Source/Diagnostics/ComputeDiagFunctors/DivBFunctor.H @@ -3,6 +3,9 @@ #include "ComputeDiagFunctor.H" +#include +#include + #include /** diff --git a/Source/Diagnostics/ComputeDiagFunctors/DivEFunctor.H b/Source/Diagnostics/ComputeDiagFunctors/DivEFunctor.H index a352682417d..45c868d1144 100644 --- a/Source/Diagnostics/ComputeDiagFunctors/DivEFunctor.H +++ b/Source/Diagnostics/ComputeDiagFunctors/DivEFunctor.H @@ -3,6 +3,9 @@ #include "ComputeDiagFunctor.H" +#include +#include + #include /** diff --git a/Source/Diagnostics/ComputeDiagFunctors/DivEFunctor.cpp b/Source/Diagnostics/ComputeDiagFunctors/DivEFunctor.cpp index c0c744db706..ef5534dc562 100644 --- a/Source/Diagnostics/ComputeDiagFunctors/DivEFunctor.cpp +++ b/Source/Diagnostics/ComputeDiagFunctors/DivEFunctor.cpp @@ -8,8 +8,6 @@ #include #include -#include -#include DivEFunctor::DivEFunctor(const std::array arr_mf_src, const int lev, const amrex::IntVect crse_ratio, diff --git a/Source/Diagnostics/ComputeDiagFunctors/PartPerCellFunctor.H b/Source/Diagnostics/ComputeDiagFunctors/PartPerCellFunctor.H index ac76c0db15b..0e5baebdf6c 100644 --- a/Source/Diagnostics/ComputeDiagFunctors/PartPerCellFunctor.H +++ b/Source/Diagnostics/ComputeDiagFunctors/PartPerCellFunctor.H @@ -3,6 +3,9 @@ #include "ComputeDiagFunctor.H" +#include +#include + /** * \brief Functor to cell-center MF and store result in mf_out. */ diff --git a/Source/Diagnostics/ComputeDiagFunctors/PartPerCellFunctor.cpp b/Source/Diagnostics/ComputeDiagFunctors/PartPerCellFunctor.cpp index 8c5479640ea..50b8d3a428f 100644 --- a/Source/Diagnostics/ComputeDiagFunctors/PartPerCellFunctor.cpp +++ b/Source/Diagnostics/ComputeDiagFunctors/PartPerCellFunctor.cpp @@ -6,8 +6,6 @@ #include "Particles/MultiParticleContainer.H" #include -#include -#include #include using namespace amrex::literals; diff --git a/Source/Diagnostics/ComputeDiagFunctors/PartPerGridFunctor.H b/Source/Diagnostics/ComputeDiagFunctors/PartPerGridFunctor.H index 5c5d4b84ac8..e4f7cb372ab 100644 --- a/Source/Diagnostics/ComputeDiagFunctors/PartPerGridFunctor.H +++ b/Source/Diagnostics/ComputeDiagFunctors/PartPerGridFunctor.H @@ -3,6 +3,9 @@ #include "ComputeDiagFunctor.H" +#include +#include + /** * \brief Functor to cell-center MF and store result in mf_out. */ diff --git a/Source/Diagnostics/ComputeDiagFunctors/PartPerGridFunctor.cpp b/Source/Diagnostics/ComputeDiagFunctors/PartPerGridFunctor.cpp index c4552d81e8a..20f66bbeb01 100644 --- a/Source/Diagnostics/ComputeDiagFunctors/PartPerGridFunctor.cpp +++ b/Source/Diagnostics/ComputeDiagFunctors/PartPerGridFunctor.cpp @@ -11,9 +11,7 @@ #include #include #include -#include #include -#include #include #include diff --git a/Source/Diagnostics/ComputeDiagFunctors/RhoFunctor.H b/Source/Diagnostics/ComputeDiagFunctors/RhoFunctor.H index b6af4a41a45..5f1e52187f9 100644 --- a/Source/Diagnostics/ComputeDiagFunctors/RhoFunctor.H +++ b/Source/Diagnostics/ComputeDiagFunctors/RhoFunctor.H @@ -3,6 +3,10 @@ #include "ComputeDiagFunctor.H" +#include +#include + + /** * \brief Functor to compute charge density rho into mf_out */ diff --git a/Source/Diagnostics/ComputeDiagFunctors/RhoFunctor.cpp b/Source/Diagnostics/ComputeDiagFunctors/RhoFunctor.cpp index 467374ad4d5..50c5400afee 100644 --- a/Source/Diagnostics/ComputeDiagFunctors/RhoFunctor.cpp +++ b/Source/Diagnostics/ComputeDiagFunctors/RhoFunctor.cpp @@ -11,8 +11,6 @@ #endif #include -#include -#include #include diff --git a/Source/Diagnostics/FlushFormats/FlushFormatAscent.H b/Source/Diagnostics/FlushFormats/FlushFormatAscent.H index 75ae2269620..6eba18fd826 100644 --- a/Source/Diagnostics/FlushFormats/FlushFormatAscent.H +++ b/Source/Diagnostics/FlushFormats/FlushFormatAscent.H @@ -11,6 +11,7 @@ # include # include #endif +#include #include diff --git a/Source/Diagnostics/FlushFormats/FlushFormatCheckpoint.H b/Source/Diagnostics/FlushFormats/FlushFormatCheckpoint.H index f7d5801af36..2f56fd82502 100644 --- a/Source/Diagnostics/FlushFormats/FlushFormatCheckpoint.H +++ b/Source/Diagnostics/FlushFormats/FlushFormatCheckpoint.H @@ -7,6 +7,7 @@ #include #include +#include #include diff --git a/Source/Diagnostics/FlushFormats/FlushFormatCheckpoint.cpp b/Source/Diagnostics/FlushFormats/FlushFormatCheckpoint.cpp index 7eb9f9ef79f..1c6fc6ab401 100644 --- a/Source/Diagnostics/FlushFormats/FlushFormatCheckpoint.cpp +++ b/Source/Diagnostics/FlushFormats/FlushFormatCheckpoint.cpp @@ -9,7 +9,6 @@ #include #include #include -#include #include #include #include diff --git a/Source/Diagnostics/FlushFormats/FlushFormatOpenPMD.H b/Source/Diagnostics/FlushFormats/FlushFormatOpenPMD.H index 6da1b27c5f7..4fc200c0484 100644 --- a/Source/Diagnostics/FlushFormats/FlushFormatOpenPMD.H +++ b/Source/Diagnostics/FlushFormats/FlushFormatOpenPMD.H @@ -8,6 +8,7 @@ #include #include +#include #include #include diff --git a/Source/Diagnostics/FlushFormats/FlushFormatOpenPMD.cpp b/Source/Diagnostics/FlushFormats/FlushFormatOpenPMD.cpp index aa82a1e8886..c9773315b02 100644 --- a/Source/Diagnostics/FlushFormats/FlushFormatOpenPMD.cpp +++ b/Source/Diagnostics/FlushFormats/FlushFormatOpenPMD.cpp @@ -4,15 +4,14 @@ #include "Utils/WarpXProfilerWrapper.H" #include -#include #include #include - -#include +#include #include #include #include +#include using namespace amrex; diff --git a/Source/Diagnostics/FlushFormats/FlushFormatPlotfile.H b/Source/Diagnostics/FlushFormats/FlushFormatPlotfile.H index 8983db6ff12..e533bac29a7 100644 --- a/Source/Diagnostics/FlushFormats/FlushFormatPlotfile.H +++ b/Source/Diagnostics/FlushFormats/FlushFormatPlotfile.H @@ -7,6 +7,7 @@ #include #include +#include #include #include diff --git a/Source/Diagnostics/FlushFormats/FlushFormatPlotfile.cpp b/Source/Diagnostics/FlushFormats/FlushFormatPlotfile.cpp index e0bf0f3d95c..16d0edc6464 100644 --- a/Source/Diagnostics/FlushFormats/FlushFormatPlotfile.cpp +++ b/Source/Diagnostics/FlushFormats/FlushFormatPlotfile.cpp @@ -19,13 +19,11 @@ #include #include #include -#include #include #include #include #include #include -#include #include #include #include diff --git a/Source/Diagnostics/ReducedDiags/FieldMomentum.H b/Source/Diagnostics/ReducedDiags/FieldMomentum.H index 5056e6c77c3..2dadb6a8e86 100644 --- a/Source/Diagnostics/ReducedDiags/FieldMomentum.H +++ b/Source/Diagnostics/ReducedDiags/FieldMomentum.H @@ -9,6 +9,7 @@ #define WARPX_DIAGNOSTICS_REDUCEDDIAGS_FIELDMOMENTUM_H_ #include "ReducedDiags.H" + #include /** diff --git a/Source/Diagnostics/ReducedDiags/FieldMomentum.cpp b/Source/Diagnostics/ReducedDiags/FieldMomentum.cpp index 7948ae8495e..26831601049 100644 --- a/Source/Diagnostics/ReducedDiags/FieldMomentum.cpp +++ b/Source/Diagnostics/ReducedDiags/FieldMomentum.cpp @@ -9,8 +9,8 @@ #include "WarpX.H" #include "Utils/WarpXConst.H" #include "Utils/CoarsenIO.H" +#include "Utils/IntervalsParser.H" -#include #include #include #include @@ -18,9 +18,22 @@ #include #include -#include #include -#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include using namespace amrex; diff --git a/Source/Diagnostics/ReducedDiags/FieldReduction.H b/Source/Diagnostics/ReducedDiags/FieldReduction.H index 772656009f1..ae65ced2b11 100644 --- a/Source/Diagnostics/ReducedDiags/FieldReduction.H +++ b/Source/Diagnostics/ReducedDiags/FieldReduction.H @@ -11,6 +11,30 @@ #include "ReducedDiags.H" #include "WarpX.H" #include "Utils/CoarsenIO.H" +#include "Parser/WarpXParserWrapper.H" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include + /** * This class contains a function that computes an arbitrary reduction of the fields. The function diff --git a/Source/Diagnostics/ReducedDiags/FieldReduction.cpp b/Source/Diagnostics/ReducedDiags/FieldReduction.cpp index e10d913f12e..4a95fc2eacd 100644 --- a/Source/Diagnostics/ReducedDiags/FieldReduction.cpp +++ b/Source/Diagnostics/ReducedDiags/FieldReduction.cpp @@ -6,10 +6,19 @@ */ #include "FieldReduction.H" -#include "WarpX.H" + +#include "Utils/IntervalsParser.H" #include "Utils/WarpXAlgorithmSelection.H" #include "Utils/WarpXUtil.H" +#include +#include +#include +#include + +#include +#include + // constructor FieldReduction::FieldReduction (std::string rd_name) : ReducedDiags{rd_name} diff --git a/Source/Diagnostics/ReducedDiags/MultiReducedDiags.cpp b/Source/Diagnostics/ReducedDiags/MultiReducedDiags.cpp index d9e28c26801..aa6d9a1faaa 100644 --- a/Source/Diagnostics/ReducedDiags/MultiReducedDiags.cpp +++ b/Source/Diagnostics/ReducedDiags/MultiReducedDiags.cpp @@ -27,6 +27,9 @@ #include #include +#include +#include +#include using namespace amrex; diff --git a/Source/Diagnostics/ReducedDiags/ParticleEnergy.cpp b/Source/Diagnostics/ReducedDiags/ParticleEnergy.cpp index 797326b79c4..17828bc9148 100644 --- a/Source/Diagnostics/ReducedDiags/ParticleEnergy.cpp +++ b/Source/Diagnostics/ReducedDiags/ParticleEnergy.cpp @@ -21,6 +21,9 @@ #include #include #include +#include +#include +#include #include #include diff --git a/Source/Diagnostics/ReducedDiags/ParticleMomentum.H b/Source/Diagnostics/ReducedDiags/ParticleMomentum.H index 67f94de433b..ec16d8184c5 100644 --- a/Source/Diagnostics/ReducedDiags/ParticleMomentum.H +++ b/Source/Diagnostics/ReducedDiags/ParticleMomentum.H @@ -9,6 +9,7 @@ #define WARPX_DIAGNOSTICS_REDUCEDDIAGS_PARTICLEMOMENTUM_H_ #include "ReducedDiags.H" + #include /** diff --git a/Source/Diagnostics/ReducedDiags/ParticleMomentum.cpp b/Source/Diagnostics/ReducedDiags/ParticleMomentum.cpp index 752905fdeab..508ff07c2ac 100644 --- a/Source/Diagnostics/ReducedDiags/ParticleMomentum.cpp +++ b/Source/Diagnostics/ReducedDiags/ParticleMomentum.cpp @@ -9,11 +9,22 @@ #include "WarpX.H" #include "Utils/WarpXConst.H" #include "Particles/MultiParticleContainer.H" +#include "Particles/SpeciesPhysicalProperties.H" +#include "Particles/WarpXParticleContainer.H" +#include "Utils/IntervalsParser.H" #include #include - -#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include #include #include #include diff --git a/Source/Diagnostics/WarpXOpenPMD.H b/Source/Diagnostics/WarpXOpenPMD.H index 33b64d3339f..5e0cf70f144 100644 --- a/Source/Diagnostics/WarpXOpenPMD.H +++ b/Source/Diagnostics/WarpXOpenPMD.H @@ -26,8 +26,9 @@ # include #endif +#include +#include #include -#include #include #include diff --git a/Source/EmbeddedBoundary/WarpXInitEB.cpp b/Source/EmbeddedBoundary/WarpXInitEB.cpp index ef6bf7b4280..b5da3730656 100644 --- a/Source/EmbeddedBoundary/WarpXInitEB.cpp +++ b/Source/EmbeddedBoundary/WarpXInitEB.cpp @@ -1,6 +1,12 @@ #include "WarpX.H" #include "Utils/WarpXUtil.H" +#include "Parser/WarpXParser.H" +#include "Parser/WarpXParserWrapper.H" +#include +#include +#include +#include #include #include #include @@ -12,11 +18,17 @@ #include #include #include +#include +#include +#include +#include +#include #ifdef AMREX_USE_EB # include # include #endif +#include #include #include #include diff --git a/Source/FieldSolver/ElectrostaticSolver.cpp b/Source/FieldSolver/ElectrostaticSolver.cpp index 9de1facb679..71f71fcc884 100644 --- a/Source/FieldSolver/ElectrostaticSolver.cpp +++ b/Source/FieldSolver/ElectrostaticSolver.cpp @@ -9,6 +9,8 @@ #include "Particles/MultiParticleContainer.H" #include "Particles/WarpXParticleContainer.H" #include "Utils/WarpXAlgorithmSelection.H" +#include "Parser/WarpXParser.H" +#include "Utils/WarpXUtil.H" #include "Utils/WarpXConst.H" #include @@ -35,7 +37,12 @@ #include #include #include +#include +#include +#include +#include +#include #include #include diff --git a/Source/FieldSolver/FiniteDifferenceSolver/ComputeDivE.cpp b/Source/FieldSolver/FiniteDifferenceSolver/ComputeDivE.cpp index 487377227f7..09bb139df96 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/ComputeDivE.cpp +++ b/Source/FieldSolver/FiniteDifferenceSolver/ComputeDivE.cpp @@ -27,6 +27,7 @@ #include #include #include +#include #include #include diff --git a/Source/FieldSolver/FiniteDifferenceSolver/EvolveB.cpp b/Source/FieldSolver/FiniteDifferenceSolver/EvolveB.cpp index 904e8ed4959..14fe0def55d 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/EvolveB.cpp +++ b/Source/FieldSolver/FiniteDifferenceSolver/EvolveB.cpp @@ -33,6 +33,7 @@ #include #include #include +#include #include #include diff --git a/Source/FieldSolver/FiniteDifferenceSolver/EvolveE.cpp b/Source/FieldSolver/FiniteDifferenceSolver/EvolveE.cpp index 29e5cf7443e..6608252e36f 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/EvolveE.cpp +++ b/Source/FieldSolver/FiniteDifferenceSolver/EvolveE.cpp @@ -33,6 +33,7 @@ #include #include #include +#include #include #include diff --git a/Source/FieldSolver/FiniteDifferenceSolver/EvolveEPML.cpp b/Source/FieldSolver/FiniteDifferenceSolver/EvolveEPML.cpp index bc430ffbbcc..fd51cfe74f5 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/EvolveEPML.cpp +++ b/Source/FieldSolver/FiniteDifferenceSolver/EvolveEPML.cpp @@ -31,6 +31,8 @@ #include #include #include +#include +#include #include diff --git a/Source/FieldSolver/FiniteDifferenceSolver/EvolveF.cpp b/Source/FieldSolver/FiniteDifferenceSolver/EvolveF.cpp index f5d5d58a4e7..534f566d4f8 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/EvolveF.cpp +++ b/Source/FieldSolver/FiniteDifferenceSolver/EvolveF.cpp @@ -29,6 +29,7 @@ #include #include #include +#include #include #include diff --git a/Source/FieldSolver/FiniteDifferenceSolver/EvolveFPML.cpp b/Source/FieldSolver/FiniteDifferenceSolver/EvolveFPML.cpp index f90fceb8f7c..4d7c2ef0be9 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/EvolveFPML.cpp +++ b/Source/FieldSolver/FiniteDifferenceSolver/EvolveFPML.cpp @@ -28,6 +28,7 @@ #include #include #include +#include #include diff --git a/Source/FieldSolver/FiniteDifferenceSolver/EvolveG.cpp b/Source/FieldSolver/FiniteDifferenceSolver/EvolveG.cpp index a060b64ff71..72cb504214f 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/EvolveG.cpp +++ b/Source/FieldSolver/FiniteDifferenceSolver/EvolveG.cpp @@ -27,6 +27,7 @@ #include #include #include +#include #include #include diff --git a/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.H b/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.H index dc44ab1b338..0e5afb89561 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.H +++ b/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.H @@ -16,6 +16,7 @@ #include #include #include +#include #include #include diff --git a/Source/FieldSolver/FiniteDifferenceSolver/MacroscopicEvolveE.cpp b/Source/FieldSolver/FiniteDifferenceSolver/MacroscopicEvolveE.cpp index b32f3de2b2c..fa5dc283ad5 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/MacroscopicEvolveE.cpp +++ b/Source/FieldSolver/FiniteDifferenceSolver/MacroscopicEvolveE.cpp @@ -24,6 +24,7 @@ #include #include #include +#include #include #include diff --git a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/ComovingPsatdAlgorithm.H b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/ComovingPsatdAlgorithm.H index 701ee6aafd4..f8c8259010e 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/ComovingPsatdAlgorithm.H +++ b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/ComovingPsatdAlgorithm.H @@ -8,6 +8,8 @@ #include #include #include +#include +#include #include #include diff --git a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PMLPsatdAlgorithm.H b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PMLPsatdAlgorithm.H index 99032cf060b..6cb7dfc6ace 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PMLPsatdAlgorithm.H +++ b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PMLPsatdAlgorithm.H @@ -13,6 +13,8 @@ #include "FieldSolver/SpectralSolver/SpectralKSpace_fwd.H" #include +#include +#include #include #include diff --git a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/SpectralBaseAlgorithm.H b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/SpectralBaseAlgorithm.H index 17b0851ad09..6d8f349215d 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/SpectralBaseAlgorithm.H +++ b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/SpectralBaseAlgorithm.H @@ -16,6 +16,8 @@ #include #include #include +#include +#include #include #include diff --git a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/SpectralBaseAlgorithm.cpp b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/SpectralBaseAlgorithm.cpp index d281bbedc70..1f2950ca6a5 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/SpectralBaseAlgorithm.cpp +++ b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/SpectralBaseAlgorithm.cpp @@ -11,7 +11,6 @@ #include #include -#include #include #include #include diff --git a/Source/FieldSolver/SpectralSolver/SpectralFieldData.cpp b/Source/FieldSolver/SpectralSolver/SpectralFieldData.cpp index 455f83925a8..c2c227fadf6 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralFieldData.cpp +++ b/Source/FieldSolver/SpectralSolver/SpectralFieldData.cpp @@ -25,6 +25,7 @@ #include #include #include +#include #if WARPX_USE_PSATD diff --git a/Source/FieldSolver/WarpXPushFieldsEM.cpp b/Source/FieldSolver/WarpXPushFieldsEM.cpp index d838ccce1c4..56766a2a5ac 100644 --- a/Source/FieldSolver/WarpXPushFieldsEM.cpp +++ b/Source/FieldSolver/WarpXPushFieldsEM.cpp @@ -13,8 +13,6 @@ #include "FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.H" #include "Utils/WarpXAlgorithmSelection.H" #include "Utils/WarpXProfilerWrapper.H" -#include "BoundaryConditions/WarpX_PML_kernels.H" -#include "BoundaryConditions/PML_current.H" #include "WarpX_FDTD.H" #include "WarpXPushFieldsEM_K.H" #if defined(WARPX_DIM_RZ) || defined(WARPX_USE_PSATD) @@ -44,6 +42,7 @@ #include #include #include +#include #include #include diff --git a/Source/Filter/BilinearFilter.H b/Source/Filter/BilinearFilter.H index 1bf19978dff..c797523f71e 100644 --- a/Source/Filter/BilinearFilter.H +++ b/Source/Filter/BilinearFilter.H @@ -11,6 +11,7 @@ #include "Filter.H" #include +#include class BilinearFilter : public Filter { diff --git a/Source/Filter/Filter.H b/Source/Filter/Filter.H index d3bcd56a4eb..1dd1a6a9533 100644 --- a/Source/Filter/Filter.H +++ b/Source/Filter/Filter.H @@ -9,6 +9,9 @@ #include #include #include +#include +#include +#include #ifndef WARPX_FILTER_H_ #define WARPX_FILTER_H_ diff --git a/Source/Initialization/InjectorDensity.cpp b/Source/Initialization/InjectorDensity.cpp index 456f23f88db..4d8c708ab52 100644 --- a/Source/Initialization/InjectorDensity.cpp +++ b/Source/Initialization/InjectorDensity.cpp @@ -8,6 +8,7 @@ #include "InjectorDensity.H" #include "Initialization/CustomDensityProb.H" +#include "Utils/WarpXUtil.H" #include #include diff --git a/Source/Initialization/InjectorMomentum.H b/Source/Initialization/InjectorMomentum.H index 1741b5ece06..34726882139 100644 --- a/Source/Initialization/InjectorMomentum.H +++ b/Source/Initialization/InjectorMomentum.H @@ -18,6 +18,7 @@ #include #include #include +#include #include #include diff --git a/Source/Initialization/PlasmaInjector.cpp b/Source/Initialization/PlasmaInjector.cpp index ef4e60fbc20..7fff101b8ac 100644 --- a/Source/Initialization/PlasmaInjector.cpp +++ b/Source/Initialization/PlasmaInjector.cpp @@ -25,6 +25,7 @@ #include #include #include +#include #include #include diff --git a/Source/Initialization/WarpXAMReXInit.cpp b/Source/Initialization/WarpXAMReXInit.cpp index a1d7d1b3651..396fe67e325 100644 --- a/Source/Initialization/WarpXAMReXInit.cpp +++ b/Source/Initialization/WarpXAMReXInit.cpp @@ -7,9 +7,9 @@ #include "Initialization/WarpXAMReXInit.H" +#include #include - namespace { /** Overwrite defaults in AMReX Inputs * diff --git a/Source/Initialization/WarpXInitData.cpp b/Source/Initialization/WarpXInitData.cpp index 2b8eab12eab..05e3b19be46 100644 --- a/Source/Initialization/WarpXInitData.cpp +++ b/Source/Initialization/WarpXInitData.cpp @@ -27,7 +27,6 @@ #include #include -#include #include #include #include @@ -50,6 +49,7 @@ #include #include #include +#include #ifdef BL_USE_SENSEI_INSITU # include #endif diff --git a/Source/Parallelization/WarpXComm.cpp b/Source/Parallelization/WarpXComm.cpp index 9d148532327..468d5d8a9d5 100644 --- a/Source/Parallelization/WarpXComm.cpp +++ b/Source/Parallelization/WarpXComm.cpp @@ -13,9 +13,34 @@ #include "Utils/CoarsenMR.H" #include "Utils/WarpXProfilerWrapper.H" #include "BoundaryConditions/PML.H" +#include "Filter/BilinearFilter.H" +#include "Utils/IntervalsParser.H" +#include "Utils/WarpXAlgorithmSelection.H" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include +#include +#include using namespace amrex; diff --git a/Source/Parallelization/WarpXRegrid.cpp b/Source/Parallelization/WarpXRegrid.cpp index 872a78c0e01..c0c76e336bc 100644 --- a/Source/Parallelization/WarpXRegrid.cpp +++ b/Source/Parallelization/WarpXRegrid.cpp @@ -12,9 +12,35 @@ #include "Utils/WarpXProfilerWrapper.H" #include "Particles/MultiParticleContainer.H" #include "Diagnostics/MultiDiagnostics.H" +#include "Particles/WarpXParticleContainer.H" #include - +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include #include #include diff --git a/Source/Particles/Collision/PairWiseCoulombCollision.H b/Source/Particles/Collision/PairWiseCoulombCollision.H index ae7f191dad3..94548b89eb4 100644 --- a/Source/Particles/Collision/PairWiseCoulombCollision.H +++ b/Source/Particles/Collision/PairWiseCoulombCollision.H @@ -13,6 +13,7 @@ #include "Particles/WarpXParticleContainer_fwd.H" #include +#include #include diff --git a/Source/Particles/ElementaryProcess/Ionization.H b/Source/Particles/ElementaryProcess/Ionization.H index 995b2bd548e..6f760f8241d 100644 --- a/Source/Particles/ElementaryProcess/Ionization.H +++ b/Source/Particles/ElementaryProcess/Ionization.H @@ -21,7 +21,9 @@ #include #include #include -#include +#include +#include +#include #include diff --git a/Source/Particles/ElementaryProcess/QEDPairGeneration.H b/Source/Particles/ElementaryProcess/QEDPairGeneration.H index bfdc5ebb441..2bbae44ae9b 100644 --- a/Source/Particles/ElementaryProcess/QEDPairGeneration.H +++ b/Source/Particles/ElementaryProcess/QEDPairGeneration.H @@ -21,7 +21,9 @@ #include #include #include - +#include +#include +#include /** @file * diff --git a/Source/Particles/ElementaryProcess/QEDPhotonEmission.H b/Source/Particles/ElementaryProcess/QEDPhotonEmission.H index 9ab29023aef..0d3b605b754 100644 --- a/Source/Particles/ElementaryProcess/QEDPhotonEmission.H +++ b/Source/Particles/ElementaryProcess/QEDPhotonEmission.H @@ -23,6 +23,9 @@ #include #include #include +#include +#include +#include #include #include diff --git a/Source/Particles/MultiParticleContainer.H b/Source/Particles/MultiParticleContainer.H index 05d2730f1d4..66903fcb710 100644 --- a/Source/Particles/MultiParticleContainer.H +++ b/Source/Particles/MultiParticleContainer.H @@ -22,7 +22,6 @@ #include "Utils/WarpXConst.H" #ifdef WARPX_QED -# include "Particles/ElementaryProcess/QEDInternals/QedChiFunctions.H" # include "Particles/ElementaryProcess/QEDInternals/BreitWheelerEngineWrapper_fwd.H" # include "Particles/ElementaryProcess/QEDInternals/QuantumSyncEngineWrapper_fwd.H" #endif diff --git a/Source/Particles/MultiParticleContainer.cpp b/Source/Particles/MultiParticleContainer.cpp index ad0e1ac5758..f8729b067e9 100644 --- a/Source/Particles/MultiParticleContainer.cpp +++ b/Source/Particles/MultiParticleContainer.cpp @@ -27,10 +27,10 @@ #ifdef WARPX_QED # include "Particles/ElementaryProcess/QEDInternals/BreitWheelerEngineWrapper.H" # include "Particles/ElementaryProcess/QEDInternals/QuantumSyncEngineWrapper.H" -# include "Particles/ElementaryProcess/QEDInternals/SchwingerProcessWrapper.H" # include "Particles/ElementaryProcess/QEDSchwingerProcess.H" # include "Particles/ParticleCreation/FilterCreateTransformFromFAB.H" -# include "Particles/ElementaryProcess/QEDInternals/QedChiFunctions.H" +# include "Particles/ElementaryProcess/QEDPairGeneration.H" +# include "Particles/ElementaryProcess/QEDPhotonEmission.H" #endif #include diff --git a/Source/Particles/PhotonParticleContainer.cpp b/Source/Particles/PhotonParticleContainer.cpp index 78862f01978..39cdae3f0f7 100644 --- a/Source/Particles/PhotonParticleContainer.cpp +++ b/Source/Particles/PhotonParticleContainer.cpp @@ -37,6 +37,11 @@ #include #include +#include +#include +#include +#include + using namespace amrex; PhotonParticleContainer::PhotonParticleContainer (AmrCore* amr_core, int ispecies, diff --git a/Source/Particles/Sorting/Partition.cpp b/Source/Particles/Sorting/Partition.cpp index d6021191200..6753a6b9475 100644 --- a/Source/Particles/Sorting/Partition.cpp +++ b/Source/Particles/Sorting/Partition.cpp @@ -17,6 +17,7 @@ #include #include #include +#include #include diff --git a/Source/Utils/CoarsenIO.cpp b/Source/Utils/CoarsenIO.cpp index 3d9139ab447..de508e7bb73 100644 --- a/Source/Utils/CoarsenIO.cpp +++ b/Source/Utils/CoarsenIO.cpp @@ -2,6 +2,7 @@ #include #include +#include #include #include #include diff --git a/Source/Utils/ParticleUtils.H b/Source/Utils/ParticleUtils.H index b076d3a38ef..663519f302a 100644 --- a/Source/Utils/ParticleUtils.H +++ b/Source/Utils/ParticleUtils.H @@ -11,6 +11,7 @@ #include #include +#include namespace ParticleUtils { diff --git a/Source/WarpX.H b/Source/WarpX.H index a30c31530e3..708f75e4546 100644 --- a/Source/WarpX.H +++ b/Source/WarpX.H @@ -51,23 +51,10 @@ # include "AMReX_EBFabFactory.H" #endif -namespace amrex { class Box; } -namespace amrex { class BoxArray; } -namespace amrex { class DistributionMapping; } -namespace amrex { class FArrayBox; } -namespace amrex { class Geometry; } -namespace amrex { class IArrayBox; } -namespace amrex { class MultiFab; } -namespace amrex { class TagBoxArray; } -namespace amrex { class iMultiFab; } -namespace amrex { template class FabFactory; } -namespace amrex { template class LayoutData; } -// _______________________________________________Headers -//#include -//#include -//#include -// #include -// ________________________________________________________________________ +#include +#include +#include +#include #include #include From 721d8140225908ef77261c525a79d752637a2bd6 Mon Sep 17 00:00:00 2001 From: Luca Fedeli Date: Sun, 13 Jun 2021 14:28:13 +0200 Subject: [PATCH 42/58] update AMReX branch --- cmake/dependencies/AMReX.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/dependencies/AMReX.cmake b/cmake/dependencies/AMReX.cmake index f3651fc607e..6b26fe325bd 100644 --- a/cmake/dependencies/AMReX.cmake +++ b/cmake/dependencies/AMReX.cmake @@ -231,7 +231,7 @@ set(WarpX_amrex_src "" set(WarpX_amrex_repo "https://github.com/AMReX-Codes/amrex.git" CACHE STRING "Repository URI to pull and build AMReX from if(WarpX_amrex_internal)") -set(WarpX_amrex_branch "87e01fe44b483adab034072dc000aed67aa1b5a7" +set(WarpX_amrex_branch "64e41a8d314fc28f6d6473095ac5bdcd256c445f" CACHE STRING "Repository branch for WarpX_amrex_repo if(WarpX_amrex_internal)") From 829a112227b27583d363d1e78d99dcd5f39229e7 Mon Sep 17 00:00:00 2001 From: Luca Fedeli Date: Mon, 14 Jun 2021 14:37:22 +0200 Subject: [PATCH 43/58] enforce alphabetic order --- Source/BoundaryConditions/PML.cpp | 12 ++-- Source/BoundaryConditions/PML_current.H | 1 + Source/BoundaryConditions/WarpXEvolvePML.cpp | 5 +- .../WarpXFieldBoundaries.cpp | 3 +- Source/BoundaryConditions/WarpX_PEC.H | 2 +- Source/BoundaryConditions/WarpX_PEC.cpp | 4 +- Source/Diagnostics/BTD_Plotfile_Header_Impl.H | 2 +- .../Diagnostics/BTD_Plotfile_Header_Impl.cpp | 2 +- Source/Diagnostics/BTDiagnostics.cpp | 16 ++--- .../Diagnostics/BackTransformedDiagnostic.H | 6 +- .../Diagnostics/BackTransformedDiagnostic.cpp | 12 ++-- .../BackTransformFunctor.H | 2 +- .../BackTransformFunctor.cpp | 6 +- .../ComputeDiagFunctors/DivBFunctor.cpp | 2 +- .../ComputeDiagFunctors/DivEFunctor.cpp | 2 +- .../PartPerCellFunctor.cpp | 4 +- .../PartPerGridFunctor.cpp | 4 +- .../ComputeDiagFunctors/RhoFunctor.cpp | 8 +-- Source/Diagnostics/Diagnostics.H | 10 +-- Source/Diagnostics/Diagnostics.cpp | 20 +++--- Source/Diagnostics/FieldIO.H | 4 +- Source/Diagnostics/FieldIO.cpp | 4 +- Source/Diagnostics/FlushFormats/FlushFormat.H | 2 +- .../FlushFormats/FlushFormatAscent.H | 7 ++- .../FlushFormats/FlushFormatCheckpoint.H | 2 +- .../FlushFormats/FlushFormatCheckpoint.cpp | 6 +- .../FlushFormats/FlushFormatOpenPMD.H | 4 +- .../FlushFormats/FlushFormatOpenPMD.cpp | 6 +- .../FlushFormats/FlushFormatPlotfile.H | 2 +- .../FlushFormats/FlushFormatPlotfile.cpp | 14 ++--- .../FlushFormats/FlushFormatSensei.cpp | 1 + Source/Diagnostics/FullDiagnostics.cpp | 20 +++--- Source/Diagnostics/MultiDiagnostics.H | 6 +- .../Diagnostics/ParticleDiag/ParticleDiag.H | 2 +- .../Diagnostics/ParticleDiag/ParticleDiag.cpp | 6 +- .../Diagnostics/ReducedDiags/BeamRelevant.cpp | 12 ++-- .../Diagnostics/ReducedDiags/FieldEnergy.cpp | 6 +- .../Diagnostics/ReducedDiags/FieldMaximum.cpp | 6 +- .../ReducedDiags/FieldMomentum.cpp | 26 ++++---- .../Diagnostics/ReducedDiags/FieldReduction.H | 4 +- .../ReducedDiags/LoadBalanceCosts.cpp | 4 +- .../ReducedDiags/LoadBalanceEfficiency.cpp | 2 +- .../ReducedDiags/MultiReducedDiags.H | 4 +- .../ReducedDiags/MultiReducedDiags.cpp | 20 +++--- .../ReducedDiags/ParticleEnergy.cpp | 12 ++-- .../ReducedDiags/ParticleExtrema.cpp | 16 ++--- .../ReducedDiags/ParticleHistogram.H | 2 +- .../ReducedDiags/ParticleHistogram.cpp | 14 ++--- .../ReducedDiags/ParticleMomentum.cpp | 13 ++-- .../ReducedDiags/ParticleNumber.cpp | 2 +- .../Diagnostics/ReducedDiags/ReducedDiags.cpp | 4 +- Source/Diagnostics/ReducedDiags/RhoMaximum.H | 2 +- .../Diagnostics/ReducedDiags/RhoMaximum.cpp | 2 +- Source/Diagnostics/SliceDiagnostic.H | 4 +- Source/Diagnostics/SliceDiagnostic.cpp | 2 +- Source/Diagnostics/WarpXIO.cpp | 16 ++--- Source/Diagnostics/WarpXOpenPMD.H | 6 +- Source/Diagnostics/WarpXOpenPMD.cpp | 12 ++-- Source/EmbeddedBoundary/WarpXInitEB.cpp | 30 ++++----- Source/Evolve/WarpXComputeDt.cpp | 12 ++-- Source/Evolve/WarpXEvolve.cpp | 16 ++--- Source/FieldSolver/ElectrostaticSolver.cpp | 31 ++++----- .../ApplySilverMuellerBoundary.cpp | 4 +- .../FiniteDifferenceSolver/ComputeDivE.cpp | 10 +-- .../FiniteDifferenceSolver/EvolveB.cpp | 14 ++--- .../FiniteDifferenceSolver/EvolveBPML.cpp | 11 ++-- .../FiniteDifferenceSolver/EvolveE.cpp | 16 ++--- .../FiniteDifferenceSolver/EvolveEPML.cpp | 18 +++--- .../FiniteDifferenceSolver/EvolveF.cpp | 18 +++--- .../FiniteDifferenceSolver/EvolveFPML.cpp | 12 ++-- .../FiniteDifferenceSolver/EvolveG.cpp | 15 ++--- .../CartesianCKCAlgorithm.H | 4 +- .../CartesianNodalAlgorithm.H | 4 +- .../CartesianYeeAlgorithm.H | 4 +- .../CylindricalYeeAlgorithm.H | 4 +- .../FieldAccessorFunctors.H | 2 + .../FiniteDifferenceSolver.H | 4 +- .../FiniteDifferenceSolver.cpp | 14 +++-- .../MacroscopicEvolveE.cpp | 6 +- .../MacroscopicProperties.H | 2 +- .../MacroscopicProperties.cpp | 4 +- Source/FieldSolver/SpectralSolver/AnyFFT.H | 3 +- .../ComovingPsatdAlgorithm.H | 4 +- .../GalileanPsatdAlgorithmRZ.cpp | 2 +- .../SpectralAlgorithms/PMLPsatdAlgorithm.H | 2 +- .../SpectralAlgorithms/PMLPsatdAlgorithm.cpp | 2 +- .../SpectralAlgorithms/PsatdAlgorithm.H | 4 +- .../SpectralAlgorithms/PsatdAlgorithmRZ.cpp | 2 +- .../SpectralBaseAlgorithm.H | 6 +- .../SpectralBaseAlgorithm.cpp | 6 +- .../SpectralSolver/SpectralBinomialFilter.cpp | 1 + .../SpectralSolver/SpectralFieldData.H | 10 +-- .../SpectralSolver/SpectralFieldData.cpp | 6 +- .../SpectralSolver/SpectralFieldDataRZ.H | 5 +- .../HankelTransform.cpp | 6 +- .../SpectralHankelTransformer.H | 3 +- .../SpectralHankelTransformer.cpp | 3 +- .../SpectralSolver/SpectralKSpace.H | 6 +- .../SpectralSolver/SpectralKSpace.cpp | 2 +- .../SpectralSolver/SpectralSolver.H | 4 +- .../SpectralSolver/SpectralSolver.cpp | 10 +-- .../SpectralSolver/SpectralSolverRZ.cpp | 6 +- Source/FieldSolver/WarpXPushFieldsEM.cpp | 19 +++--- Source/FieldSolver/WarpXPushFieldsEM_K.H | 1 + .../FieldSolver/WarpX_QED_Field_Pushers.cpp | 11 ++-- Source/FieldSolver/WarpX_QED_K.H | 3 +- Source/Filter/BilinearFilter.cpp | 5 +- Source/Filter/Filter.H | 8 +-- Source/Initialization/CustomDensityProb.H | 8 +-- Source/Initialization/CustomMomentumProb.H | 4 +- Source/Initialization/InjectorDensity.H | 4 +- Source/Initialization/InjectorDensity.cpp | 2 +- Source/Initialization/InjectorMomentum.H | 9 ++- Source/Initialization/InjectorPosition.H | 2 +- Source/Initialization/PlasmaInjector.H | 10 +-- Source/Initialization/PlasmaInjector.cpp | 14 ++--- Source/Initialization/WarpXInitData.cpp | 24 +++---- Source/Laser/LaserProfiles.H | 10 +-- .../LaserProfileFieldFunction.cpp | 1 + .../LaserProfileFromTXYEFile.cpp | 11 ++-- .../LaserProfileGaussian.cpp | 5 +- .../LaserProfilesImpl/LaserProfileHarris.cpp | 1 + Source/Parallelization/GuardCellManager.H | 4 +- Source/Parallelization/GuardCellManager.cpp | 19 +++--- Source/Parallelization/KernelTimer.H | 2 +- Source/Parallelization/WarpXComm.cpp | 10 +-- Source/Parallelization/WarpXComm_K.H | 2 +- Source/Parallelization/WarpXRegrid.cpp | 16 ++--- Source/Parser/GpuParser.H | 4 +- Source/Parser/WarpXParser.H | 8 +-- Source/Parser/WarpXParser.cpp | 2 +- Source/Parser/WarpXParserWrapper.H | 2 +- Source/Parser/wp_parser_c.h | 8 +-- Source/Parser/wp_parser_y.cpp | 1 + Source/Parser/wp_parser_y.h | 6 +- Source/Particles/Collision/CollisionBase.H | 2 +- Source/Particles/Collision/CollisionHandler.H | 2 +- .../Collision/ElasticCollisionPerez.H | 2 +- .../Collision/PairWiseCoulombCollision.H | 2 +- .../Collision/PairWiseCoulombCollision.cpp | 7 ++- .../Collision/UpdateMomentumPerezElastic.H | 4 +- .../Particles/Deposition/CurrentDeposition.H | 4 +- .../Particles/ElementaryProcess/Ionization.H | 10 +-- .../QEDInternals/BreitWheelerEngineWrapper.H | 10 +-- .../BreitWheelerEngineWrapper.cpp | 13 ++-- .../QEDInternals/QedWrapperCommons.H | 2 +- .../QEDInternals/QuantumSyncEngineWrapper.H | 10 +-- .../QEDInternals/QuantumSyncEngineWrapper.cpp | 6 +- .../QEDInternals/SchwingerProcessWrapper.H | 4 +- .../ElementaryProcess/QEDPairGeneration.H | 8 +-- .../ElementaryProcess/QEDPhotonEmission.H | 10 +-- Source/Particles/Filter/FilterFunctors.H | 2 +- Source/Particles/Gather/FieldGather.H | 2 +- Source/Particles/Gather/GetExternalFields.H | 5 +- Source/Particles/Gather/GetExternalFields.cpp | 4 +- Source/Particles/LaserParticleContainer.H | 8 +-- Source/Particles/LaserParticleContainer.cpp | 22 +++---- Source/Particles/MultiParticleContainer.H | 27 ++++---- Source/Particles/MultiParticleContainer.cpp | 34 +++++----- .../ParticleCreation/DefaultInitialization.H | 4 +- .../Particles/ParticleCreation/SmartCreate.H | 2 +- Source/Particles/PhotonParticleContainer.H | 6 +- Source/Particles/PhotonParticleContainer.cpp | 13 ++-- Source/Particles/PhysicalParticleContainer.H | 16 ++--- .../Particles/PhysicalParticleContainer.cpp | 52 +++++++-------- Source/Particles/Pusher/PushSelector.H | 6 +- ...UpdateMomentumBorisWithRadiationReaction.H | 1 - Source/Particles/Pusher/UpdateMomentumVay.H | 2 +- Source/Particles/Pusher/UpdatePosition.H | 4 +- .../Particles/Pusher/UpdatePositionPhoton.H | 2 +- .../Particles/Resampling/LevelingThinning.H | 1 + .../Particles/Resampling/LevelingThinning.cpp | 4 +- Source/Particles/Resampling/Resampling.H | 1 + .../Resampling/ResamplingTrigger.cpp | 2 +- .../RigidInjectedParticleContainer.H | 6 +- .../RigidInjectedParticleContainer.cpp | 24 +++---- Source/Particles/Sorting/Partition.cpp | 6 +- Source/Particles/SpeciesPhysicalProperties.H | 4 +- Source/Particles/WarpXParticleContainer.H | 14 ++--- Source/Particles/WarpXParticleContainer.cpp | 16 ++--- Source/Python/WarpXWrappers.cpp | 10 +-- Source/Python/WarpXWrappers.h | 2 +- Source/Utils/CoarsenIO.H | 2 +- Source/Utils/CoarsenMR.H | 4 +- Source/Utils/Interpolate.H | 4 +- Source/Utils/IntervalsParser.H | 2 +- Source/Utils/IntervalsParser.cpp | 2 +- Source/Utils/MPIInitHelpers.cpp | 4 +- Source/Utils/ParticleUtils.H | 2 +- Source/Utils/ParticleUtils.cpp | 1 + Source/Utils/RelativeCellPosition.H | 1 - Source/Utils/RelativeCellPosition.cpp | 2 +- Source/Utils/WarpXAlgorithmSelection.cpp | 2 +- Source/Utils/WarpXConst.H | 1 + Source/Utils/WarpXMovingWindow.cpp | 63 ++++++++++--------- Source/Utils/WarpXTagging.cpp | 3 +- Source/Utils/WarpXUtil.H | 10 +-- Source/Utils/WarpXUtil.cpp | 11 ++-- Source/Utils/WarpX_Complex.H | 2 +- Source/WarpX.H | 48 +++++++------- Source/WarpX.cpp | 36 +++++------ Source/main.cpp | 3 +- 202 files changed, 812 insertions(+), 773 deletions(-) diff --git a/Source/BoundaryConditions/PML.cpp b/Source/BoundaryConditions/PML.cpp index cebfe5131d8..2adba1f14a2 100644 --- a/Source/BoundaryConditions/PML.cpp +++ b/Source/BoundaryConditions/PML.cpp @@ -8,18 +8,17 @@ */ #include "PML.H" -#include "WarpX.H" #include "BoundaryConditions/PML.H" #include "BoundaryConditions/PMLComponent.H" -#include "Utils/WarpXConst.H" -#include "Utils/WarpXAlgorithmSelection.H" -#include "Utils/WarpXProfilerWrapper.H" #ifdef WARPX_USE_PSATD # include "FieldSolver/SpectralSolver/SpectralFieldData.H" #endif +#include "Utils/WarpXAlgorithmSelection.H" +#include "Utils/WarpXConst.H" +#include "Utils/WarpXProfilerWrapper.H" +#include "WarpX.H" #include -#include #include #include #include @@ -38,11 +37,12 @@ #include #include #include +#include #include #include -#include #include +#include #include using namespace amrex; diff --git a/Source/BoundaryConditions/PML_current.H b/Source/BoundaryConditions/PML_current.H index ed4d69d0c6f..707e1a18ae8 100644 --- a/Source/BoundaryConditions/PML_current.H +++ b/Source/BoundaryConditions/PML_current.H @@ -9,6 +9,7 @@ #define PML_CURRENT_H_ #include "BoundaryConditions/PMLComponent.H" + #include #include diff --git a/Source/BoundaryConditions/WarpXEvolvePML.cpp b/Source/BoundaryConditions/WarpXEvolvePML.cpp index e51d7aa9f8a..37df51aa994 100644 --- a/Source/BoundaryConditions/WarpXEvolvePML.cpp +++ b/Source/BoundaryConditions/WarpXEvolvePML.cpp @@ -6,10 +6,11 @@ * License: BSD-3-Clause-LBNL */ #include "WarpX.H" -#include "WarpX_PML_kernels.H" + #include "BoundaryConditions/PML.H" -#include "Utils/WarpXProfilerWrapper.H" #include "PML_current.H" +#include "Utils/WarpXProfilerWrapper.H" +#include "WarpX_PML_kernels.H" #ifdef BL_USE_SENSEI_INSITU # include diff --git a/Source/BoundaryConditions/WarpXFieldBoundaries.cpp b/Source/BoundaryConditions/WarpXFieldBoundaries.cpp index ac5f60e35d7..2e69dc3d542 100644 --- a/Source/BoundaryConditions/WarpXFieldBoundaries.cpp +++ b/Source/BoundaryConditions/WarpXFieldBoundaries.cpp @@ -1,8 +1,9 @@ #include "WarpX.H" + #include "WarpX_PEC.H" -#include #include +#include #include #include diff --git a/Source/BoundaryConditions/WarpX_PEC.H b/Source/BoundaryConditions/WarpX_PEC.H index 3426fccff12..9fdd378c5f8 100644 --- a/Source/BoundaryConditions/WarpX_PEC.H +++ b/Source/BoundaryConditions/WarpX_PEC.H @@ -10,8 +10,8 @@ #include #include #include -#include #include +#include #include #include diff --git a/Source/BoundaryConditions/WarpX_PEC.cpp b/Source/BoundaryConditions/WarpX_PEC.cpp index f7c940098fa..f74160b6921 100644 --- a/Source/BoundaryConditions/WarpX_PEC.cpp +++ b/Source/BoundaryConditions/WarpX_PEC.cpp @@ -2,15 +2,15 @@ #include "WarpX.H" -#include -#include #include #include #include #include #include #include +#include #include +#include using namespace amrex::literals; diff --git a/Source/Diagnostics/BTD_Plotfile_Header_Impl.H b/Source/Diagnostics/BTD_Plotfile_Header_Impl.H index c2ddf1f283a..33efbe01b99 100644 --- a/Source/Diagnostics/BTD_Plotfile_Header_Impl.H +++ b/Source/Diagnostics/BTD_Plotfile_Header_Impl.H @@ -1,13 +1,13 @@ #ifndef BTD_PLOTFILE_HEADER_IMPL_H #define BTD_PLOTFILE_HEADER_IMPL_H -#include #include #include #include #include #include #include +#include #include diff --git a/Source/Diagnostics/BTD_Plotfile_Header_Impl.cpp b/Source/Diagnostics/BTD_Plotfile_Header_Impl.cpp index de7bdf89b53..8b613adab6d 100644 --- a/Source/Diagnostics/BTD_Plotfile_Header_Impl.cpp +++ b/Source/Diagnostics/BTD_Plotfile_Header_Impl.cpp @@ -2,9 +2,9 @@ #include "WarpX.H" +#include #include #include -#include #include #include diff --git a/Source/Diagnostics/BTDiagnostics.cpp b/Source/Diagnostics/BTDiagnostics.cpp index b36b57b2a0c..d1cfeab22ca 100644 --- a/Source/Diagnostics/BTDiagnostics.cpp +++ b/Source/Diagnostics/BTDiagnostics.cpp @@ -1,18 +1,17 @@ #include "BTDiagnostics.H" #include "BTD_Plotfile_Header_Impl.H" -#include "WarpX.H" -#include "Utils/WarpXConst.H" -#include "ComputeDiagFunctors/ComputeDiagFunctor.H" -#include "ComputeDiagFunctors/CellCenterFunctor.H" #include "ComputeDiagFunctors/BackTransformFunctor.H" +#include "ComputeDiagFunctors/CellCenterFunctor.H" +#include "ComputeDiagFunctors/ComputeDiagFunctor.H" #include "ComputeDiagFunctors/RhoFunctor.H" -#include "Utils/CoarsenIO.H" #include "Diagnostics/Diagnostics.H" #include "Diagnostics/FlushFormats/FlushFormat.H" +#include "Utils/CoarsenIO.H" +#include "Utils/WarpXConst.H" #include "Utils/WarpXUtil.H" +#include "WarpX.H" -#include #include #include #include @@ -22,13 +21,14 @@ #include #include #include +#include #include #include -#include -#include #include +#include #include +#include #include using namespace amrex::literals; diff --git a/Source/Diagnostics/BackTransformedDiagnostic.H b/Source/Diagnostics/BackTransformedDiagnostic.H index 9226a157995..f5827977f9c 100644 --- a/Source/Diagnostics/BackTransformedDiagnostic.H +++ b/Source/Diagnostics/BackTransformedDiagnostic.H @@ -10,21 +10,21 @@ #include "BackTransformedDiagnostic_fwd.H" -#include "Particles/WarpXParticleContainer.H" #include "Particles/MultiParticleContainer.H" +#include "Particles/WarpXParticleContainer.H" #include +#include #include #include #include #include #include -#include #include -#include #include #include +#include /** \brief * The capability for back-transformed lab-frame data is implemented to generate diff --git a/Source/Diagnostics/BackTransformedDiagnostic.cpp b/Source/Diagnostics/BackTransformedDiagnostic.cpp index 7c123544a65..d84e2f7df9b 100644 --- a/Source/Diagnostics/BackTransformedDiagnostic.cpp +++ b/Source/Diagnostics/BackTransformedDiagnostic.cpp @@ -25,6 +25,7 @@ #include #include #include +#include #include #include #include @@ -35,19 +36,20 @@ #include #include #include -#include -#include -#include +#ifdef WARPX_USE_HDF5 + #include +#endif + #include +#include #include +#include using namespace amrex; #ifdef WARPX_USE_HDF5 -#include - /* Helper functions for doing the HDF5 IO. diff --git a/Source/Diagnostics/ComputeDiagFunctors/BackTransformFunctor.H b/Source/Diagnostics/ComputeDiagFunctors/BackTransformFunctor.H index 151d16d7008..f09763d1c94 100644 --- a/Source/Diagnostics/ComputeDiagFunctors/BackTransformFunctor.H +++ b/Source/Diagnostics/ComputeDiagFunctors/BackTransformFunctor.H @@ -5,9 +5,9 @@ #include #include +#include #include #include -#include #include diff --git a/Source/Diagnostics/ComputeDiagFunctors/BackTransformFunctor.cpp b/Source/Diagnostics/ComputeDiagFunctors/BackTransformFunctor.cpp index 8182a5ccd62..256ff106c5d 100644 --- a/Source/Diagnostics/ComputeDiagFunctors/BackTransformFunctor.cpp +++ b/Source/Diagnostics/ComputeDiagFunctors/BackTransformFunctor.cpp @@ -1,10 +1,9 @@ #include "BackTransformFunctor.H" -#include "WarpX.H" #include "Diagnostics/ComputeDiagFunctors/ComputeDiagFunctor.H" #include "Utils/WarpXConst.H" +#include "WarpX.H" -#include #include #include #include @@ -15,10 +14,11 @@ #include #include #include +#include -#include #include #include +#include using namespace amrex; diff --git a/Source/Diagnostics/ComputeDiagFunctors/DivBFunctor.cpp b/Source/Diagnostics/ComputeDiagFunctors/DivBFunctor.cpp index d5fb9885de1..9de42afeae6 100644 --- a/Source/Diagnostics/ComputeDiagFunctors/DivBFunctor.cpp +++ b/Source/Diagnostics/ComputeDiagFunctors/DivBFunctor.cpp @@ -1,7 +1,7 @@ #include "DivBFunctor.H" -#include "WarpX.H" #include "Utils/CoarsenIO.H" +#include "WarpX.H" DivBFunctor::DivBFunctor(const std::array arr_mf_src, const int lev, const amrex::IntVect crse_ratio, const int ncomp) : ComputeDiagFunctor(ncomp, crse_ratio), m_arr_mf_src(arr_mf_src), m_lev(lev) diff --git a/Source/Diagnostics/ComputeDiagFunctors/DivEFunctor.cpp b/Source/Diagnostics/ComputeDiagFunctors/DivEFunctor.cpp index ef5534dc562..fb9df7c46b1 100644 --- a/Source/Diagnostics/ComputeDiagFunctors/DivEFunctor.cpp +++ b/Source/Diagnostics/ComputeDiagFunctors/DivEFunctor.cpp @@ -1,10 +1,10 @@ #include "DivEFunctor.H" -#include "WarpX.H" #include "Utils/CoarsenIO.H" #ifdef WARPX_DIM_RZ # include "Utils/WarpXAlgorithmSelection.H" #endif +#include "WarpX.H" #include #include diff --git a/Source/Diagnostics/ComputeDiagFunctors/PartPerCellFunctor.cpp b/Source/Diagnostics/ComputeDiagFunctors/PartPerCellFunctor.cpp index 50b8d3a428f..ebedee56bad 100644 --- a/Source/Diagnostics/ComputeDiagFunctors/PartPerCellFunctor.cpp +++ b/Source/Diagnostics/ComputeDiagFunctors/PartPerCellFunctor.cpp @@ -1,9 +1,9 @@ #include "PartPerCellFunctor.H" -#include "WarpX.H" -#include "Utils/CoarsenIO.H" #include "Diagnostics/ComputeDiagFunctors/ComputeDiagFunctor.H" #include "Particles/MultiParticleContainer.H" +#include "Utils/CoarsenIO.H" +#include "WarpX.H" #include #include diff --git a/Source/Diagnostics/ComputeDiagFunctors/PartPerGridFunctor.cpp b/Source/Diagnostics/ComputeDiagFunctors/PartPerGridFunctor.cpp index 20f66bbeb01..51d0cfd0c4f 100644 --- a/Source/Diagnostics/ComputeDiagFunctors/PartPerGridFunctor.cpp +++ b/Source/Diagnostics/ComputeDiagFunctors/PartPerGridFunctor.cpp @@ -1,9 +1,9 @@ #include "PartPerGridFunctor.H" -#include "WarpX.H" -#include "Utils/CoarsenIO.H" #include "Diagnostics/ComputeDiagFunctors/ComputeDiagFunctor.H" #include "Particles/MultiParticleContainer.H" +#include "Utils/CoarsenIO.H" +#include "WarpX.H" #include #include diff --git a/Source/Diagnostics/ComputeDiagFunctors/RhoFunctor.cpp b/Source/Diagnostics/ComputeDiagFunctors/RhoFunctor.cpp index 50c5400afee..3cee521ea87 100644 --- a/Source/Diagnostics/ComputeDiagFunctors/RhoFunctor.cpp +++ b/Source/Diagnostics/ComputeDiagFunctors/RhoFunctor.cpp @@ -1,14 +1,14 @@ #include "RhoFunctor.H" -#include "WarpX.H" -#include "Utils/CoarsenIO.H" #include "Diagnostics/ComputeDiagFunctors/ComputeDiagFunctor.H" -#include "Particles/MultiParticleContainer.H" -#include "Particles/WarpXParticleContainer.H" #if (defined WARPX_DIM_RZ) && (defined WARPX_USE_PSATD) #include "FieldSolver/SpectralSolver/SpectralFieldData.H" #include "FieldSolver/SpectralSolver/SpectralSolverRZ.H" #endif +#include "Particles/MultiParticleContainer.H" +#include "Particles/WarpXParticleContainer.H" +#include "Utils/CoarsenIO.H" +#include "WarpX.H" #include diff --git a/Source/Diagnostics/Diagnostics.H b/Source/Diagnostics/Diagnostics.H index 2d1dfb0c310..b3daa866210 100644 --- a/Source/Diagnostics/Diagnostics.H +++ b/Source/Diagnostics/Diagnostics.H @@ -3,18 +3,18 @@ #include "ParticleDiag/ParticleDiag.H" -#include "FlushFormats/FlushFormat_fwd.H" #include "ComputeDiagFunctors/ComputeDiagFunctor_fwd.H" +#include "FlushFormats/FlushFormat_fwd.H" -#include -#include +#include #include +#include #include -#include +#include +#include #include #include -#include /** * \brief base class for diagnostics. diff --git a/Source/Diagnostics/Diagnostics.cpp b/Source/Diagnostics/Diagnostics.cpp index b380a973069..91a0dd21854 100644 --- a/Source/Diagnostics/Diagnostics.cpp +++ b/Source/Diagnostics/Diagnostics.cpp @@ -1,22 +1,21 @@ #include "Diagnostics.H" -#include "FlushFormats/FlushFormatPlotfile.H" -#include "FlushFormats/FlushFormatCheckpoint.H" -#include "FlushFormats/FlushFormatAscent.H" -#include "FlushFormats/FlushFormatSensei.H" #include "Diagnostics/ComputeDiagFunctors/ComputeDiagFunctor.H" #include "Diagnostics/FlushFormats/FlushFormat.H" #include "Diagnostics/ParticleDiag/ParticleDiag.H" -#include "Particles/MultiParticleContainer.H" -#include "Utils/WarpXAlgorithmSelection.H" -#include "Utils/WarpXProfilerWrapper.H" +#include "FlushFormats/FlushFormatAscent.H" +#include "FlushFormats/FlushFormatCheckpoint.H" #ifdef WARPX_USE_OPENPMD # include "FlushFormats/FlushFormatOpenPMD.H" #endif -#include "WarpX.H" +#include "FlushFormats/FlushFormatPlotfile.H" +#include "FlushFormats/FlushFormatSensei.H" +#include "Particles/MultiParticleContainer.H" +#include "Utils/WarpXAlgorithmSelection.H" +#include "Utils/WarpXProfilerWrapper.H" #include "Utils/WarpXUtil.H" +#include "WarpX.H" -#include #include #include #include @@ -25,9 +24,10 @@ #include #include #include +#include -#include #include +#include using namespace amrex::literals; diff --git a/Source/Diagnostics/FieldIO.H b/Source/Diagnostics/FieldIO.H index 4985020957d..c479cfe0fa5 100644 --- a/Source/Diagnostics/FieldIO.H +++ b/Source/Diagnostics/FieldIO.H @@ -9,12 +9,12 @@ #define WARPX_FielIO_H_ #include +#include #include #include -#include -#include #include +#include #include #include diff --git a/Source/Diagnostics/FieldIO.cpp b/Source/Diagnostics/FieldIO.cpp index e11af41c17e..1c26eaa6928 100644 --- a/Source/Diagnostics/FieldIO.cpp +++ b/Source/Diagnostics/FieldIO.cpp @@ -10,15 +10,15 @@ #include "Utils/CoarsenIO.H" #include +#include #include #include #include #include -#include -#include #include #include +#include using namespace amrex; diff --git a/Source/Diagnostics/FlushFormats/FlushFormat.H b/Source/Diagnostics/FlushFormats/FlushFormat.H index 8fa4dd4f47b..865a5805a93 100644 --- a/Source/Diagnostics/FlushFormats/FlushFormat.H +++ b/Source/Diagnostics/FlushFormats/FlushFormat.H @@ -3,8 +3,8 @@ #include "FlushFormat_fwd.H" -#include "Particles/MultiParticleContainer.H" #include "Diagnostics/ParticleDiag/ParticleDiag.H" +#include "Particles/MultiParticleContainer.H" class FlushFormat { diff --git a/Source/Diagnostics/FlushFormats/FlushFormatAscent.H b/Source/Diagnostics/FlushFormats/FlushFormatAscent.H index 6eba18fd826..1dd155fac35 100644 --- a/Source/Diagnostics/FlushFormats/FlushFormatAscent.H +++ b/Source/Diagnostics/FlushFormats/FlushFormatAscent.H @@ -5,13 +5,16 @@ #include "Diagnostics/ParticleDiag/ParticleDiag_fwd.H" +#ifdef AMREX_USE_ASCENT +# include +#endif #include +#include #include + #ifdef AMREX_USE_ASCENT # include -# include #endif -#include #include diff --git a/Source/Diagnostics/FlushFormats/FlushFormatCheckpoint.H b/Source/Diagnostics/FlushFormats/FlushFormatCheckpoint.H index 2f56fd82502..66c82817da0 100644 --- a/Source/Diagnostics/FlushFormats/FlushFormatCheckpoint.H +++ b/Source/Diagnostics/FlushFormats/FlushFormatCheckpoint.H @@ -6,8 +6,8 @@ #include "Diagnostics/ParticleDiag/ParticleDiag_fwd.H" #include -#include #include +#include #include diff --git a/Source/Diagnostics/FlushFormats/FlushFormatCheckpoint.cpp b/Source/Diagnostics/FlushFormats/FlushFormatCheckpoint.cpp index 1c6fc6ab401..7477dfcd08e 100644 --- a/Source/Diagnostics/FlushFormats/FlushFormatCheckpoint.cpp +++ b/Source/Diagnostics/FlushFormats/FlushFormatCheckpoint.cpp @@ -1,14 +1,14 @@ #include "FlushFormatCheckpoint.H" -#include "WarpX.H" -#include "Utils/WarpXProfilerWrapper.H" #include "BoundaryConditions/PML.H" #include "Diagnostics/ParticleDiag/ParticleDiag.H" #include "Particles/WarpXParticleContainer.H" +#include "Utils/WarpXProfilerWrapper.H" +#include "WarpX.H" -#include #include #include +#include #include #include #include diff --git a/Source/Diagnostics/FlushFormats/FlushFormatOpenPMD.H b/Source/Diagnostics/FlushFormats/FlushFormatOpenPMD.H index 4fc200c0484..214559bf30f 100644 --- a/Source/Diagnostics/FlushFormats/FlushFormatOpenPMD.H +++ b/Source/Diagnostics/FlushFormats/FlushFormatOpenPMD.H @@ -1,14 +1,14 @@ #ifndef WARPX_FLUSHFORMATOPENPMD_H_ #define WARPX_FLUSHFORMATOPENPMD_H_ -#include "FlushFormat.H" #include "Diagnostics/WarpXOpenPMD.H" +#include "FlushFormat.H" #include "Diagnostics/ParticleDiag/ParticleDiag_fwd.H" #include -#include #include +#include #include #include diff --git a/Source/Diagnostics/FlushFormats/FlushFormatOpenPMD.cpp b/Source/Diagnostics/FlushFormats/FlushFormatOpenPMD.cpp index c9773315b02..147c8c61be2 100644 --- a/Source/Diagnostics/FlushFormats/FlushFormatOpenPMD.cpp +++ b/Source/Diagnostics/FlushFormats/FlushFormatOpenPMD.cpp @@ -1,17 +1,17 @@ #include "FlushFormatOpenPMD.H" -#include "WarpX.H" #include "Utils/WarpXProfilerWrapper.H" +#include "WarpX.H" +#include #include #include #include -#include #include #include -#include #include +#include using namespace amrex; diff --git a/Source/Diagnostics/FlushFormats/FlushFormatPlotfile.H b/Source/Diagnostics/FlushFormats/FlushFormatPlotfile.H index e533bac29a7..92f836a287f 100644 --- a/Source/Diagnostics/FlushFormats/FlushFormatPlotfile.H +++ b/Source/Diagnostics/FlushFormats/FlushFormatPlotfile.H @@ -6,8 +6,8 @@ #include "Diagnostics/ParticleDiag/ParticleDiag_fwd.H" #include -#include #include +#include #include #include diff --git a/Source/Diagnostics/FlushFormats/FlushFormatPlotfile.cpp b/Source/Diagnostics/FlushFormats/FlushFormatPlotfile.cpp index 16d0edc6464..6b1d067fc96 100644 --- a/Source/Diagnostics/FlushFormats/FlushFormatPlotfile.cpp +++ b/Source/Diagnostics/FlushFormats/FlushFormatPlotfile.cpp @@ -1,17 +1,15 @@ #include "FlushFormatPlotfile.H" -#include "WarpX.H" -#include "Utils/Interpolate.H" -#include "Particles/Filter/FilterFunctors.H" #include "Diagnostics/ParticleDiag/ParticleDiag.H" #include "Parser/WarpXParserWrapper.H" +#include "Particles/Filter/FilterFunctors.H" #include "Particles/WarpXParticleContainer.H" +#include "Utils/Interpolate.H" #include "Utils/WarpXProfilerWrapper.H" +#include "WarpX.H" -#include -#include -#include #include +#include #include #include #include @@ -24,18 +22,20 @@ #include #include #include +#include #include #include #include #include +#include #ifdef AMREX_USE_OMP # include #endif -#include #include #include +#include #include #include #include diff --git a/Source/Diagnostics/FlushFormats/FlushFormatSensei.cpp b/Source/Diagnostics/FlushFormats/FlushFormatSensei.cpp index 215e25f18ba..74c9fd20324 100644 --- a/Source/Diagnostics/FlushFormats/FlushFormatSensei.cpp +++ b/Source/Diagnostics/FlushFormats/FlushFormatSensei.cpp @@ -1,4 +1,5 @@ #include "FlushFormatSensei.H" + #include "WarpX.H" #ifdef BL_USE_SENSEI_INSITU diff --git a/Source/Diagnostics/FullDiagnostics.cpp b/Source/Diagnostics/FullDiagnostics.cpp index c3efae32554..c3690689a1a 100644 --- a/Source/Diagnostics/FullDiagnostics.cpp +++ b/Source/Diagnostics/FullDiagnostics.cpp @@ -1,21 +1,19 @@ #include "FullDiagnostics.H" -#include "WarpX.H" -#include "Diagnostics/Diagnostics.H" -#include "Diagnostics/ParticleDiag/ParticleDiag.H" -#include "Particles/MultiParticleContainer.H" -#include "Utils/WarpXAlgorithmSelection.H" #include "ComputeDiagFunctors/CellCenterFunctor.H" -#include "ComputeDiagFunctors/PartPerCellFunctor.H" -#include "ComputeDiagFunctors/PartPerGridFunctor.H" #include "ComputeDiagFunctors/DivBFunctor.H" #include "ComputeDiagFunctors/DivEFunctor.H" +#include "ComputeDiagFunctors/PartPerCellFunctor.H" +#include "ComputeDiagFunctors/PartPerGridFunctor.H" #include "ComputeDiagFunctors/RhoFunctor.H" +#include "Diagnostics/Diagnostics.H" +#include "Diagnostics/ParticleDiag/ParticleDiag.H" #include "FlushFormats/FlushFormat.H" +#include "Particles/MultiParticleContainer.H" +#include "Utils/WarpXAlgorithmSelection.H" +#include "WarpX.H" #include -#include -#include #include #include #include @@ -26,12 +24,14 @@ #include #include #include +#include #include #include #include +#include -#include #include +#include #include #include diff --git a/Source/Diagnostics/MultiDiagnostics.H b/Source/Diagnostics/MultiDiagnostics.H index c13d5656f4b..aea96914aef 100644 --- a/Source/Diagnostics/MultiDiagnostics.H +++ b/Source/Diagnostics/MultiDiagnostics.H @@ -1,15 +1,15 @@ #ifndef WARPX_MULTIDIAGNOSTICS_H_ #define WARPX_MULTIDIAGNOSTICS_H_ -#include "MultiDiagnostics_fwd.H" - #include "Diagnostics.H" +#include "MultiDiagnostics_fwd.H" + #include +#include #include #include -#include /** All types of diagnostics. */ enum struct DiagTypes {Full, BackTransformed}; diff --git a/Source/Diagnostics/ParticleDiag/ParticleDiag.H b/Source/Diagnostics/ParticleDiag/ParticleDiag.H index 092d0b521bd..0ac5ab69e7d 100644 --- a/Source/Diagnostics/ParticleDiag/ParticleDiag.H +++ b/Source/Diagnostics/ParticleDiag/ParticleDiag.H @@ -10,8 +10,8 @@ #include #include -#include #include +#include class ParticleDiag { diff --git a/Source/Diagnostics/ParticleDiag/ParticleDiag.cpp b/Source/Diagnostics/ParticleDiag/ParticleDiag.cpp index 64f91104977..258ab7903a9 100644 --- a/Source/Diagnostics/ParticleDiag/ParticleDiag.cpp +++ b/Source/Diagnostics/ParticleDiag/ParticleDiag.cpp @@ -1,10 +1,10 @@ #include "ParticleDiag.H" -#include "WarpX.H" -#include "Utils/WarpXUtil.H" #include "Diagnostics/ParticleDiag/ParticleDiag.H" -#include "Particles/WarpXParticleContainer.H" #include "Parser/WarpXParserWrapper.H" +#include "Particles/WarpXParticleContainer.H" +#include "Utils/WarpXUtil.H" +#include "WarpX.H" #include diff --git a/Source/Diagnostics/ReducedDiags/BeamRelevant.cpp b/Source/Diagnostics/ReducedDiags/BeamRelevant.cpp index 1c53c19921b..3178104ddd9 100644 --- a/Source/Diagnostics/ReducedDiags/BeamRelevant.cpp +++ b/Source/Diagnostics/ReducedDiags/BeamRelevant.cpp @@ -6,25 +6,25 @@ */ #include "BeamRelevant.H" -#include "WarpX.H" -#include "Utils/WarpXConst.H" #include "Diagnostics/ReducedDiags/ReducedDiags.H" #include "Particles/MultiParticleContainer.H" #include "Particles/WarpXParticleContainer.H" #include "Utils/IntervalsParser.H" +#include "Utils/WarpXConst.H" +#include "WarpX.H" -#include -#include #include #include #include #include +#include #include +#include -#include -#include #include +#include #include +#include #include #include diff --git a/Source/Diagnostics/ReducedDiags/FieldEnergy.cpp b/Source/Diagnostics/ReducedDiags/FieldEnergy.cpp index 4d385ae1357..378a11989e1 100644 --- a/Source/Diagnostics/ReducedDiags/FieldEnergy.cpp +++ b/Source/Diagnostics/ReducedDiags/FieldEnergy.cpp @@ -7,17 +7,17 @@ #include "FieldEnergy.H" -#include "WarpX.H" -#include "Utils/WarpXConst.H" #include "Diagnostics/ReducedDiags/ReducedDiags.H" #include "Utils/IntervalsParser.H" +#include "Utils/WarpXConst.H" +#include "WarpX.H" -#include #include #include #include #include #include +#include #include #include diff --git a/Source/Diagnostics/ReducedDiags/FieldMaximum.cpp b/Source/Diagnostics/ReducedDiags/FieldMaximum.cpp index 7a3644567ad..93fb83a199b 100644 --- a/Source/Diagnostics/ReducedDiags/FieldMaximum.cpp +++ b/Source/Diagnostics/ReducedDiags/FieldMaximum.cpp @@ -7,9 +7,9 @@ #include "FieldMaximum.H" -#include "WarpX.H" #include "Utils/CoarsenIO.H" #include "Utils/IntervalsParser.H" +#include "WarpX.H" #include #include @@ -31,10 +31,10 @@ #include #include -#include -#include #include #include +#include +#include using namespace amrex; diff --git a/Source/Diagnostics/ReducedDiags/FieldMomentum.cpp b/Source/Diagnostics/ReducedDiags/FieldMomentum.cpp index 26831601049..c835feafd7a 100644 --- a/Source/Diagnostics/ReducedDiags/FieldMomentum.cpp +++ b/Source/Diagnostics/ReducedDiags/FieldMomentum.cpp @@ -6,21 +6,11 @@ */ #include "FieldMomentum.H" -#include "WarpX.H" -#include "Utils/WarpXConst.H" + #include "Utils/CoarsenIO.H" #include "Utils/IntervalsParser.H" - -#include -#include -#include -#include -#include -#include - -#include -#include -#include +#include "Utils/WarpXConst.H" +#include "WarpX.H" #include #include @@ -28,13 +18,23 @@ #include #include #include +#include #include #include #include #include +#include +#include +#include +#include +#include #include #include +#include +#include +#include + using namespace amrex; FieldMomentum::FieldMomentum (std::string rd_name) diff --git a/Source/Diagnostics/ReducedDiags/FieldReduction.H b/Source/Diagnostics/ReducedDiags/FieldReduction.H index ae65ced2b11..e6dc8d8c55a 100644 --- a/Source/Diagnostics/ReducedDiags/FieldReduction.H +++ b/Source/Diagnostics/ReducedDiags/FieldReduction.H @@ -8,10 +8,10 @@ #ifndef WARPX_DIAGNOSTICS_REDUCEDDIAGS_FIELDREDUCTION_H_ #define WARPX_DIAGNOSTICS_REDUCEDDIAGS_FIELDREDUCTION_H_ +#include "Parser/WarpXParserWrapper.H" #include "ReducedDiags.H" -#include "WarpX.H" #include "Utils/CoarsenIO.H" -#include "Parser/WarpXParserWrapper.H" +#include "WarpX.H" #include #include diff --git a/Source/Diagnostics/ReducedDiags/LoadBalanceCosts.cpp b/Source/Diagnostics/ReducedDiags/LoadBalanceCosts.cpp index d7775cfc018..7b7e6aa9a96 100644 --- a/Source/Diagnostics/ReducedDiags/LoadBalanceCosts.cpp +++ b/Source/Diagnostics/ReducedDiags/LoadBalanceCosts.cpp @@ -6,10 +6,10 @@ */ #include "LoadBalanceCosts.H" -#include "WarpX.H" #include "Diagnostics/ReducedDiags/ReducedDiags.H" #include "Utils/IntervalsParser.H" #include "Utils/WarpXAlgorithmSelection.H" +#include "WarpX.H" #include #include @@ -25,11 +25,11 @@ # include #endif -#include #include #include #include #include +#include using namespace amrex; diff --git a/Source/Diagnostics/ReducedDiags/LoadBalanceEfficiency.cpp b/Source/Diagnostics/ReducedDiags/LoadBalanceEfficiency.cpp index d28746996a6..6f599653722 100644 --- a/Source/Diagnostics/ReducedDiags/LoadBalanceEfficiency.cpp +++ b/Source/Diagnostics/ReducedDiags/LoadBalanceEfficiency.cpp @@ -6,9 +6,9 @@ */ #include "LoadBalanceEfficiency.H" -#include "WarpX.H" #include "Diagnostics/ReducedDiags/ReducedDiags.H" #include "Utils/IntervalsParser.H" +#include "WarpX.H" #include #include diff --git a/Source/Diagnostics/ReducedDiags/MultiReducedDiags.H b/Source/Diagnostics/ReducedDiags/MultiReducedDiags.H index ecfa6a7c249..fc8bbcc5c23 100644 --- a/Source/Diagnostics/ReducedDiags/MultiReducedDiags.H +++ b/Source/Diagnostics/ReducedDiags/MultiReducedDiags.H @@ -12,9 +12,9 @@ #include "ReducedDiags.H" -#include -#include #include +#include +#include /** * This class holds multiple instances of ReducedDiagnostics, and contains diff --git a/Source/Diagnostics/ReducedDiags/MultiReducedDiags.cpp b/Source/Diagnostics/ReducedDiags/MultiReducedDiags.cpp index aa6d9a1faaa..23ec57a8106 100644 --- a/Source/Diagnostics/ReducedDiags/MultiReducedDiags.cpp +++ b/Source/Diagnostics/ReducedDiags/MultiReducedDiags.cpp @@ -6,24 +6,24 @@ */ #include "MultiReducedDiags.H" +#include "BeamRelevant.H" +#include "FieldEnergy.H" +#include "FieldMaximum.H" +#include "FieldMomentum.H" +#include "FieldReduction.H" #include "LoadBalanceCosts.H" #include "LoadBalanceEfficiency.H" -#include "ParticleHistogram.H" -#include "BeamRelevant.H" #include "ParticleEnergy.H" -#include "ParticleMomentum.H" #include "ParticleExtrema.H" -#include "FieldEnergy.H" -#include "FieldMomentum.H" -#include "FieldMaximum.H" -#include "RhoMaximum.H" +#include "ParticleHistogram.H" +#include "ParticleMomentum.H" #include "ParticleNumber.H" +#include "RhoMaximum.H" #include "Utils/IntervalsParser.H" -#include "FieldReduction.H" -#include -#include #include +#include +#include #include #include diff --git a/Source/Diagnostics/ReducedDiags/ParticleEnergy.cpp b/Source/Diagnostics/ReducedDiags/ParticleEnergy.cpp index 17828bc9148..b5196a03266 100644 --- a/Source/Diagnostics/ReducedDiags/ParticleEnergy.cpp +++ b/Source/Diagnostics/ReducedDiags/ParticleEnergy.cpp @@ -7,28 +7,28 @@ #include "ParticleEnergy.H" -#include "WarpX.H" -#include "Utils/WarpXConst.H" #include "Diagnostics/ReducedDiags/ReducedDiags.H" #include "Particles/MultiParticleContainer.H" #include "Particles/SpeciesPhysicalProperties.H" #include "Particles/WarpXParticleContainer.H" #include "Utils/IntervalsParser.H" +#include "Utils/WarpXConst.H" +#include "WarpX.H" -#include -#include #include #include #include +#include #include +#include #include #include #include -#include -#include #include +#include #include +#include #include #include diff --git a/Source/Diagnostics/ReducedDiags/ParticleExtrema.cpp b/Source/Diagnostics/ReducedDiags/ParticleExtrema.cpp index e2cbcf69a34..d683fce8557 100644 --- a/Source/Diagnostics/ReducedDiags/ParticleExtrema.cpp +++ b/Source/Diagnostics/ReducedDiags/ParticleExtrema.cpp @@ -7,9 +7,10 @@ #include "ParticleExtrema.H" -#include "WarpX.H" -#include "Utils/WarpXConst.H" #include "Diagnostics/ReducedDiags/ReducedDiags.H" +#if (defined WARPX_QED) +# include "Particles/ElementaryProcess/QEDInternals/QedChiFunctions.H" +#endif #include "Particles/Gather/FieldGather.H" #include "Particles/Gather/GetExternalFields.H" #include "Particles/MultiParticleContainer.H" @@ -17,12 +18,9 @@ #include "Particles/SpeciesPhysicalProperties.H" #include "Particles/WarpXParticleContainer.H" #include "Utils/IntervalsParser.H" -#if (defined WARPX_QED) -# include "Particles/ElementaryProcess/QEDInternals/QedChiFunctions.H" -#endif +#include "Utils/WarpXConst.H" +#include "WarpX.H" -#include -#include #include #include #include @@ -39,14 +37,16 @@ #include #include #include +#include #include +#include #include #include #include -#include #include #include +#include #include #include #include diff --git a/Source/Diagnostics/ReducedDiags/ParticleHistogram.H b/Source/Diagnostics/ReducedDiags/ParticleHistogram.H index 01b5a384e4d..e44a21b6226 100644 --- a/Source/Diagnostics/ReducedDiags/ParticleHistogram.H +++ b/Source/Diagnostics/ReducedDiags/ParticleHistogram.H @@ -8,8 +8,8 @@ #ifndef WARPX_DIAGNOSTICS_REDUCEDDIAGS_PARTICLEHISTOGRAM_H_ #define WARPX_DIAGNOSTICS_REDUCEDDIAGS_PARTICLEHISTOGRAM_H_ -#include "ReducedDiags.H" #include "Parser/WarpXParserWrapper.H" +#include "ReducedDiags.H" #include diff --git a/Source/Diagnostics/ReducedDiags/ParticleHistogram.cpp b/Source/Diagnostics/ReducedDiags/ParticleHistogram.cpp index 1ce09ec3d39..b5737a23e95 100644 --- a/Source/Diagnostics/ReducedDiags/ParticleHistogram.cpp +++ b/Source/Diagnostics/ReducedDiags/ParticleHistogram.cpp @@ -7,34 +7,34 @@ #include "ParticleHistogram.H" -#include "WarpX.H" -#include "Particles/Pusher/GetAndSetPosition.H" -#include "Utils/WarpXUtil.H" #include "Diagnostics/ReducedDiags/ReducedDiags.H" #include "Particles/MultiParticleContainer.H" +#include "Particles/Pusher/GetAndSetPosition.H" #include "Particles/WarpXParticleContainer.H" #include "Utils/IntervalsParser.H" #include "Utils/WarpXConst.H" +#include "Utils/WarpXUtil.H" +#include "WarpX.H" -#include -#include -#include #include #include #include #include +#include #include #include #include +#include #include #include #include #include +#include #include +#include #include #include -#include #include #include diff --git a/Source/Diagnostics/ReducedDiags/ParticleMomentum.cpp b/Source/Diagnostics/ReducedDiags/ParticleMomentum.cpp index 508ff07c2ac..56487820e86 100644 --- a/Source/Diagnostics/ReducedDiags/ParticleMomentum.cpp +++ b/Source/Diagnostics/ReducedDiags/ParticleMomentum.cpp @@ -6,29 +6,30 @@ */ #include "ParticleMomentum.H" -#include "WarpX.H" -#include "Utils/WarpXConst.H" + #include "Particles/MultiParticleContainer.H" #include "Particles/SpeciesPhysicalProperties.H" #include "Particles/WarpXParticleContainer.H" #include "Utils/IntervalsParser.H" +#include "Utils/WarpXConst.H" +#include "WarpX.H" -#include -#include #include #include #include +#include #include +#include #include #include #include #include -#include #include -#include +#include #include #include +#include using namespace amrex; diff --git a/Source/Diagnostics/ReducedDiags/ParticleNumber.cpp b/Source/Diagnostics/ReducedDiags/ParticleNumber.cpp index 03353aaeee0..9a2a3c79703 100644 --- a/Source/Diagnostics/ReducedDiags/ParticleNumber.cpp +++ b/Source/Diagnostics/ReducedDiags/ParticleNumber.cpp @@ -7,11 +7,11 @@ #include "ParticleNumber.H" -#include "WarpX.H" #include "Diagnostics/ReducedDiags/ReducedDiags.H" #include "Particles/MultiParticleContainer.H" #include "Particles/WarpXParticleContainer.H" #include "Utils/IntervalsParser.H" +#include "WarpX.H" #include #include diff --git a/Source/Diagnostics/ReducedDiags/ReducedDiags.cpp b/Source/Diagnostics/ReducedDiags/ReducedDiags.cpp index 38a2b19dfd1..c60f4fbc686 100644 --- a/Source/Diagnostics/ReducedDiags/ReducedDiags.cpp +++ b/Source/Diagnostics/ReducedDiags/ReducedDiags.cpp @@ -9,10 +9,10 @@ #include "WarpX.H" -#include -#include #include #include +#include +#include #include #include diff --git a/Source/Diagnostics/ReducedDiags/RhoMaximum.H b/Source/Diagnostics/ReducedDiags/RhoMaximum.H index 79b7da7d2d0..e7386f73383 100644 --- a/Source/Diagnostics/ReducedDiags/RhoMaximum.H +++ b/Source/Diagnostics/ReducedDiags/RhoMaximum.H @@ -8,8 +8,8 @@ #ifndef WARPX_DIAGNOSTICS_REDUCEDDIAGS_RHOMAXIMUM_H_ #define WARPX_DIAGNOSTICS_REDUCEDDIAGS_RHOMAXIMUM_H_ -#include "ReducedDiags.H" #include "Diagnostics/ComputeDiagFunctors/ComputeDiagFunctor.H" +#include "ReducedDiags.H" #include diff --git a/Source/Diagnostics/ReducedDiags/RhoMaximum.cpp b/Source/Diagnostics/ReducedDiags/RhoMaximum.cpp index f9b6f155198..5fa86a12e94 100644 --- a/Source/Diagnostics/ReducedDiags/RhoMaximum.cpp +++ b/Source/Diagnostics/ReducedDiags/RhoMaximum.cpp @@ -7,12 +7,12 @@ #include "RhoMaximum.H" -#include "WarpX.H" #include "Diagnostics/ComputeDiagFunctors/RhoFunctor.H" #include "Diagnostics/ReducedDiags/ReducedDiags.H" #include "Particles/MultiParticleContainer.H" #include "Particles/WarpXParticleContainer.H" #include "Utils/IntervalsParser.H" +#include "WarpX.H" #include #include diff --git a/Source/Diagnostics/SliceDiagnostic.H b/Source/Diagnostics/SliceDiagnostic.H index b1839328bd9..daf2b9e96d3 100644 --- a/Source/Diagnostics/SliceDiagnostic.H +++ b/Source/Diagnostics/SliceDiagnostic.H @@ -7,12 +7,12 @@ #ifndef WARPX_SliceDiagnostic_H_ #define WARPX_SliceDiagnostic_H_ -#include #include +#include #include -#include #include #include +#include #include diff --git a/Source/Diagnostics/SliceDiagnostic.cpp b/Source/Diagnostics/SliceDiagnostic.cpp index 52644d351c4..2a1563531a6 100644 --- a/Source/Diagnostics/SliceDiagnostic.cpp +++ b/Source/Diagnostics/SliceDiagnostic.cpp @@ -29,8 +29,8 @@ #include #include -#include #include +#include using namespace amrex; diff --git a/Source/Diagnostics/WarpXIO.cpp b/Source/Diagnostics/WarpXIO.cpp index ae58457657c..7fe59f8646b 100644 --- a/Source/Diagnostics/WarpXIO.cpp +++ b/Source/Diagnostics/WarpXIO.cpp @@ -7,13 +7,16 @@ * * License: BSD-3-Clause-LBNL */ -#include "WarpX.H" -#include "FieldIO.H" -#include "Utils/CoarsenIO.H" #include "BoundaryConditions/PML.H" +#include "FieldIO.H" #include "Particles/MultiParticleContainer.H" +#include "Utils/CoarsenIO.H" #include "Utils/WarpXProfilerWrapper.H" +#include "WarpX.H" +#ifdef BL_USE_SENSEI_INSITU +# include +#endif #include #include #include @@ -21,19 +24,16 @@ #include #include #include +#include #include #include #include #include #include -#include -#ifdef BL_USE_SENSEI_INSITU -# include -#endif -#include #include #include +#include #include #include diff --git a/Source/Diagnostics/WarpXOpenPMD.H b/Source/Diagnostics/WarpXOpenPMD.H index 5e0cf70f144..780e95cddd9 100644 --- a/Source/Diagnostics/WarpXOpenPMD.H +++ b/Source/Diagnostics/WarpXOpenPMD.H @@ -13,13 +13,13 @@ #include "Diagnostics/ParticleDiag/ParticleDiag_fwd.H" #include -#include -#include -#include #include #include #include +#include #include +#include +#include #include #ifdef WARPX_USE_OPENPMD diff --git a/Source/Diagnostics/WarpXOpenPMD.cpp b/Source/Diagnostics/WarpXOpenPMD.cpp index 929c436433d..51abbf7a2a6 100644 --- a/Source/Diagnostics/WarpXOpenPMD.cpp +++ b/Source/Diagnostics/WarpXOpenPMD.cpp @@ -6,17 +6,16 @@ */ #include "WarpXOpenPMD.H" -#include "WarpX.H" +#include "Diagnostics/ParticleDiag/ParticleDiag.H" #include "FieldIO.H" +#include "Parser/WarpXParserWrapper.H" #include "Particles/Filter/FilterFunctors.H" #include "Utils/RelativeCellPosition.H" #include "Utils/WarpXAlgorithmSelection.H" -#include "Utils/WarpXUtil.H" -#include "Diagnostics/ParticleDiag/ParticleDiag.H" -#include "Parser/WarpXParserWrapper.H" #include "Utils/WarpXProfilerWrapper.H" +#include "Utils/WarpXUtil.H" +#include "WarpX.H" -#include #include #include #include @@ -29,6 +28,7 @@ #include #include #include +#include #include #include #include @@ -37,12 +37,12 @@ #include #include +#include #include #include #include #include #include -#include namespace detail { diff --git a/Source/EmbeddedBoundary/WarpXInitEB.cpp b/Source/EmbeddedBoundary/WarpXInitEB.cpp index b5da3730656..cd575491a29 100644 --- a/Source/EmbeddedBoundary/WarpXInitEB.cpp +++ b/Source/EmbeddedBoundary/WarpXInitEB.cpp @@ -1,38 +1,40 @@ -#include "WarpX.H" -#include "Utils/WarpXUtil.H" #include "Parser/WarpXParser.H" #include "Parser/WarpXParserWrapper.H" +#include "Utils/WarpXUtil.H" +#include "WarpX.H" #include #include -#include -#include -#include #include #include #include +#include +#include +#include +#ifdef AMREX_USE_EB +# include +#endif #include #include -#include -#include -#include -#include -#include #include #include #include #include -#include +#include +#include +#include #ifdef AMREX_USE_EB -# include # include #endif +#include +#include +#include -#include #include +#include #include #include -#include +#include #ifdef AMREX_USE_EB namespace { diff --git a/Source/Evolve/WarpXComputeDt.cpp b/Source/Evolve/WarpXComputeDt.cpp index 5510fe074d1..4e0c85454c9 100644 --- a/Source/Evolve/WarpXComputeDt.cpp +++ b/Source/Evolve/WarpXComputeDt.cpp @@ -6,15 +6,15 @@ */ #include "WarpX.H" -#include "Utils/WarpXAlgorithmSelection.H" -#include "Utils/WarpXConst.H" -#ifdef WARPX_DIM_RZ -# include "FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CylindricalYeeAlgorithm.H" -#else -# include "FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CartesianYeeAlgorithm.H" +#ifndef WARPX_DIM_RZ # include "FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CartesianCKCAlgorithm.H" # include "FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CartesianNodalAlgorithm.H" +# include "FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CartesianYeeAlgorithm.H" +#else +# include "FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CylindricalYeeAlgorithm.H" #endif +#include "Utils/WarpXAlgorithmSelection.H" +#include "Utils/WarpXConst.H" #include #include diff --git a/Source/Evolve/WarpXEvolve.cpp b/Source/Evolve/WarpXEvolve.cpp index 854bdb778ab..d35c1310b32 100644 --- a/Source/Evolve/WarpXEvolve.cpp +++ b/Source/Evolve/WarpXEvolve.cpp @@ -10,24 +10,24 @@ */ #include "WarpX.H" -#include "Utils/WarpXConst.H" -#include "Utils/WarpXUtil.H" -#include "Utils/WarpXAlgorithmSelection.H" -#include "Python/WarpX_py.H" #include "Diagnostics/BackTransformedDiagnostic.H" #include "Diagnostics/MultiDiagnostics.H" #include "Diagnostics/ReducedDiags/MultiReducedDiags.H" #include "Evolve/WarpXDtType.H" -#include "Parallelization/GuardCellManager.H" -#include "Particles/MultiParticleContainer.H" -#include "Utils/IntervalsParser.H" -#include "Utils/WarpXProfilerWrapper.H" #ifdef WARPX_USE_PSATD # include "FieldSolver/SpectralSolver/SpectralSolver.H" #endif #ifdef WARPX_DIM_RZ # include "FieldSolver/SpectralSolver/SpectralSolverRZ.H" #endif +#include "Parallelization/GuardCellManager.H" +#include "Particles/MultiParticleContainer.H" +#include "Python/WarpX_py.H" +#include "Utils/IntervalsParser.H" +#include "Utils/WarpXAlgorithmSelection.H" +#include "Utils/WarpXConst.H" +#include "Utils/WarpXProfilerWrapper.H" +#include "Utils/WarpXUtil.H" #include #include diff --git a/Source/FieldSolver/ElectrostaticSolver.cpp b/Source/FieldSolver/ElectrostaticSolver.cpp index 71f71fcc884..3db4ac50ed1 100644 --- a/Source/FieldSolver/ElectrostaticSolver.cpp +++ b/Source/FieldSolver/ElectrostaticSolver.cpp @@ -4,24 +4,20 @@ * * License: BSD-3-Clause-LBNL */ -#include +#include "WarpX.H" + #include "Parallelization/GuardCellManager.H" +#include "Parser/WarpXParser.H" #include "Particles/MultiParticleContainer.H" #include "Particles/WarpXParticleContainer.H" #include "Utils/WarpXAlgorithmSelection.H" -#include "Parser/WarpXParser.H" -#include "Utils/WarpXUtil.H" #include "Utils/WarpXConst.H" +#include "Utils/WarpXUtil.H" -#include -#ifdef WARPX_DIM_RZ - #include -#else - #include -#endif -#include #include #include +#include +#include #include #include #include @@ -35,16 +31,21 @@ #include #include #include +#include +#ifdef WARPX_DIM_RZ + #include +#else + #include +#endif #include -#include -#include -#include #include +#include #include +#include -#include -#include #include +#include +#include using namespace amrex; diff --git a/Source/FieldSolver/FiniteDifferenceSolver/ApplySilverMuellerBoundary.cpp b/Source/FieldSolver/FiniteDifferenceSolver/ApplySilverMuellerBoundary.cpp index cedfe467524..592bb8bb2b4 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/ApplySilverMuellerBoundary.cpp +++ b/Source/FieldSolver/FiniteDifferenceSolver/ApplySilverMuellerBoundary.cpp @@ -6,11 +6,11 @@ */ #include "FiniteDifferenceSolver.H" -#include "Utils/WarpXAlgorithmSelection.H" -#include "Utils/WarpXConst.H" #ifdef WARPX_DIM_RZ # include "FiniteDifferenceAlgorithms/CylindricalYeeAlgorithm.H" #endif +#include "Utils/WarpXAlgorithmSelection.H" +#include "Utils/WarpXConst.H" #include #include diff --git a/Source/FieldSolver/FiniteDifferenceSolver/ComputeDivE.cpp b/Source/FieldSolver/FiniteDifferenceSolver/ComputeDivE.cpp index 09bb139df96..bd3381a90d5 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/ComputeDivE.cpp +++ b/Source/FieldSolver/FiniteDifferenceSolver/ComputeDivE.cpp @@ -7,16 +7,17 @@ #include "FiniteDifferenceSolver.H" #include "Utils/WarpXAlgorithmSelection.H" -#ifdef WARPX_DIM_RZ -# include "FiniteDifferenceAlgorithms/CylindricalYeeAlgorithm.H" -#else -# include "FiniteDifferenceAlgorithms/CartesianYeeAlgorithm.H" +#ifndef WARPX_DIM_RZ # include "FiniteDifferenceAlgorithms/CartesianCKCAlgorithm.H" # include "FiniteDifferenceAlgorithms/CartesianNodalAlgorithm.H" +# include "FiniteDifferenceAlgorithms/CartesianYeeAlgorithm.H" +#else +# include "FiniteDifferenceAlgorithms/CylindricalYeeAlgorithm.H" #endif #include #include +#include #include #include #include @@ -27,7 +28,6 @@ #include #include #include -#include #include #include diff --git a/Source/FieldSolver/FiniteDifferenceSolver/EvolveB.cpp b/Source/FieldSolver/FiniteDifferenceSolver/EvolveB.cpp index 14fe0def55d..92fb423ecf9 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/EvolveB.cpp +++ b/Source/FieldSolver/FiniteDifferenceSolver/EvolveB.cpp @@ -6,19 +6,20 @@ */ #include "FiniteDifferenceSolver.H" -#include "WarpX.H" -#include "Utils/WarpXAlgorithmSelection.H" -#include "Utils/WarpXConst.H" -#ifdef WARPX_DIM_RZ -# include "FiniteDifferenceAlgorithms/CylindricalYeeAlgorithm.H" -#else +#ifndef WARPX_DIM_RZ # include "FiniteDifferenceAlgorithms/CartesianYeeAlgorithm.H" # include "FiniteDifferenceAlgorithms/CartesianCKCAlgorithm.H" # include "FiniteDifferenceAlgorithms/CartesianNodalAlgorithm.H" +#else +# include "FiniteDifferenceAlgorithms/CylindricalYeeAlgorithm.H" #endif +#include "Utils/WarpXAlgorithmSelection.H" +#include "Utils/WarpXConst.H" +#include "WarpX.H" #include #include +#include #include #include #include @@ -33,7 +34,6 @@ #include #include #include -#include #include #include diff --git a/Source/FieldSolver/FiniteDifferenceSolver/EvolveBPML.cpp b/Source/FieldSolver/FiniteDifferenceSolver/EvolveBPML.cpp index baa8f6668fe..bf49f3d0782 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/EvolveBPML.cpp +++ b/Source/FieldSolver/FiniteDifferenceSolver/EvolveBPML.cpp @@ -6,15 +6,16 @@ */ #include "FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.H" -#include "Utils/WarpXAlgorithmSelection.H" -#ifdef WARPX_DIM_RZ -# include "FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CylindricalYeeAlgorithm.H" -#else +#include "BoundaryConditions/PMLComponent.H" + +#ifndef WARPX_DIM_RZ # include "FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CartesianYeeAlgorithm.H" # include "FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CartesianCKCAlgorithm.H" # include "FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CartesianNodalAlgorithm.H" +#else +# include "FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CylindricalYeeAlgorithm.H" #endif -#include "BoundaryConditions/PMLComponent.H" +#include "Utils/WarpXAlgorithmSelection.H" #include #include diff --git a/Source/FieldSolver/FiniteDifferenceSolver/EvolveE.cpp b/Source/FieldSolver/FiniteDifferenceSolver/EvolveE.cpp index 6608252e36f..9a6ce023024 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/EvolveE.cpp +++ b/Source/FieldSolver/FiniteDifferenceSolver/EvolveE.cpp @@ -6,19 +6,20 @@ */ #include "FiniteDifferenceSolver.H" -#include "WarpX.H" -#include "Utils/WarpXAlgorithmSelection.H" -#ifdef WARPX_DIM_RZ -# include "FiniteDifferenceAlgorithms/CylindricalYeeAlgorithm.H" +#ifndef WARPX_DIM_RZ +# include "FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CartesianYeeAlgorithm.H" +# include "FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CartesianCKCAlgorithm.H" +# include "FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CartesianNodalAlgorithm.H" #else -# include "FiniteDifferenceAlgorithms/CartesianYeeAlgorithm.H" -# include "FiniteDifferenceAlgorithms/CartesianCKCAlgorithm.H" -# include "FiniteDifferenceAlgorithms/CartesianNodalAlgorithm.H" +# include "FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CylindricalYeeAlgorithm.H" #endif +#include "Utils/WarpXAlgorithmSelection.H" #include "Utils/WarpXConst.H" +#include "WarpX.H" #include #include +#include #include #include #include @@ -33,7 +34,6 @@ #include #include #include -#include #include #include diff --git a/Source/FieldSolver/FiniteDifferenceSolver/EvolveEPML.cpp b/Source/FieldSolver/FiniteDifferenceSolver/EvolveEPML.cpp index fd51cfe74f5..7c368db144a 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/EvolveEPML.cpp +++ b/Source/FieldSolver/FiniteDifferenceSolver/EvolveEPML.cpp @@ -6,20 +6,22 @@ */ #include "FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.H" -#include "Utils/WarpXAlgorithmSelection.H" -#ifdef WARPX_DIM_RZ -# include "FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CylindricalYeeAlgorithm.H" -#else +#include "BoundaryConditions/PML.H" +#include "BoundaryConditions/PMLComponent.H" +#include "BoundaryConditions/PML_current.H" +#ifndef WARPX_DIM_RZ # include "FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CartesianYeeAlgorithm.H" # include "FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CartesianCKCAlgorithm.H" # include "FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CartesianNodalAlgorithm.H" +#else +# include "FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CylindricalYeeAlgorithm.H" #endif -#include "BoundaryConditions/PML.H" -#include "BoundaryConditions/PML_current.H" -#include "BoundaryConditions/PMLComponent.H" +#include "Utils/WarpXAlgorithmSelection.H" #include "Utils/WarpXConst.H" #include +#include +#include #include #include #include @@ -31,8 +33,6 @@ #include #include #include -#include -#include #include diff --git a/Source/FieldSolver/FiniteDifferenceSolver/EvolveF.cpp b/Source/FieldSolver/FiniteDifferenceSolver/EvolveF.cpp index 534f566d4f8..0de8d4f8058 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/EvolveF.cpp +++ b/Source/FieldSolver/FiniteDifferenceSolver/EvolveF.cpp @@ -6,19 +6,22 @@ */ #include "FiniteDifferenceSolver.H" -#include "Utils/WarpXAlgorithmSelection.H" -#ifdef WARPX_DIM_RZ -# include "WarpX.H" -# include "FiniteDifferenceAlgorithms/CylindricalYeeAlgorithm.H" +#ifndef WARPX_DIM_RZ +# include "FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CartesianYeeAlgorithm.H" +# include "FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CartesianCKCAlgorithm.H" +# include "FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CartesianNodalAlgorithm.H" #else -# include "FiniteDifferenceAlgorithms/CartesianYeeAlgorithm.H" -# include "FiniteDifferenceAlgorithms/CartesianCKCAlgorithm.H" -# include "FiniteDifferenceAlgorithms/CartesianNodalAlgorithm.H" +# include "FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CylindricalYeeAlgorithm.H" #endif +#include "Utils/WarpXAlgorithmSelection.H" #include "Utils/WarpXConst.H" +#ifndef WARPX_DIM_RZ +# include "WarpX.H" +#endif #include #include +#include #include #include #include @@ -29,7 +32,6 @@ #include #include #include -#include #include #include diff --git a/Source/FieldSolver/FiniteDifferenceSolver/EvolveFPML.cpp b/Source/FieldSolver/FiniteDifferenceSolver/EvolveFPML.cpp index 4d7c2ef0be9..af6f54bed05 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/EvolveFPML.cpp +++ b/Source/FieldSolver/FiniteDifferenceSolver/EvolveFPML.cpp @@ -6,18 +6,19 @@ */ #include "FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.H" -#include "Utils/WarpXAlgorithmSelection.H" -#ifdef WARPX_DIM_RZ -# include "FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CylindricalYeeAlgorithm.H" -#else +#include "BoundaryConditions/PMLComponent.H" +#ifndef WARPX_DIM_RZ # include "FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CartesianYeeAlgorithm.H" # include "FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CartesianCKCAlgorithm.H" # include "FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CartesianNodalAlgorithm.H" +#else +# include "FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CylindricalYeeAlgorithm.H" #endif -#include "BoundaryConditions/PMLComponent.H" +#include "Utils/WarpXAlgorithmSelection.H" #include #include +#include #include #include #include @@ -28,7 +29,6 @@ #include #include #include -#include #include diff --git a/Source/FieldSolver/FiniteDifferenceSolver/EvolveG.cpp b/Source/FieldSolver/FiniteDifferenceSolver/EvolveG.cpp index 72cb504214f..86ddf99f9ed 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/EvolveG.cpp +++ b/Source/FieldSolver/FiniteDifferenceSolver/EvolveG.cpp @@ -5,18 +5,20 @@ * License: BSD-3-Clause-LBNL */ -#include "Utils/WarpXAlgorithmSelection.H" + #include "FiniteDifferenceSolver.H" -#ifdef WARPX_DIM_RZ -# include "FiniteDifferenceAlgorithms/CylindricalYeeAlgorithm.H" +#ifndef WARPX_DIM_RZ +# include "FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CartesianYeeAlgorithm.H" +# include "FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CartesianCKCAlgorithm.H" +# include "FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CartesianNodalAlgorithm.H" #else -# include "FiniteDifferenceAlgorithms/CartesianYeeAlgorithm.H" -# include "FiniteDifferenceAlgorithms/CartesianCKCAlgorithm.H" -# include "FiniteDifferenceAlgorithms/CartesianNodalAlgorithm.H" +# include "FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CylindricalYeeAlgorithm.H" #endif +#include "Utils/WarpXAlgorithmSelection.H" #include #include +#include #include #include #include @@ -27,7 +29,6 @@ #include #include #include -#include #include #include diff --git a/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CartesianCKCAlgorithm.H b/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CartesianCKCAlgorithm.H index da1a8c9a945..216723553d5 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CartesianCKCAlgorithm.H +++ b/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CartesianCKCAlgorithm.H @@ -10,10 +10,10 @@ #include "Utils/WarpXConst.H" -#include +#include #include #include -#include +#include #include #include diff --git a/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CartesianNodalAlgorithm.H b/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CartesianNodalAlgorithm.H index 68ecdfc60db..5c1d686877b 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CartesianNodalAlgorithm.H +++ b/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CartesianNodalAlgorithm.H @@ -10,10 +10,10 @@ #include "Utils/WarpXConst.H" -#include +#include #include #include -#include +#include #include #include diff --git a/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CartesianYeeAlgorithm.H b/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CartesianYeeAlgorithm.H index 4fd76a699a7..4fe81375469 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CartesianYeeAlgorithm.H +++ b/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CartesianYeeAlgorithm.H @@ -8,13 +8,13 @@ #ifndef WARPX_FINITE_DIFFERENCE_ALGORITHM_CARTESIAN_YEE_H_ #define WARPX_FINITE_DIFFERENCE_ALGORITHM_CARTESIAN_YEE_H_ -#include "Utils/WarpXConst.H" #include "FieldAccessorFunctors.H" +#include "Utils/WarpXConst.H" #include -#include #include #include +#include #include #include diff --git a/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CylindricalYeeAlgorithm.H b/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CylindricalYeeAlgorithm.H index 2283df09ae4..fee0a9dc872 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CylindricalYeeAlgorithm.H +++ b/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CylindricalYeeAlgorithm.H @@ -10,10 +10,10 @@ #include "Utils/WarpXConst.H" -#include +#include #include #include -#include +#include #include #include diff --git a/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/FieldAccessorFunctors.H b/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/FieldAccessorFunctors.H index 3ba6de3355f..0b524522805 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/FieldAccessorFunctors.H +++ b/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/FieldAccessorFunctors.H @@ -1,6 +1,8 @@ #ifndef WARPX_FIELD_ACCESSOR_FUNCTORS_H #define WARPX_FIELD_ACCESSOR_FUNCTORS_H + #include "WarpX.H" + /** * \brief Functor that returns the division of the source m_field Array4 value by macroparameter, m_parameter value at the respective (i,j,k,ncomp). diff --git a/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.H b/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.H index 0e5afb89561..f2e5e06c921 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.H +++ b/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.H @@ -13,10 +13,10 @@ #include "BoundaryConditions/PML_fwd.H" #include "MacroscopicProperties/MacroscopicProperties_fwd.H" -#include +#include #include +#include #include -#include #include #include diff --git a/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.cpp b/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.cpp index 54dd680d6ae..1ad5a6c3d9f 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.cpp +++ b/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.cpp @@ -6,14 +6,16 @@ */ #include "FiniteDifferenceSolver.H" +#ifndef WARPX_DIM_RZ +# include "FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CartesianYeeAlgorithm.H" +# include "FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CartesianCKCAlgorithm.H" +# include "FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CartesianNodalAlgorithm.H" +#else +# include "FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CylindricalYeeAlgorithm.H" +#endif #include "Utils/WarpXAlgorithmSelection.H" -#ifdef WARPX_DIM_RZ +#ifndef WARPX_DIM_RZ # include "WarpX.H" -# include "FiniteDifferenceAlgorithms/CylindricalYeeAlgorithm.H" -#else -# include "FiniteDifferenceAlgorithms/CartesianYeeAlgorithm.H" -# include "FiniteDifferenceAlgorithms/CartesianCKCAlgorithm.H" -# include "FiniteDifferenceAlgorithms/CartesianNodalAlgorithm.H" #endif #include diff --git a/Source/FieldSolver/FiniteDifferenceSolver/MacroscopicEvolveE.cpp b/Source/FieldSolver/FiniteDifferenceSolver/MacroscopicEvolveE.cpp index fa5dc283ad5..d7f11ef37f7 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/MacroscopicEvolveE.cpp +++ b/Source/FieldSolver/FiniteDifferenceSolver/MacroscopicEvolveE.cpp @@ -1,6 +1,5 @@ #include "FiniteDifferenceSolver.H" -#include "Utils/WarpXAlgorithmSelection.H" #ifdef WARPX_DIM_RZ // currently works only for 3D #else @@ -8,12 +7,14 @@ # include "FiniteDifferenceAlgorithms/CartesianCKCAlgorithm.H" # include "FiniteDifferenceAlgorithms/FieldAccessorFunctors.H" #endif +#include "MacroscopicProperties/MacroscopicProperties.H" #include "Utils/CoarsenIO.H" +#include "Utils/WarpXAlgorithmSelection.H" #include "WarpX.H" -#include "MacroscopicProperties/MacroscopicProperties.H" #include #include +#include #include #include #include @@ -24,7 +25,6 @@ #include #include #include -#include #include #include diff --git a/Source/FieldSolver/FiniteDifferenceSolver/MacroscopicProperties/MacroscopicProperties.H b/Source/FieldSolver/FiniteDifferenceSolver/MacroscopicProperties/MacroscopicProperties.H index efa059b0341..3597212c43c 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/MacroscopicProperties/MacroscopicProperties.H +++ b/Source/FieldSolver/FiniteDifferenceSolver/MacroscopicProperties/MacroscopicProperties.H @@ -6,10 +6,10 @@ #include "Parser/WarpXParserWrapper.H" #include "Utils/WarpXConst.H" -#include #include #include #include +#include #include #include diff --git a/Source/FieldSolver/FiniteDifferenceSolver/MacroscopicProperties/MacroscopicProperties.cpp b/Source/FieldSolver/FiniteDifferenceSolver/MacroscopicProperties/MacroscopicProperties.cpp index 662d87ca563..42b912fbae8 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/MacroscopicProperties/MacroscopicProperties.cpp +++ b/Source/FieldSolver/FiniteDifferenceSolver/MacroscopicProperties/MacroscopicProperties.cpp @@ -1,9 +1,8 @@ #include "MacroscopicProperties.H" -#include "WarpX.H" #include "Utils/WarpXUtil.H" +#include "WarpX.H" -#include #include #include #include @@ -13,6 +12,7 @@ #include #include #include +#include #include #include diff --git a/Source/FieldSolver/SpectralSolver/AnyFFT.H b/Source/FieldSolver/SpectralSolver/AnyFFT.H index 6ba77e13bcd..23cadd30f84 100644 --- a/Source/FieldSolver/SpectralSolver/AnyFFT.H +++ b/Source/FieldSolver/SpectralSolver/AnyFFT.H @@ -9,6 +9,7 @@ #define ANYFFT_H_ #include +#include #if defined(AMREX_USE_CUDA) # include @@ -18,8 +19,6 @@ # include #endif -#include - /** * Wrapper around FFT libraries. The header file defines the API and the base types * (Complex and VendorFFTPlan), and the implementation for different FFT libraries is diff --git a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/ComovingPsatdAlgorithm.H b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/ComovingPsatdAlgorithm.H index f8c8259010e..0f276635fcf 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/ComovingPsatdAlgorithm.H +++ b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/ComovingPsatdAlgorithm.H @@ -1,15 +1,15 @@ #ifndef WARPX_COMOVING_PSATD_ALGORITHM_H_ #define WARPX_COMOVING_PSATD_ALGORITHM_H_ -#include "SpectralBaseAlgorithm.H" #include "FieldSolver/SpectralSolver/SpectralFieldData.H" #include "FieldSolver/SpectralSolver/SpectralKSpace.H" +#include "SpectralBaseAlgorithm.H" #include #include -#include #include #include +#include #include #include diff --git a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/GalileanPsatdAlgorithmRZ.cpp b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/GalileanPsatdAlgorithmRZ.cpp index a76311db376..ce6d5b933d5 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/GalileanPsatdAlgorithmRZ.cpp +++ b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/GalileanPsatdAlgorithmRZ.cpp @@ -4,10 +4,10 @@ * * License: BSD-3-Clause-LBNL */ -#include "WarpX.H" #include "GalileanPsatdAlgorithmRZ.H" #include "Utils/WarpXConst.H" #include "Utils/WarpXProfilerWrapper.H" +#include "WarpX.H" #include diff --git a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PMLPsatdAlgorithm.H b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PMLPsatdAlgorithm.H index 6cb7dfc6ace..2f0183cbb10 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PMLPsatdAlgorithm.H +++ b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PMLPsatdAlgorithm.H @@ -12,9 +12,9 @@ #include "FieldSolver/SpectralSolver/SpectralFieldData_fwd.H" #include "FieldSolver/SpectralSolver/SpectralKSpace_fwd.H" -#include #include #include +#include #include #include diff --git a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PMLPsatdAlgorithm.cpp b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PMLPsatdAlgorithm.cpp index 1be5094bd02..d28b5218a90 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PMLPsatdAlgorithm.cpp +++ b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PMLPsatdAlgorithm.cpp @@ -8,8 +8,8 @@ #include "FieldSolver/SpectralSolver/SpectralFieldData.H" #include "FieldSolver/SpectralSolver/SpectralKSpace.H" -#include "Utils/WarpX_Complex.H" #include "Utils/WarpXConst.H" +#include "Utils/WarpX_Complex.H" #include #include diff --git a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithm.H b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithm.H index 2b6f99bd4f7..ae74af02ce6 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithm.H +++ b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithm.H @@ -7,15 +7,15 @@ #ifndef WARPX_PSATD_ALGORITHM_H_ #define WARPX_PSATD_ALGORITHM_H_ -#include "SpectralBaseAlgorithm.H" #include "FieldSolver/SpectralSolver/SpectralFieldData.H" #include "FieldSolver/SpectralSolver/SpectralKSpace.H" +#include "SpectralBaseAlgorithm.H" #include #include -#include #include #include +#include #include #include diff --git a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmRZ.cpp b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmRZ.cpp index 86d9f9696db..cb055a27b21 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmRZ.cpp +++ b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmRZ.cpp @@ -4,10 +4,10 @@ * * License: BSD-3-Clause-LBNL */ -#include "WarpX.H" #include "PsatdAlgorithmRZ.H" #include "Utils/WarpXConst.H" #include "Utils/WarpXProfilerWrapper.H" +#include "WarpX.H" #include diff --git a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/SpectralBaseAlgorithm.H b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/SpectralBaseAlgorithm.H index 6d8f349215d..fcef643fc27 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/SpectralBaseAlgorithm.H +++ b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/SpectralBaseAlgorithm.H @@ -7,17 +7,17 @@ #ifndef WARPX_SPECTRAL_BASE_ALGORITHM_H_ #define WARPX_SPECTRAL_BASE_ALGORITHM_H_ -#include "Utils/WarpX_Complex.H" #include "FieldSolver/SpectralSolver/SpectralKSpace.H" +#include "Utils/WarpX_Complex.H" #include "FieldSolver/SpectralSolver/SpectralFieldData_fwd.H" #include #include -#include -#include #include +#include #include +#include #include #include diff --git a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/SpectralBaseAlgorithm.cpp b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/SpectralBaseAlgorithm.cpp index 1f2950ca6a5..e57302cc4ef 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/SpectralBaseAlgorithm.cpp +++ b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/SpectralBaseAlgorithm.cpp @@ -5,19 +5,19 @@ * License: BSD-3-Clause-LBNL */ #include "SpectralBaseAlgorithm.H" -#include "FieldSolver/SpectralSolver/SpectralFieldData.H" +#include "FieldSolver/SpectralSolver/SpectralFieldData.H" #include "Utils/WarpX_Complex.H" +#include #include #include -#include -#include #include #include #include #include #include +#include #include #include diff --git a/Source/FieldSolver/SpectralSolver/SpectralBinomialFilter.cpp b/Source/FieldSolver/SpectralSolver/SpectralBinomialFilter.cpp index e0ac3e886d4..14246b5be13 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralBinomialFilter.cpp +++ b/Source/FieldSolver/SpectralSolver/SpectralBinomialFilter.cpp @@ -6,6 +6,7 @@ */ #include "SpectralBinomialFilter.H" + #include #include diff --git a/Source/FieldSolver/SpectralSolver/SpectralFieldData.H b/Source/FieldSolver/SpectralSolver/SpectralFieldData.H index fa0074cd217..12a9fcadfcf 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralFieldData.H +++ b/Source/FieldSolver/SpectralSolver/SpectralFieldData.H @@ -10,19 +10,19 @@ #include "SpectralFieldData_fwd.H" -#include "Utils/WarpX_Complex.H" -#include "SpectralKSpace.H" #include "AnyFFT.H" +#include "SpectralKSpace.H" +#include "Utils/WarpX_Complex.H" -#include #include +#include #include +#include #include #include #include -#include -#include #include +#include #include #include diff --git a/Source/FieldSolver/SpectralSolver/SpectralFieldData.cpp b/Source/FieldSolver/SpectralSolver/SpectralFieldData.cpp index c2c227fadf6..71dfc82d2ad 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralFieldData.cpp +++ b/Source/FieldSolver/SpectralSolver/SpectralFieldData.cpp @@ -7,12 +7,14 @@ */ #include "SpectralFieldData.H" -#include "WarpX.H" #include "Utils/WarpXAlgorithmSelection.H" +#include "WarpX.H" #include #include #include +#include +#include #include #include #include @@ -24,8 +26,6 @@ #include #include #include -#include -#include #if WARPX_USE_PSATD diff --git a/Source/FieldSolver/SpectralSolver/SpectralFieldDataRZ.H b/Source/FieldSolver/SpectralSolver/SpectralFieldDataRZ.H index 8484d7174fa..85aa41d3b84 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralFieldDataRZ.H +++ b/Source/FieldSolver/SpectralSolver/SpectralFieldDataRZ.H @@ -7,10 +7,11 @@ #ifndef WARPX_SPECTRAL_FIELD_DATA_RZ_H_ #define WARPX_SPECTRAL_FIELD_DATA_RZ_H_ -#include "SpectralKSpaceRZ.H" +#include "SpectralBinomialFilter.H" #include "SpectralFieldData.H" #include "SpectralHankelTransform/SpectralHankelTransformer.H" -#include "SpectralBinomialFilter.H" +#include "SpectralKSpaceRZ.H" + #include /* \brief Class that stores the fields in spectral space, and performs the diff --git a/Source/FieldSolver/SpectralSolver/SpectralHankelTransform/HankelTransform.cpp b/Source/FieldSolver/SpectralSolver/SpectralHankelTransform/HankelTransform.cpp index 9000f164c23..d6a357b7ff2 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralHankelTransform/HankelTransform.cpp +++ b/Source/FieldSolver/SpectralSolver/SpectralHankelTransform/HankelTransform.cpp @@ -4,11 +4,11 @@ * * License: BSD-3-Clause-LBNL */ -#include "WarpX.H" -#include "Utils/WarpXConst.H" - #include "HankelTransform.H" + #include "BesselRoots.H" +#include "Utils/WarpXConst.H" +#include "WarpX.H" #include #include diff --git a/Source/FieldSolver/SpectralSolver/SpectralHankelTransform/SpectralHankelTransformer.H b/Source/FieldSolver/SpectralSolver/SpectralHankelTransform/SpectralHankelTransformer.H index 82cf48fe467..e6dddf60e12 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralHankelTransform/SpectralHankelTransformer.H +++ b/Source/FieldSolver/SpectralSolver/SpectralHankelTransform/SpectralHankelTransformer.H @@ -7,9 +7,10 @@ #ifndef WARPX_SPECTRALHANKELTRANSFORMER_H_ #define WARPX_SPECTRALHANKELTRANSFORMER_H_ -#include #include "HankelTransform.H" +#include + /* \brief Object that allows to transform the fields back and forth between the * spectral and interpolation grid. * diff --git a/Source/FieldSolver/SpectralSolver/SpectralHankelTransform/SpectralHankelTransformer.cpp b/Source/FieldSolver/SpectralSolver/SpectralHankelTransform/SpectralHankelTransformer.cpp index 884ee5f4573..a40e62f0da1 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralHankelTransform/SpectralHankelTransformer.cpp +++ b/Source/FieldSolver/SpectralSolver/SpectralHankelTransform/SpectralHankelTransformer.cpp @@ -4,9 +4,10 @@ * * License: BSD-3-Clause-LBNL */ -#include "Utils/WarpXConst.H" #include "SpectralHankelTransformer.H" +#include "Utils/WarpXConst.H" + #include SpectralHankelTransformer::SpectralHankelTransformer (int const nr, diff --git a/Source/FieldSolver/SpectralSolver/SpectralKSpace.H b/Source/FieldSolver/SpectralSolver/SpectralKSpace.H index 9d74c38534c..cb56f24d1da 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralKSpace.H +++ b/Source/FieldSolver/SpectralSolver/SpectralKSpace.H @@ -12,15 +12,15 @@ #include "Utils/WarpX_Complex.H" -#include -#include #include +#include #include +#include #include +#include #include #include #include -#include // `KVectorComponent` and `SpectralShiftFactor` hold one 1D array // ("DeviceVector") for each box ("LayoutData"). The arrays are diff --git a/Source/FieldSolver/SpectralSolver/SpectralKSpace.cpp b/Source/FieldSolver/SpectralSolver/SpectralKSpace.cpp index 1c2d1e065b3..2f11f84caa0 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralKSpace.cpp +++ b/Source/FieldSolver/SpectralSolver/SpectralKSpace.cpp @@ -21,8 +21,8 @@ #include #include -#include #include +#include using namespace amrex; diff --git a/Source/FieldSolver/SpectralSolver/SpectralSolver.H b/Source/FieldSolver/SpectralSolver/SpectralSolver.H index 7b8b5b01c06..d8088552f06 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralSolver.H +++ b/Source/FieldSolver/SpectralSolver/SpectralSolver.H @@ -13,11 +13,11 @@ #include "SpectralFieldData.H" #include -#include -#include #include #include #include +#include +#include #include #include diff --git a/Source/FieldSolver/SpectralSolver/SpectralSolver.cpp b/Source/FieldSolver/SpectralSolver/SpectralSolver.cpp index 6787817b962..d04961c5fc8 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralSolver.cpp +++ b/Source/FieldSolver/SpectralSolver/SpectralSolver.cpp @@ -4,13 +4,13 @@ * * License: BSD-3-Clause-LBNL */ -#include "SpectralKSpace.H" -#include "SpectralSolver.H" -#include "SpectralAlgorithms/PsatdAlgorithm.H" -#include "SpectralAlgorithms/PMLPsatdAlgorithm.H" -#include "SpectralAlgorithms/ComovingPsatdAlgorithm.H" #include "FieldSolver/SpectralSolver/SpectralAlgorithms/SpectralBaseAlgorithm.H" #include "FieldSolver/SpectralSolver/SpectralFieldData.H" +#include "SpectralAlgorithms/ComovingPsatdAlgorithm.H" +#include "SpectralAlgorithms/PMLPsatdAlgorithm.H" +#include "SpectralAlgorithms/PsatdAlgorithm.H" +#include "SpectralKSpace.H" +#include "SpectralSolver.H" #include "Utils/WarpXProfilerWrapper.H" #include diff --git a/Source/FieldSolver/SpectralSolver/SpectralSolverRZ.cpp b/Source/FieldSolver/SpectralSolver/SpectralSolverRZ.cpp index f59b99752cc..ee4e5fd6d07 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralSolverRZ.cpp +++ b/Source/FieldSolver/SpectralSolver/SpectralSolverRZ.cpp @@ -4,12 +4,12 @@ * * License: BSD-3-Clause-LBNL */ +#include "SpectralAlgorithms/GalileanPsatdAlgorithmRZ.H" +#include "SpectralAlgorithms/PsatdAlgorithmRZ.H" #include "SpectralKSpaceRZ.H" #include "SpectralSolverRZ.H" -#include "SpectralAlgorithms/PsatdAlgorithmRZ.H" -#include "SpectralAlgorithms/GalileanPsatdAlgorithmRZ.H" -#include "WarpX.H" #include "Utils/WarpXProfilerWrapper.H" +#include "WarpX.H" /* \brief Initialize the spectral Maxwell solver * diff --git a/Source/FieldSolver/WarpXPushFieldsEM.cpp b/Source/FieldSolver/WarpXPushFieldsEM.cpp index 56766a2a5ac..f2fae02be98 100644 --- a/Source/FieldSolver/WarpXPushFieldsEM.cpp +++ b/Source/FieldSolver/WarpXPushFieldsEM.cpp @@ -7,14 +7,10 @@ * License: BSD-3-Clause-LBNL */ #include "WarpX.H" -#include "Utils/WarpXConst.H" + #include "BoundaryConditions/PML.H" #include "Evolve/WarpXDtType.H" #include "FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.H" -#include "Utils/WarpXAlgorithmSelection.H" -#include "Utils/WarpXProfilerWrapper.H" -#include "WarpX_FDTD.H" -#include "WarpXPushFieldsEM_K.H" #if defined(WARPX_DIM_RZ) || defined(WARPX_USE_PSATD) # include "FieldSolver/SpectralSolver/SpectralFieldData.H" # ifdef WARPX_DIM_RZ @@ -23,12 +19,16 @@ # include "FieldSolver/SpectralSolver/SpectralSolver.H" # endif #endif +#include "Utils/WarpXAlgorithmSelection.H" +#include "Utils/WarpXConst.H" +#include "Utils/WarpXProfilerWrapper.H" +#include "WarpXPushFieldsEM_K.H" +#include "WarpX_FDTD.H" +#include #ifdef BL_USE_SENSEI_INSITU # include #endif -#include -#include #include #include #include @@ -38,14 +38,15 @@ #include #include #include +#include #include +#include #include #include #include -#include -#include #include +#include #include using namespace amrex; diff --git a/Source/FieldSolver/WarpXPushFieldsEM_K.H b/Source/FieldSolver/WarpXPushFieldsEM_K.H index 7f6ca5f6997..8fe1b781bc5 100644 --- a/Source/FieldSolver/WarpXPushFieldsEM_K.H +++ b/Source/FieldSolver/WarpXPushFieldsEM_K.H @@ -9,6 +9,7 @@ #define WarpXPushFieldsEM_K_h #include "Utils/WarpXConst.H" + #include /* diff --git a/Source/FieldSolver/WarpX_QED_Field_Pushers.cpp b/Source/FieldSolver/WarpX_QED_Field_Pushers.cpp index d49e4053c2c..0ea37eb5d26 100644 --- a/Source/FieldSolver/WarpX_QED_Field_Pushers.cpp +++ b/Source/FieldSolver/WarpX_QED_Field_Pushers.cpp @@ -5,10 +5,14 @@ * License: BSD-3-Clause-LBNL */ #include "WarpX.H" -#include "WarpX_QED_K.H" + #include "Utils/WarpXAlgorithmSelection.H" #include "Utils/WarpXProfilerWrapper.H" +#include "WarpX_QED_K.H" +#ifdef BL_USE_SENSEI_INSITU +# include +#endif #include #include #include @@ -28,14 +32,11 @@ #include #include #include -#ifdef BL_USE_SENSEI_INSITU -# include -#endif #include +#include #include #include -#include using namespace amrex; diff --git a/Source/FieldSolver/WarpX_QED_K.H b/Source/FieldSolver/WarpX_QED_K.H index 6a1f2b3381b..6bc5986b1bc 100644 --- a/Source/FieldSolver/WarpX_QED_K.H +++ b/Source/FieldSolver/WarpX_QED_K.H @@ -9,8 +9,9 @@ #define WarpX_QED_K_h #include "Utils/WarpXConst.H" -#include + #include +#include #include diff --git a/Source/Filter/BilinearFilter.cpp b/Source/Filter/BilinearFilter.cpp index bb885ee887a..8a16e2a9b95 100644 --- a/Source/Filter/BilinearFilter.cpp +++ b/Source/Filter/BilinearFilter.cpp @@ -6,15 +6,16 @@ * License: BSD-3-Clause-LBNL */ #include "BilinearFilter.H" + #include "Utils/WarpXProfilerWrapper.H" +#include #include #include #include #include -#include #include -#include +#include #include #include diff --git a/Source/Filter/Filter.H b/Source/Filter/Filter.H index 1dd1a6a9533..8b8bdf09334 100644 --- a/Source/Filter/Filter.H +++ b/Source/Filter/Filter.H @@ -4,14 +4,14 @@ * * License: BSD-3-Clause-LBNL */ -#include +#include +#include #include +#include #include #include +#include #include -#include -#include -#include #ifndef WARPX_FILTER_H_ #define WARPX_FILTER_H_ diff --git a/Source/Initialization/CustomDensityProb.H b/Source/Initialization/CustomDensityProb.H index 935345bd9a2..d2d9b04bae9 100644 --- a/Source/Initialization/CustomDensityProb.H +++ b/Source/Initialization/CustomDensityProb.H @@ -7,12 +7,12 @@ #ifndef CUSTOM_DENSITY_PROB_H_ #define CUSTOM_DENSITY_PROB_H_ -#include +#include "Utils/WarpXUtil.H" + #include -#include #include - -#include "Utils/WarpXUtil.H" +#include +#include // An example of Custom Density Profile diff --git a/Source/Initialization/CustomMomentumProb.H b/Source/Initialization/CustomMomentumProb.H index f406a4706ff..1cda54c9d30 100644 --- a/Source/Initialization/CustomMomentumProb.H +++ b/Source/Initialization/CustomMomentumProb.H @@ -7,10 +7,10 @@ #ifndef CUSTOM_MOMENTUM_PROB_H #define CUSTOM_MOMENTUM_PROB_H -#include -#include #include #include +#include +#include // An example of Custom Momentum Profile diff --git a/Source/Initialization/InjectorDensity.H b/Source/Initialization/InjectorDensity.H index 9d707f41538..a0d2f3366e3 100644 --- a/Source/Initialization/InjectorDensity.H +++ b/Source/Initialization/InjectorDensity.H @@ -9,9 +9,9 @@ #ifndef INJECTOR_DENSITY_H_ #define INJECTOR_DENSITY_H_ +#include "CustomDensityProb.H" #include "Parser/GpuParser.H" #include "Parser/WarpXParser.H" -#include "CustomDensityProb.H" #include "Utils/WarpXConst.H" #include @@ -19,8 +19,8 @@ #include #include -#include #include +#include // struct whose getDensity returns constant density. struct InjectorDensityConstant diff --git a/Source/Initialization/InjectorDensity.cpp b/Source/Initialization/InjectorDensity.cpp index 4d8c708ab52..572b37d9eb6 100644 --- a/Source/Initialization/InjectorDensity.cpp +++ b/Source/Initialization/InjectorDensity.cpp @@ -14,8 +14,8 @@ #include #include +#include #include -#include using namespace amrex; diff --git a/Source/Initialization/InjectorMomentum.H b/Source/Initialization/InjectorMomentum.H index 34726882139..1848b6c0584 100644 --- a/Source/Initialization/InjectorMomentum.H +++ b/Source/Initialization/InjectorMomentum.H @@ -10,19 +10,18 @@ #include "CustomMomentumProb.H" #include "Parser/GpuParser.H" -#include "Utils/WarpXConst.H" #include "Parser/WarpXParser.H" +#include "Utils/WarpXConst.H" #include +#include +#include #include #include #include -#include -#include -#include #include - +#include // struct whose getMomentum returns constant momentum. struct InjectorMomentumConstant diff --git a/Source/Initialization/InjectorPosition.H b/Source/Initialization/InjectorPosition.H index 88f989c8317..1b0db4b10cb 100644 --- a/Source/Initialization/InjectorPosition.H +++ b/Source/Initialization/InjectorPosition.H @@ -10,8 +10,8 @@ #include "InjectorPosition_fwd.H" -#include #include +#include #include // struct whose getPositionUnitBox returns x, y and z for a particle with diff --git a/Source/Initialization/PlasmaInjector.H b/Source/Initialization/PlasmaInjector.H index 3e578c5d3c3..0de2c6f68b7 100644 --- a/Source/Initialization/PlasmaInjector.H +++ b/Source/Initialization/PlasmaInjector.H @@ -9,23 +9,23 @@ #ifndef PLASMA_INJECTOR_H_ #define PLASMA_INJECTOR_H_ -#include "Particles/SpeciesPhysicalProperties.H" -#include "InjectorMomentum.H" #include "InjectorDensity.H" +#include "InjectorMomentum.H" +#include "Particles/SpeciesPhysicalProperties.H" #include "InjectorPosition_fwd.H" -#include -#include #include +#include #include +#include #ifdef WARPX_USE_OPENPMD # include #endif -#include #include +#include #include /// diff --git a/Source/Initialization/PlasmaInjector.cpp b/Source/Initialization/PlasmaInjector.cpp index 7fff101b8ac..c77960eb6d6 100644 --- a/Source/Initialization/PlasmaInjector.cpp +++ b/Source/Initialization/PlasmaInjector.cpp @@ -9,31 +9,31 @@ */ #include "PlasmaInjector.H" -#include "Particles/SpeciesPhysicalProperties.H" #include "Initialization/InjectorDensity.H" #include "Initialization/InjectorMomentum.H" #include "Initialization/InjectorPosition.H" +#include "Particles/SpeciesPhysicalProperties.H" #include "Utils/WarpXConst.H" #include "Utils/WarpXUtil.H" #include "WarpX.H" #include -#include -#include #include +#include #include #include +#include #include +#include #include -#include #include +#include #include +#include +#include #include #include -#include -#include -#include using namespace amrex; diff --git a/Source/Initialization/WarpXInitData.cpp b/Source/Initialization/WarpXInitData.cpp index 05e3b19be46..7e452afb7bc 100644 --- a/Source/Initialization/WarpXInitData.cpp +++ b/Source/Initialization/WarpXInitData.cpp @@ -10,27 +10,29 @@ */ #include "WarpX.H" -#include "Filter/BilinearFilter.H" -#include "Filter/NCIGodfreyFilter.H" -#include "Parser/GpuParser.H" -#include "Utils/WarpXUtil.H" -#include "Utils/WarpXAlgorithmSelection.H" #include "BoundaryConditions/PML.H" #include "Diagnostics/BackTransformedDiagnostic.H" #include "Diagnostics/MultiDiagnostics.H" #include "Diagnostics/ReducedDiags/MultiReducedDiags.H" #include "FieldSolver/FiniteDifferenceSolver/MacroscopicProperties/MacroscopicProperties.H" +#include "Filter/BilinearFilter.H" +#include "Filter/NCIGodfreyFilter.H" +#include "Parser/GpuParser.H" #include "Parser/WarpXParserWrapper.H" #include "Particles/MultiParticleContainer.H" +#include "Utils/WarpXAlgorithmSelection.H" #include "Utils/WarpXConst.H" #include "Utils/WarpXProfilerWrapper.H" +#include "Utils/WarpXUtil.H" -#include -#include #include #include +#ifdef BL_USE_SENSEI_INSITU +# include +#endif #include #include +#include #include #include #include @@ -44,20 +46,18 @@ #include #include #include +#include +#include #include #include #include #include #include -#include -#ifdef BL_USE_SENSEI_INSITU -# include -#endif -#include #include #include #include +#include #include #include #include diff --git a/Source/Laser/LaserProfiles.H b/Source/Laser/LaserProfiles.H index 2bb566a01b4..22b2187cd3b 100644 --- a/Source/Laser/LaserProfiles.H +++ b/Source/Laser/LaserProfiles.H @@ -9,16 +9,16 @@ #include "Parser/WarpXParserWrapper.H" -#include +#include #include +#include #include -#include -#include -#include -#include #include #include +#include +#include +#include #include diff --git a/Source/Laser/LaserProfilesImpl/LaserProfileFieldFunction.cpp b/Source/Laser/LaserProfilesImpl/LaserProfileFieldFunction.cpp index d8ed19173e9..e54a18f813b 100644 --- a/Source/Laser/LaserProfilesImpl/LaserProfileFieldFunction.cpp +++ b/Source/Laser/LaserProfilesImpl/LaserProfileFieldFunction.cpp @@ -5,6 +5,7 @@ * License: BSD-3-Clause-LBNL */ #include "Laser/LaserProfiles.H" + #include "Parser/WarpXParser.H" #include "Parser/WarpXParserWrapper.H" #include "Utils/WarpX_Complex.H" diff --git a/Source/Laser/LaserProfilesImpl/LaserProfileFromTXYEFile.cpp b/Source/Laser/LaserProfilesImpl/LaserProfileFromTXYEFile.cpp index 91b8801d2ec..127470314b5 100644 --- a/Source/Laser/LaserProfilesImpl/LaserProfileFromTXYEFile.cpp +++ b/Source/Laser/LaserProfilesImpl/LaserProfileFromTXYEFile.cpp @@ -5,11 +5,10 @@ * License: BSD-3-Clause-LBNL */ #include "Laser/LaserProfiles.H" + #include "Utils/WarpXUtil.H" #include "Utils/WarpX_Complex.H" -#include -#include #include #include #include @@ -19,16 +18,18 @@ #include #include #include +#include #include +#include #include #include -#include -#include -#include #include #include +#include +#include #include +#include #include #include #include diff --git a/Source/Laser/LaserProfilesImpl/LaserProfileGaussian.cpp b/Source/Laser/LaserProfilesImpl/LaserProfileGaussian.cpp index 371b0324795..c797901594e 100644 --- a/Source/Laser/LaserProfilesImpl/LaserProfileGaussian.cpp +++ b/Source/Laser/LaserProfilesImpl/LaserProfileGaussian.cpp @@ -6,6 +6,7 @@ * License: BSD-3-Clause-LBNL */ #include "Laser/LaserProfiles.H" + #include "Utils/WarpXConst.H" #include "Utils/WarpXUtil.H" #include "Utils/WarpX_Complex.H" @@ -20,10 +21,10 @@ #include #include +#include +#include #include #include -#include -#include using namespace amrex; diff --git a/Source/Laser/LaserProfilesImpl/LaserProfileHarris.cpp b/Source/Laser/LaserProfilesImpl/LaserProfileHarris.cpp index a174606a504..1440222c5cc 100644 --- a/Source/Laser/LaserProfilesImpl/LaserProfileHarris.cpp +++ b/Source/Laser/LaserProfilesImpl/LaserProfileHarris.cpp @@ -5,6 +5,7 @@ * License: BSD-3-Clause-LBNL */ #include "Laser/LaserProfiles.H" + #include "Utils/WarpXConst.H" #include "Utils/WarpXUtil.H" #include "Utils/WarpX_Complex.H" diff --git a/Source/Parallelization/GuardCellManager.H b/Source/Parallelization/GuardCellManager.H index cd2db4fb125..d07c5c99a1c 100644 --- a/Source/Parallelization/GuardCellManager.H +++ b/Source/Parallelization/GuardCellManager.H @@ -7,10 +7,10 @@ #ifndef GUARDCELLMANAGER_H_ #define GUARDCELLMANAGER_H_ -#include -#include #include +#include #include +#include /** * \brief This class computes and stores the number of guard cells needed for diff --git a/Source/Parallelization/GuardCellManager.cpp b/Source/Parallelization/GuardCellManager.cpp index b5ed4ac846e..8fe9622a471 100644 --- a/Source/Parallelization/GuardCellManager.cpp +++ b/Source/Parallelization/GuardCellManager.cpp @@ -4,22 +4,23 @@ * * License: BSD-3-Clause-LBNL */ -#include "GuardCellManager.H" -#include "Filter/NCIGodfreyFilter.H" -#include "Utils/WarpXAlgorithmSelection.H" -#include "Utils/WarpXConst.H" -#ifdef WARPX_DIM_RZ -# include "FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CylindricalYeeAlgorithm.H" -#else +#ifndef WARPX_DIM_RZ # include "FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CartesianYeeAlgorithm.H" # include "FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CartesianNodalAlgorithm.H" # include "FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CartesianCKCAlgorithm.H" +#else +# include "FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CylindricalYeeAlgorithm.H" #endif -#include +#include "Filter/NCIGodfreyFilter.H" +#include "GuardCellManager.H" +#include "Utils/WarpXAlgorithmSelection.H" +#include "Utils/WarpXConst.H" + #include #include -#include #include +#include +#include #include diff --git a/Source/Parallelization/KernelTimer.H b/Source/Parallelization/KernelTimer.H index 2972b59ef8c..9166ecb5fe0 100644 --- a/Source/Parallelization/KernelTimer.H +++ b/Source/Parallelization/KernelTimer.H @@ -11,7 +11,7 @@ // #ifdef WARPX_USE_GPUCLOCK -#include +#include /** * \brief Defines a timer object to be used on GPU; measures summed thread cycles. diff --git a/Source/Parallelization/WarpXComm.cpp b/Source/Parallelization/WarpXComm.cpp index 468d5d8a9d5..f91de969fa2 100644 --- a/Source/Parallelization/WarpXComm.cpp +++ b/Source/Parallelization/WarpXComm.cpp @@ -8,14 +8,14 @@ */ #include "WarpX.H" -#include "WarpXComm_K.H" -#include "WarpXSumGuardCells.H" -#include "Utils/CoarsenMR.H" -#include "Utils/WarpXProfilerWrapper.H" #include "BoundaryConditions/PML.H" #include "Filter/BilinearFilter.H" +#include "Utils/CoarsenMR.H" #include "Utils/IntervalsParser.H" #include "Utils/WarpXAlgorithmSelection.H" +#include "Utils/WarpXProfilerWrapper.H" +#include "WarpXComm_K.H" +#include "WarpXSumGuardCells.H" #include #include @@ -38,8 +38,8 @@ #include #include -#include #include +#include #include using namespace amrex; diff --git a/Source/Parallelization/WarpXComm_K.H b/Source/Parallelization/WarpXComm_K.H index 9c1b16b7daa..04226e97177 100644 --- a/Source/Parallelization/WarpXComm_K.H +++ b/Source/Parallelization/WarpXComm_K.H @@ -7,8 +7,8 @@ #ifndef WARPX_COMM_K_H_ #define WARPX_COMM_K_H_ -#include #include +#include AMREX_GPU_DEVICE AMREX_FORCE_INLINE void warpx_interp (int j, int k, int l, diff --git a/Source/Parallelization/WarpXRegrid.cpp b/Source/Parallelization/WarpXRegrid.cpp index c0c76e336bc..cd9234a88b3 100644 --- a/Source/Parallelization/WarpXRegrid.cpp +++ b/Source/Parallelization/WarpXRegrid.cpp @@ -8,15 +8,14 @@ */ #include "WarpX.H" -#include "Utils/WarpXAlgorithmSelection.H" -#include "Utils/WarpXProfilerWrapper.H" -#include "Particles/MultiParticleContainer.H" #include "Diagnostics/MultiDiagnostics.H" +#include "Particles/MultiParticleContainer.H" #include "Particles/WarpXParticleContainer.H" +#include "Utils/WarpXAlgorithmSelection.H" +#include "Utils/WarpXProfilerWrapper.H" -#include -#include #include +#include #include #include #include @@ -25,6 +24,7 @@ #include #include #include +#include #include #include #include @@ -38,11 +38,11 @@ #include #include -#include -#include #include -#include #include +#include +#include +#include using namespace amrex; diff --git a/Source/Parser/GpuParser.H b/Source/Parser/GpuParser.H index f7a95a7b1ff..3d7a631d73a 100644 --- a/Source/Parser/GpuParser.H +++ b/Source/Parser/GpuParser.H @@ -9,10 +9,10 @@ #include "Parser/WarpXParser.H" -#include +#include #include +#include #include -#include // When compiled for CPU, wrap WarpXParser and enable threading. // When compiled for GPU, store one copy of the parser in diff --git a/Source/Parser/WarpXParser.H b/Source/Parser/WarpXParser.H index 10207fe6cc8..f29abb11c9e 100644 --- a/Source/Parser/WarpXParser.H +++ b/Source/Parser/WarpXParser.H @@ -10,18 +10,18 @@ #include "wp_parser_c.h" #include "wp_parser_y.h" -#include #include +#include #ifdef AMREX_USE_OMP # include #endif #include -#include -#include -#include #include +#include +#include +#include class WarpXParser { diff --git a/Source/Parser/WarpXParser.cpp b/Source/Parser/WarpXParser.cpp index c7efe739b46..4f228aedf69 100644 --- a/Source/Parser/WarpXParser.cpp +++ b/Source/Parser/WarpXParser.cpp @@ -4,9 +4,9 @@ * * License: BSD-3-Clause-LBNL */ +#include "WarpXParser.H" #include -#include "WarpXParser.H" WarpXParser::WarpXParser (std::string const& func_body) { diff --git a/Source/Parser/WarpXParserWrapper.H b/Source/Parser/WarpXParserWrapper.H index 4395858b5ec..96035861092 100644 --- a/Source/Parser/WarpXParserWrapper.H +++ b/Source/Parser/WarpXParserWrapper.H @@ -9,8 +9,8 @@ #include "WarpXParserWrapper_fwd.H" -#include "Parser/WarpXParser.H" #include "Parser/GpuParser.H" +#include "Parser/WarpXParser.H" #include diff --git a/Source/Parser/wp_parser_c.h b/Source/Parser/wp_parser_c.h index 14053691db7..92c8a5c6774 100644 --- a/Source/Parser/wp_parser_c.h +++ b/Source/Parser/wp_parser_c.h @@ -3,13 +3,13 @@ #include "wp_parser_y.h" -#include -#include +#include #include +#include +#include #include -#include #include -#include +#include #include #include diff --git a/Source/Parser/wp_parser_y.cpp b/Source/Parser/wp_parser_y.cpp index ce0d739fc81..a3f7386c824 100644 --- a/Source/Parser/wp_parser_y.cpp +++ b/Source/Parser/wp_parser_y.cpp @@ -1,5 +1,6 @@ #include "wp_parser_y.h" #include "wp_parser.tab.h" + #include static struct wp_node* wp_root = NULL; diff --git a/Source/Parser/wp_parser_y.h b/Source/Parser/wp_parser_y.h index 865cc807203..e91a5ba6cf0 100644 --- a/Source/Parser/wp_parser_y.h +++ b/Source/Parser/wp_parser_y.h @@ -1,15 +1,15 @@ #ifndef WP_PARSER_Y_H_ #define WP_PARSER_Y_H_ -#include #include -#include +#include #include #include +#include #include -#include #include +#include #include #include #include diff --git a/Source/Particles/Collision/CollisionBase.H b/Source/Particles/Collision/CollisionBase.H index 528185aa2eb..3d79857e055 100644 --- a/Source/Particles/Collision/CollisionBase.H +++ b/Source/Particles/Collision/CollisionBase.H @@ -9,8 +9,8 @@ #include "Particles/MultiParticleContainer_fwd.H" -#include #include +#include #include diff --git a/Source/Particles/Collision/CollisionHandler.H b/Source/Particles/Collision/CollisionHandler.H index efcb7fe9513..78141fea08d 100644 --- a/Source/Particles/Collision/CollisionHandler.H +++ b/Source/Particles/Collision/CollisionHandler.H @@ -11,8 +11,8 @@ #include "Particles/MultiParticleContainer_fwd.H" -#include #include +#include #include #include diff --git a/Source/Particles/Collision/ElasticCollisionPerez.H b/Source/Particles/Collision/ElasticCollisionPerez.H index 35f784f57e3..9c54c94c064 100644 --- a/Source/Particles/Collision/ElasticCollisionPerez.H +++ b/Source/Particles/Collision/ElasticCollisionPerez.H @@ -7,8 +7,8 @@ #ifndef WARPX_PARTICLES_COLLISION_ELASTIC_COLLISION_PEREZ_H_ #define WARPX_PARTICLES_COLLISION_ELASTIC_COLLISION_PEREZ_H_ -#include "UpdateMomentumPerezElastic.H" #include "ComputeTemperature.H" +#include "UpdateMomentumPerezElastic.H" #include "Utils/WarpXConst.H" #include diff --git a/Source/Particles/Collision/PairWiseCoulombCollision.H b/Source/Particles/Collision/PairWiseCoulombCollision.H index 94548b89eb4..abd7e4ccc09 100644 --- a/Source/Particles/Collision/PairWiseCoulombCollision.H +++ b/Source/Particles/Collision/PairWiseCoulombCollision.H @@ -12,8 +12,8 @@ #include "Particles/MultiParticleContainer_fwd.H" #include "Particles/WarpXParticleContainer_fwd.H" -#include #include +#include #include diff --git a/Source/Particles/Collision/PairWiseCoulombCollision.cpp b/Source/Particles/Collision/PairWiseCoulombCollision.cpp index f5f15a2785c..b6ca69f5b1c 100644 --- a/Source/Particles/Collision/PairWiseCoulombCollision.cpp +++ b/Source/Particles/Collision/PairWiseCoulombCollision.cpp @@ -5,14 +5,15 @@ * License: BSD-3-Clause-LBNL */ #include "PairWiseCoulombCollision.H" -#include "ShuffleFisherYates.H" + #include "ElasticCollisionPerez.H" -#include "Utils/ParticleUtils.H" -#include "Utils/WarpXUtil.H" #include "Particles/Collision/CollisionBase.H" #include "Particles/MultiParticleContainer.H" #include "Particles/WarpXParticleContainer.H" +#include "ShuffleFisherYates.H" +#include "Utils/ParticleUtils.H" #include "Utils/WarpXAlgorithmSelection.H" +#include "Utils/WarpXUtil.H" #include "WarpX.H" #include diff --git a/Source/Particles/Collision/UpdateMomentumPerezElastic.H b/Source/Particles/Collision/UpdateMomentumPerezElastic.H index 2a6d2c61427..b5acd85a706 100644 --- a/Source/Particles/Collision/UpdateMomentumPerezElastic.H +++ b/Source/Particles/Collision/UpdateMomentumPerezElastic.H @@ -8,13 +8,13 @@ #define WARPX_PARTICLES_COLLISION_UPDATE_MOMENTUM_PEREZ_ELASTIC_H_ #include "Utils/WarpXConst.H" -#include + #include +#include #include // isnan() isinf() #include // numeric_limits::min() - /* \brief Update particle velocities according to * F. Perez et al., Phys.Plasmas.19.083104 (2012), * which is based on Nanbu's method, PhysRevE.55.4642 (1997). diff --git a/Source/Particles/Deposition/CurrentDeposition.H b/Source/Particles/Deposition/CurrentDeposition.H index ff288b500df..84afa49857a 100644 --- a/Source/Particles/Deposition/CurrentDeposition.H +++ b/Source/Particles/Deposition/CurrentDeposition.H @@ -8,15 +8,15 @@ #ifndef CURRENTDEPOSITION_H_ #define CURRENTDEPOSITION_H_ +#include "Parallelization/KernelTimer.H" #include "Particles/Pusher/GetAndSetPosition.H" #include "Particles/ShapeFactors.H" -#include "Parallelization/KernelTimer.H" #include "Utils/WarpX_Complex.H" #include +#include #include #include -#include using namespace amrex::literals; diff --git a/Source/Particles/ElementaryProcess/Ionization.H b/Source/Particles/ElementaryProcess/Ionization.H index 6f760f8241d..897fe4cad17 100644 --- a/Source/Particles/ElementaryProcess/Ionization.H +++ b/Source/Particles/ElementaryProcess/Ionization.H @@ -8,21 +8,21 @@ #ifndef IONIZATION_H_ #define IONIZATION_H_ -#include "Utils/WarpXConst.H" -#include "Particles/WarpXParticleContainer.H" -#include "Particles/Gather/GetExternalFields.H" #include "Particles/Gather/FieldGather.H" +#include "Particles/Gather/GetExternalFields.H" #include "Particles/Pusher/GetAndSetPosition.H" +#include "Particles/WarpXParticleContainer.H" +#include "Utils/WarpXConst.H" #include #include #include #include +#include #include #include -#include -#include #include +#include #include #include diff --git a/Source/Particles/ElementaryProcess/QEDInternals/BreitWheelerEngineWrapper.H b/Source/Particles/ElementaryProcess/QEDInternals/BreitWheelerEngineWrapper.H index e59aea89281..3709091bc54 100644 --- a/Source/Particles/ElementaryProcess/QEDInternals/BreitWheelerEngineWrapper.H +++ b/Source/Particles/ElementaryProcess/QEDInternals/BreitWheelerEngineWrapper.H @@ -9,8 +9,8 @@ #include "BreitWheelerEngineWrapper_fwd.H" -#include "QedWrapperCommons.H" #include "QedChiFunctions.H" +#include "QedWrapperCommons.H" #include "Utils/WarpXConst.H" #include @@ -19,18 +19,18 @@ #include #include -#include -#include -#include #include #include #include #include +#include +#include +#include #include #include -#include #include +#include namespace amrex { struct RandomEngine; } diff --git a/Source/Particles/ElementaryProcess/QEDInternals/BreitWheelerEngineWrapper.cpp b/Source/Particles/ElementaryProcess/QEDInternals/BreitWheelerEngineWrapper.cpp index 6da3103678c..655c0eb262b 100644 --- a/Source/Particles/ElementaryProcess/QEDInternals/BreitWheelerEngineWrapper.cpp +++ b/Source/Particles/ElementaryProcess/QEDInternals/BreitWheelerEngineWrapper.cpp @@ -6,23 +6,22 @@ */ #include "BreitWheelerEngineWrapper.H" +#include +#include + +#include //Functions needed to generate a new table #ifdef WARPX_QED_TABLE_GEN # include #endif - -#include -#include - #include -#include -#include -#include #include #include +#include #include #include +#include using namespace std; using namespace amrex; diff --git a/Source/Particles/ElementaryProcess/QEDInternals/QedWrapperCommons.H b/Source/Particles/ElementaryProcess/QEDInternals/QedWrapperCommons.H index aa95486ae57..95d832de550 100644 --- a/Source/Particles/ElementaryProcess/QEDInternals/QedWrapperCommons.H +++ b/Source/Particles/ElementaryProcess/QEDInternals/QedWrapperCommons.H @@ -14,8 +14,8 @@ */ #include -#include #include +#include /** * PICSAR uses PXRMP_GPU to decorate methods which should be diff --git a/Source/Particles/ElementaryProcess/QEDInternals/QuantumSyncEngineWrapper.H b/Source/Particles/ElementaryProcess/QEDInternals/QuantumSyncEngineWrapper.H index d1e9aee074e..b47fd1e095d 100644 --- a/Source/Particles/ElementaryProcess/QEDInternals/QuantumSyncEngineWrapper.H +++ b/Source/Particles/ElementaryProcess/QEDInternals/QuantumSyncEngineWrapper.H @@ -9,27 +9,27 @@ #include "BreitWheelerEngineWrapper_fwd.H" -#include "QedWrapperCommons.H" #include "QedChiFunctions.H" +#include "QedWrapperCommons.H" #include "Utils/WarpXConst.H" -#include #include #include #include #include #include +#include -#include -#include #include #include #include #include +#include +#include #include -#include #include +#include namespace amrex { struct RandomEngine; } diff --git a/Source/Particles/ElementaryProcess/QEDInternals/QuantumSyncEngineWrapper.cpp b/Source/Particles/ElementaryProcess/QEDInternals/QuantumSyncEngineWrapper.cpp index b8234bcb028..81f396456d9 100644 --- a/Source/Particles/ElementaryProcess/QEDInternals/QuantumSyncEngineWrapper.cpp +++ b/Source/Particles/ElementaryProcess/QEDInternals/QuantumSyncEngineWrapper.cpp @@ -9,19 +9,19 @@ #include #include +#include "picsar_qed/physics/quantum_sync/quantum_sync_engine_tables.hpp" //Functions needed to generate a new table #ifdef WARPX_QED_TABLE_GEN # include #endif -#include "picsar_qed/physics/quantum_sync/quantum_sync_engine_tables.hpp" #include "picsar_qed/utils/serialization.hpp" -#include -#include #include #include +#include #include #include +#include using namespace std; using namespace amrex; diff --git a/Source/Particles/ElementaryProcess/QEDInternals/SchwingerProcessWrapper.H b/Source/Particles/ElementaryProcess/QEDInternals/SchwingerProcessWrapper.H index b794c8b0880..8cef3c3e5ce 100644 --- a/Source/Particles/ElementaryProcess/QEDInternals/SchwingerProcessWrapper.H +++ b/Source/Particles/ElementaryProcess/QEDInternals/SchwingerProcessWrapper.H @@ -10,8 +10,10 @@ #include "QedWrapperCommons.H" -#include #include + +#include + #include /** diff --git a/Source/Particles/ElementaryProcess/QEDPairGeneration.H b/Source/Particles/ElementaryProcess/QEDPairGeneration.H index 2bbae44ae9b..f0e229b5e7f 100644 --- a/Source/Particles/ElementaryProcess/QEDPairGeneration.H +++ b/Source/Particles/ElementaryProcess/QEDPairGeneration.H @@ -8,21 +8,21 @@ #ifndef QED_PAIR_GENERATION_H_ #define QED_PAIR_GENERATION_H_ -#include "Particles/WarpXParticleContainer.H" -#include "Particles/Gather/GetExternalFields.H" #include "Particles/Gather/FieldGather.H" +#include "Particles/Gather/GetExternalFields.H" #include "Particles/Pusher/GetAndSetPosition.H" +#include "Particles/WarpXParticleContainer.H" #include "QEDInternals/BreitWheelerEngineWrapper.H" #include #include #include #include +#include #include #include -#include -#include #include +#include #include /** @file diff --git a/Source/Particles/ElementaryProcess/QEDPhotonEmission.H b/Source/Particles/ElementaryProcess/QEDPhotonEmission.H index 0d3b605b754..25f76859499 100644 --- a/Source/Particles/ElementaryProcess/QEDPhotonEmission.H +++ b/Source/Particles/ElementaryProcess/QEDPhotonEmission.H @@ -8,23 +8,23 @@ #ifndef QED_PHOTON_EMISSION_H_ #define QED_PHOTON_EMISSION_H_ -#include "Utils/WarpXConst.H" -#include "Particles/WarpXParticleContainer.H" -#include "Particles/Gather/GetExternalFields.H" #include "Particles/Gather/FieldGather.H" +#include "Particles/Gather/GetExternalFields.H" #include "Particles/Pusher/GetAndSetPosition.H" +#include "Particles/WarpXParticleContainer.H" #include "QEDInternals/QuantumSyncEngineWrapper.H" +#include "Utils/WarpXConst.H" #include #include #include #include +#include #include #include #include -#include -#include #include +#include #include #include diff --git a/Source/Particles/Filter/FilterFunctors.H b/Source/Particles/Filter/FilterFunctors.H index 70856bbbef2..e713bcfe3f4 100644 --- a/Source/Particles/Filter/FilterFunctors.H +++ b/Source/Particles/Filter/FilterFunctors.H @@ -7,10 +7,10 @@ #ifndef FILTERFUNCTORS_H #define FILTERFUNCTORS_H -#include "WarpX.H" #include "Particles/Pusher/GetAndSetPosition.H" #include "Particles/WarpXParticleContainer.H" #include "Utils/WarpXConst.H" +#include "WarpX.H" #include #include diff --git a/Source/Particles/Gather/FieldGather.H b/Source/Particles/Gather/FieldGather.H index 7f3eeda297f..7f240b2e855 100644 --- a/Source/Particles/Gather/FieldGather.H +++ b/Source/Particles/Gather/FieldGather.H @@ -8,8 +8,8 @@ #ifndef FIELDGATHER_H_ #define FIELDGATHER_H_ -#include "Particles/Pusher/GetAndSetPosition.H" #include "Particles/Gather/GetExternalFields.H" +#include "Particles/Pusher/GetAndSetPosition.H" #include "Particles/ShapeFactors.H" #include "Utils/WarpX_Complex.H" diff --git a/Source/Particles/Gather/GetExternalFields.H b/Source/Particles/Gather/GetExternalFields.H index f742f6668fd..73fc3e941b6 100644 --- a/Source/Particles/Gather/GetExternalFields.H +++ b/Source/Particles/Gather/GetExternalFields.H @@ -1,17 +1,16 @@ #ifndef WARPX_PARTICLES_GATHER_GETEXTERNALFIELDS_H_ #define WARPX_PARTICLES_GATHER_GETEXTERNALFIELDS_H_ - -#include "Particles/Pusher/GetAndSetPosition.H" #include "Parser/WarpXParserWrapper.H" +#include "Particles/Pusher/GetAndSetPosition.H" #include "Particles/WarpXParticleContainer_fwd.H" -#include #include #include #include #include +#include enum ExternalFieldInitType { Constant, Parser }; diff --git a/Source/Particles/Gather/GetExternalFields.cpp b/Source/Particles/Gather/GetExternalFields.cpp index 898a32f9a2e..f21c8fb5eb0 100644 --- a/Source/Particles/Gather/GetExternalFields.cpp +++ b/Source/Particles/Gather/GetExternalFields.cpp @@ -1,8 +1,8 @@ #include "Particles/Gather/GetExternalFields.H" -#include "WarpX.H" -#include "Particles/WarpXParticleContainer.H" #include "Particles/MultiParticleContainer.H" +#include "Particles/WarpXParticleContainer.H" +#include "WarpX.H" #include diff --git a/Source/Particles/LaserParticleContainer.H b/Source/Particles/LaserParticleContainer.H index deda1aa48c9..46c346660ce 100644 --- a/Source/Particles/LaserParticleContainer.H +++ b/Source/Particles/LaserParticleContainer.H @@ -9,19 +9,19 @@ #ifndef WARPX_LaserParticleContainer_H_ #define WARPX_LaserParticleContainer_H_ -#include "Laser/LaserProfiles.H" #include "Evolve/WarpXDtType.H" +#include "Laser/LaserProfiles.H" #include "WarpXParticleContainer.H" +#include #include +#include #include #include #include -#include -#include -#include #include +#include #include /** diff --git a/Source/Particles/LaserParticleContainer.cpp b/Source/Particles/LaserParticleContainer.cpp index c2952ea3fa7..5219a07de10 100644 --- a/Source/Particles/LaserParticleContainer.cpp +++ b/Source/Particles/LaserParticleContainer.cpp @@ -8,16 +8,16 @@ */ #include "LaserParticleContainer.H" -#include "WarpX.H" -#include "Utils/WarpXConst.H" -#include "Particles/Pusher/GetAndSetPosition.H" +#include "Evolve/WarpXDtType.H" +#include "Laser/LaserProfiles.H" #include "Particles/LaserParticleContainer.H" +#include "Particles/Pusher/GetAndSetPosition.H" #include "Particles/WarpXParticleContainer.H" -#include "Utils/WarpXProfilerWrapper.H" #include "Utils/WarpXAlgorithmSelection.H" -#include "Laser/LaserProfiles.H" -#include "Evolve/WarpXDtType.H" +#include "Utils/WarpXConst.H" +#include "Utils/WarpXProfilerWrapper.H" #include "Utils/WarpXUtil.H" +#include "WarpX.H" #include #include @@ -52,16 +52,16 @@ # include #endif -#include -#include #include -#include -#include -#include #include +#include +#include +#include #include +#include #include #include +#include #include #include diff --git a/Source/Particles/MultiParticleContainer.H b/Source/Particles/MultiParticleContainer.H index 66903fcb710..48135dd4267 100644 --- a/Source/Particles/MultiParticleContainer.H +++ b/Source/Particles/MultiParticleContainer.H @@ -13,41 +13,40 @@ #include "MultiParticleContainer_fwd.H" -#include "Utils/WarpXUtil.H" -#include "WarpXParticleContainer.H" -#include "PhysicalParticleContainer.H" +#include "Evolve/WarpXDtType.H" #include "Parser/WarpXParserWrapper.H" #include "Particles/Collision/CollisionHandler.H" -#include "Evolve/WarpXDtType.H" -#include "Utils/WarpXConst.H" - #ifdef WARPX_QED # include "Particles/ElementaryProcess/QEDInternals/BreitWheelerEngineWrapper_fwd.H" # include "Particles/ElementaryProcess/QEDInternals/QuantumSyncEngineWrapper_fwd.H" #endif +#include "PhysicalParticleContainer.H" +#include "Utils/WarpXConst.H" +#include "Utils/WarpXUtil.H" +#include "WarpXParticleContainer.H" +#include #include #include +#include #include +#include #include #include -#include -#include -#include -#include -#include -#include #include +#include #include +#include #include +#include -#include -#include #include #include #include #include #include +#include +#include #include /** diff --git a/Source/Particles/MultiParticleContainer.cpp b/Source/Particles/MultiParticleContainer.cpp index f8729b067e9..4990f7c6dd0 100644 --- a/Source/Particles/MultiParticleContainer.cpp +++ b/Source/Particles/MultiParticleContainer.cpp @@ -10,12 +10,19 @@ * License: BSD-3-Clause-LBNL */ #include "MultiParticleContainer.H" -#include "SpeciesPhysicalProperties.H" -#include "WarpX.H" -#include "Utils/WarpXProfilerWrapper.H" #include "Particles/ElementaryProcess/Ionization.H" +#ifdef WARPX_QED +# include "Particles/ElementaryProcess/QEDInternals/BreitWheelerEngineWrapper.H" +# include "Particles/ElementaryProcess/QEDInternals/QuantumSyncEngineWrapper.H" +# include "Particles/ElementaryProcess/QEDSchwingerProcess.H" +# include "Particles/ElementaryProcess/QEDPairGeneration.H" +# include "Particles/ElementaryProcess/QEDPhotonEmission.H" +#endif #include "Particles/LaserParticleContainer.H" #include "Particles/ParticleCreation/FilterCopyTransform.H" +#ifdef WARPX_QED +# include "Particles/ParticleCreation/FilterCreateTransformFromFAB.H" +#endif #include "Particles/ParticleCreation/SmartCopy.H" #include "Particles/ParticleCreation/SmartCreate.H" #include "Particles/ParticleCreation/SmartUtils.H" @@ -23,17 +30,11 @@ #include "Particles/PhysicalParticleContainer.H" #include "Particles/RigidInjectedParticleContainer.H" #include "Particles/WarpXParticleContainer.H" +#include "SpeciesPhysicalProperties.H" #include "Utils/WarpXAlgorithmSelection.H" -#ifdef WARPX_QED -# include "Particles/ElementaryProcess/QEDInternals/BreitWheelerEngineWrapper.H" -# include "Particles/ElementaryProcess/QEDInternals/QuantumSyncEngineWrapper.H" -# include "Particles/ElementaryProcess/QEDSchwingerProcess.H" -# include "Particles/ParticleCreation/FilterCreateTransformFromFAB.H" -# include "Particles/ElementaryProcess/QEDPairGeneration.H" -# include "Particles/ElementaryProcess/QEDPhotonEmission.H" -#endif +#include "Utils/WarpXProfilerWrapper.H" +#include "WarpX.H" -#include #include #include #include @@ -51,19 +52,20 @@ #include #include #include -#include #include +#include #include #include #include +#include -#include #include -#include -#include #include +#include #include +#include #include +#include using namespace amrex; diff --git a/Source/Particles/ParticleCreation/DefaultInitialization.H b/Source/Particles/ParticleCreation/DefaultInitialization.H index b891a0d51f2..a58e92a06de 100644 --- a/Source/Particles/ParticleCreation/DefaultInitialization.H +++ b/Source/Particles/ParticleCreation/DefaultInitialization.H @@ -8,12 +8,12 @@ #ifndef DEFAULTINITIALIZATION_H_ #define DEFAULTINITIALIZATION_H_ -#include #include +#include +#include #include #include -#include /** * \brief This set of initialization policies describes what happens diff --git a/Source/Particles/ParticleCreation/SmartCreate.H b/Source/Particles/ParticleCreation/SmartCreate.H index 4f395f9b04f..926168985cd 100644 --- a/Source/Particles/ParticleCreation/SmartCreate.H +++ b/Source/Particles/ParticleCreation/SmartCreate.H @@ -10,10 +10,10 @@ #include "DefaultInitialization.H" +#include #include #include #include -#include /** * \brief This is a functor for performing a "smart create" that works diff --git a/Source/Particles/PhotonParticleContainer.H b/Source/Particles/PhotonParticleContainer.H index fce97b2cbc6..15014551bb7 100644 --- a/Source/Particles/PhotonParticleContainer.H +++ b/Source/Particles/PhotonParticleContainer.H @@ -8,18 +8,18 @@ #ifndef WARPX_PhotonParticleContainer_H_ #define WARPX_PhotonParticleContainer_H_ -#include "PhysicalParticleContainer.H" #include "Evolve/WarpXDtType.H" #include "Particles/Gather/ScaleFields.H" +#include "PhysicalParticleContainer.H" #include "Particles/WarpXParticleContainer_fwd.H" -#include -#include #include #include #include #include +#include +#include #include diff --git a/Source/Particles/PhotonParticleContainer.cpp b/Source/Particles/PhotonParticleContainer.cpp index 8a7ef1fdf7e..ec8d9113d04 100644 --- a/Source/Particles/PhotonParticleContainer.cpp +++ b/Source/Particles/PhotonParticleContainer.cpp @@ -7,18 +7,17 @@ */ #include "PhotonParticleContainer.H" -#include "WarpX.H" -#include "Particles/PhysicalParticleContainer.H" -#include "Particles/WarpXParticleContainer.H" #ifdef WARPX_QED # include "Particles/ElementaryProcess/QEDInternals/BreitWheelerEngineWrapper.H" #endif -// Import low-level single-particle kernels -#include "Particles/Pusher/UpdatePositionPhoton.H" -#include "Particles/Pusher/GetAndSetPosition.H" -#include "Particles/Pusher/CopyParticleAttribs.H" #include "Particles/Gather/FieldGather.H" #include "Particles/Gather/GetExternalFields.H" +#include "Particles/PhysicalParticleContainer.H" +#include "Particles/Pusher/CopyParticleAttribs.H" +#include "Particles/Pusher/GetAndSetPosition.H" +#include "Particles/Pusher/UpdatePositionPhoton.H" +#include "Particles/WarpXParticleContainer.H" +#include "WarpX.H" #include #include diff --git a/Source/Particles/PhysicalParticleContainer.H b/Source/Particles/PhysicalParticleContainer.H index 13d91d59b58..e2c96613777 100644 --- a/Source/Particles/PhysicalParticleContainer.H +++ b/Source/Particles/PhysicalParticleContainer.H @@ -10,27 +10,27 @@ #ifndef WARPX_PhysicalParticleContainer_H_ #define WARPX_PhysicalParticleContainer_H_ +#include "Evolve/WarpXDtType.H" #include "Initialization/PlasmaInjector.H" -#include "WarpXParticleContainer.H" #include "Particles/ElementaryProcess/Ionization.H" -#include "Particles/Gather/ScaleFields.H" -#include "Evolve/WarpXDtType.H" -#include "Particles/Resampling/Resampling.H" #ifdef WARPX_QED # include "Particles/ElementaryProcess/QEDPairGeneration.H" # include "Particles/ElementaryProcess/QEDPhotonEmission.H" # include "Particles/ElementaryProcess/QEDInternals/QuantumSyncEngineWrapper_fwd.H" # include "Particles/ElementaryProcess/QEDInternals/BreitWheelerEngineWrapper_fwd.H" #endif +#include "Particles/Gather/ScaleFields.H" +#include "Particles/Resampling/Resampling.H" +#include "WarpXParticleContainer.H" -#include -#include -#include -#include #include #include +#include #include #include +#include +#include +#include #include #include diff --git a/Source/Particles/PhysicalParticleContainer.cpp b/Source/Particles/PhysicalParticleContainer.cpp index 2ba9f27dd9c..1b997ae9816 100644 --- a/Source/Particles/PhysicalParticleContainer.cpp +++ b/Source/Particles/PhysicalParticleContainer.cpp @@ -10,36 +10,34 @@ */ #include "PhysicalParticleContainer.H" +#include "Filter/NCIGodfreyFilter.H" +#include "Initialization/InjectorDensity.H" +#include "Initialization/InjectorMomentum.H" +#include "Initialization/InjectorPosition.H" #include "MultiParticleContainer.H" -#include "WarpX.H" -#include "Utils/WarpXConst.H" -#include "Utils/WarpXUtil.H" -#include "Python/WarpXWrappers.h" -#include "Utils/IonizationEnergiesTable.H" +#ifdef WARPX_QED +# include "Particles/ElementaryProcess/QEDInternals/BreitWheelerEngineWrapper.H" +# include "Particles/ElementaryProcess/QEDInternals/QuantumSyncEngineWrapper.H" +#endif #include "Particles/Gather/FieldGather.H" -#include "Particles/Pusher/GetAndSetPosition.H" +#include "Particles/Gather/GetExternalFields.H" #include "Particles/Pusher/CopyParticleAttribs.H" +#include "Particles/Pusher/GetAndSetPosition.H" #include "Particles/Pusher/PushSelector.H" -#include "Particles/Gather/GetExternalFields.H" -#include "Utils/WarpXAlgorithmSelection.H" -#include "Initialization/InjectorPosition.H" -#include "Filter/NCIGodfreyFilter.H" -#include "Initialization/InjectorDensity.H" -#include "Initialization/InjectorMomentum.H" #include "Particles/Pusher/UpdateMomentumBoris.H" #include "Particles/Pusher/UpdateMomentumBorisWithRadiationReaction.H" #include "Particles/Pusher/UpdateMomentumHigueraCary.H" #include "Particles/Pusher/UpdateMomentumVay.H" #include "Particles/SpeciesPhysicalProperties.H" #include "Particles/WarpXParticleContainer.H" +#include "Python/WarpXWrappers.h" +#include "Utils/IonizationEnergiesTable.H" +#include "Utils/WarpXAlgorithmSelection.H" +#include "Utils/WarpXConst.H" #include "Utils/WarpXProfilerWrapper.H" -#ifdef WARPX_QED -# include "Particles/ElementaryProcess/QEDInternals/BreitWheelerEngineWrapper.H" -# include "Particles/ElementaryProcess/QEDInternals/QuantumSyncEngineWrapper.H" -#endif +#include "Utils/WarpXUtil.H" +#include "WarpX.H" -#include -#include #include #include #include @@ -52,6 +50,7 @@ #include #include #include +#include #include #include #include @@ -70,6 +69,7 @@ #include #include #include +#include #include #include #include @@ -77,22 +77,22 @@ #include #include -#ifdef WARPX_USE_OPENPMD -# include -#endif - #ifdef AMREX_USE_OMP # include #endif -#include -#include -#include -#include +#ifdef WARPX_USE_OPENPMD +# include +#endif + #include #include +#include +#include +#include #include #include +#include #include #include diff --git a/Source/Particles/Pusher/PushSelector.H b/Source/Particles/Pusher/PushSelector.H index c7f227af8ab..df27630b4cd 100644 --- a/Source/Particles/Pusher/PushSelector.H +++ b/Source/Particles/Pusher/PushSelector.H @@ -7,14 +7,14 @@ #ifndef WARPX_PARTICLES_PUSHER_PUSHSELECTOR_H_ #define WARPX_PARTICLES_PUSHER_PUSHSELECTOR_H_ -#include "Utils/WarpXAlgorithmSelection.H" // Import low-level single-particle kernels -#include "Particles/Pusher/UpdatePosition.H" #include "Particles/Pusher/UpdateMomentumBoris.H" -#include "Particles/Pusher/UpdateMomentumVay.H" #include "Particles/Pusher/UpdateMomentumBorisWithRadiationReaction.H" #include "Particles/Pusher/UpdateMomentumHigueraCary.H" +#include "Particles/Pusher/UpdateMomentumVay.H" +#include "Particles/Pusher/UpdatePosition.H" #include "Particles/WarpXParticleContainer.H" +#include "Utils/WarpXAlgorithmSelection.H" #include diff --git a/Source/Particles/Pusher/UpdateMomentumBorisWithRadiationReaction.H b/Source/Particles/Pusher/UpdateMomentumBorisWithRadiationReaction.H index 421b803aaf0..8dfa85ed62f 100644 --- a/Source/Particles/Pusher/UpdateMomentumBorisWithRadiationReaction.H +++ b/Source/Particles/Pusher/UpdateMomentumBorisWithRadiationReaction.H @@ -11,7 +11,6 @@ #include - /** * Push the particle's positions over one timestep, * given the value of its momenta `ux`, `uy`, `uz`. diff --git a/Source/Particles/Pusher/UpdateMomentumVay.H b/Source/Particles/Pusher/UpdateMomentumVay.H index e5e31f4f2a2..610d644d201 100644 --- a/Source/Particles/Pusher/UpdateMomentumVay.H +++ b/Source/Particles/Pusher/UpdateMomentumVay.H @@ -10,8 +10,8 @@ #include "Utils/WarpXConst.H" -#include #include +#include /** \brief Push the particle's positions over one timestep, diff --git a/Source/Particles/Pusher/UpdatePosition.H b/Source/Particles/Pusher/UpdatePosition.H index d6189256cec..8ebb0b49a4a 100644 --- a/Source/Particles/Pusher/UpdatePosition.H +++ b/Source/Particles/Pusher/UpdatePosition.H @@ -10,9 +10,9 @@ #include "Utils/WarpXConst.H" -#include -#include #include +#include +#include /** \brief Push the particle's positions over one timestep, diff --git a/Source/Particles/Pusher/UpdatePositionPhoton.H b/Source/Particles/Pusher/UpdatePositionPhoton.H index 4787c67c03a..4c6967b7eeb 100644 --- a/Source/Particles/Pusher/UpdatePositionPhoton.H +++ b/Source/Particles/Pusher/UpdatePositionPhoton.H @@ -10,9 +10,9 @@ #include "Utils/WarpXConst.H" +#include #include #include -#include /** * \brief Push the position of a photon particle over one timestep, diff --git a/Source/Particles/Resampling/LevelingThinning.H b/Source/Particles/Resampling/LevelingThinning.H index 535585e8cc8..7b491fc9d59 100644 --- a/Source/Particles/Resampling/LevelingThinning.H +++ b/Source/Particles/Resampling/LevelingThinning.H @@ -12,6 +12,7 @@ #include "Particles/WarpXParticleContainer_fwd.H" #include + #include /** diff --git a/Source/Particles/Resampling/LevelingThinning.cpp b/Source/Particles/Resampling/LevelingThinning.cpp index 7575766c3e5..d6ff6a182fc 100644 --- a/Source/Particles/Resampling/LevelingThinning.cpp +++ b/Source/Particles/Resampling/LevelingThinning.cpp @@ -6,9 +6,9 @@ */ #include "LevelingThinning.H" +#include "Particles/WarpXParticleContainer.H" #include "Utils/ParticleUtils.H" #include "Utils/WarpXUtil.H" -#include "Particles/WarpXParticleContainer.H" #include #include @@ -20,9 +20,9 @@ #include #include #include +#include #include #include -#include LevelingThinning::LevelingThinning (const std::string species_name) { diff --git a/Source/Particles/Resampling/Resampling.H b/Source/Particles/Resampling/Resampling.H index 69823836acd..3a065d2397a 100644 --- a/Source/Particles/Resampling/Resampling.H +++ b/Source/Particles/Resampling/Resampling.H @@ -8,6 +8,7 @@ #define WARPX_RESAMPLING_H_ #include "ResamplingTrigger.H" + #include "Particles/WarpXParticleContainer_fwd.H" #include diff --git a/Source/Particles/Resampling/ResamplingTrigger.cpp b/Source/Particles/Resampling/ResamplingTrigger.cpp index 44c1ef75be0..220b65f84ce 100644 --- a/Source/Particles/Resampling/ResamplingTrigger.cpp +++ b/Source/Particles/Resampling/ResamplingTrigger.cpp @@ -6,8 +6,8 @@ */ #include "ResamplingTrigger.H" -#include "WarpX.H" #include "Utils/WarpXUtil.H" +#include "WarpX.H" #include #include diff --git a/Source/Particles/RigidInjectedParticleContainer.H b/Source/Particles/RigidInjectedParticleContainer.H index cdd3927e0a8..94dd252cc8a 100644 --- a/Source/Particles/RigidInjectedParticleContainer.H +++ b/Source/Particles/RigidInjectedParticleContainer.H @@ -8,18 +8,18 @@ #ifndef WARPX_RigidInjectedParticleContainer_H_ #define WARPX_RigidInjectedParticleContainer_H_ -#include "PhysicalParticleContainer.H" #include "Evolve/WarpXDtType.H" #include "Particles/Gather/ScaleFields.H" +#include "PhysicalParticleContainer.H" #include "WarpXParticleContainer_fwd.H" -#include -#include #include #include #include #include +#include +#include #include #include diff --git a/Source/Particles/RigidInjectedParticleContainer.cpp b/Source/Particles/RigidInjectedParticleContainer.cpp index b3818f1c6a8..143caaf0f5f 100644 --- a/Source/Particles/RigidInjectedParticleContainer.cpp +++ b/Source/Particles/RigidInjectedParticleContainer.cpp @@ -8,23 +8,22 @@ * License: BSD-3-Clause-LBNL */ -#include "RigidInjectedParticleContainer.H" -#include "WarpX.H" -#include "Utils/WarpXConst.H" -#include "Utils/WarpXUtil.H" -#include "Utils/WarpXAlgorithmSelection.H" -#include "Pusher/UpdateMomentumBoris.H" -#include "Pusher/UpdateMomentumVay.H" -#include "Pusher/UpdateMomentumBorisWithRadiationReaction.H" -#include "Pusher/UpdateMomentumHigueraCary.H" -#include "Pusher/GetAndSetPosition.H" #include "Gather/FieldGather.H" #include "Particles/Gather/GetExternalFields.H" #include "Particles/PhysicalParticleContainer.H" #include "Particles/WarpXParticleContainer.H" +#include "Pusher/GetAndSetPosition.H" +#include "Pusher/UpdateMomentumBoris.H" +#include "Pusher/UpdateMomentumBorisWithRadiationReaction.H" +#include "Pusher/UpdateMomentumHigueraCary.H" +#include "Pusher/UpdateMomentumVay.H" +#include "RigidInjectedParticleContainer.H" +#include "Utils/WarpXAlgorithmSelection.H" +#include "Utils/WarpXConst.H" #include "Utils/WarpXProfilerWrapper.H" +#include "Utils/WarpXUtil.H" +#include "WarpX.H" -#include #include #include #include @@ -34,6 +33,7 @@ #include #include #include +#include #include #include #include @@ -47,8 +47,8 @@ #include #include -#include #include +#include #include using namespace amrex; diff --git a/Source/Particles/Sorting/Partition.cpp b/Source/Particles/Sorting/Partition.cpp index 6753a6b9475..c649d0b2b95 100644 --- a/Source/Particles/Sorting/Partition.cpp +++ b/Source/Particles/Sorting/Partition.cpp @@ -4,17 +4,17 @@ * * License: BSD-3-Clause-LBNL */ -#include "SortingUtils.H" #include "Particles/PhysicalParticleContainer.H" -#include "WarpX.H" #include "Particles/WarpXParticleContainer.H" +#include "SortingUtils.H" #include "Utils/WarpXProfilerWrapper.H" +#include "WarpX.H" -#include #include #include #include #include +#include #include #include #include diff --git a/Source/Particles/SpeciesPhysicalProperties.H b/Source/Particles/SpeciesPhysicalProperties.H index addefce7e49..9a10f956b81 100644 --- a/Source/Particles/SpeciesPhysicalProperties.H +++ b/Source/Particles/SpeciesPhysicalProperties.H @@ -10,11 +10,11 @@ #include "Utils/WarpXConst.H" -#include #include +#include -#include #include +#include enum struct PhysicalSpecies{unspecified=0, electron, positron, photon, hydrogen, carbon, nitrogen, oxygen, copper}; diff --git a/Source/Particles/WarpXParticleContainer.H b/Source/Particles/WarpXParticleContainer.H index 0852483c25d..25fb48d0aa0 100644 --- a/Source/Particles/WarpXParticleContainer.H +++ b/Source/Particles/WarpXParticleContainer.H @@ -12,32 +12,32 @@ #include "WarpXParticleContainer_fwd.H" -#include "SpeciesPhysicalProperties.H" #include "Evolve/WarpXDtType.H" +#include "SpeciesPhysicalProperties.H" -#include "MultiParticleContainer_fwd.H" #ifdef WARPX_QED -# include "ElementaryProcess/QEDInternals/QuantumSyncEngineWrapper_fwd.H" # include "ElementaryProcess/QEDInternals/BreitWheelerEngineWrapper_fwd.H" +# include "ElementaryProcess/QEDInternals/QuantumSyncEngineWrapper_fwd.H" #endif +#include "MultiParticleContainer_fwd.H" -#include #include #include #include #include #include +#include #include +#include #include +#include #include #include -#include -#include -#include #include #include #include +#include #include #include diff --git a/Source/Particles/WarpXParticleContainer.cpp b/Source/Particles/WarpXParticleContainer.cpp index 572977a35f9..8e0cde96e33 100644 --- a/Source/Particles/WarpXParticleContainer.cpp +++ b/Source/Particles/WarpXParticleContainer.cpp @@ -8,19 +8,19 @@ * License: BSD-3-Clause-LBNL */ #include "WarpXParticleContainer.H" -#include "WarpX.H" -#include "Utils/WarpXAlgorithmSelection.H" -#include "Utils/CoarsenMR.H" -// Import low-level single-particle kernels + +#include "Deposition/ChargeDeposition.H" +#include "Deposition/CurrentDeposition.H" #include "Pusher/GetAndSetPosition.H" #include "Pusher/UpdatePosition.H" -#include "Deposition/CurrentDeposition.H" -#include "Deposition/ChargeDeposition.H" +#include "Utils/CoarsenMR.H" +#include "Utils/WarpXAlgorithmSelection.H" #include "Utils/WarpXConst.H" #include "Utils/WarpXProfilerWrapper.H" +#include "WarpX.H" -#include #include +#include #include #include #include @@ -56,8 +56,8 @@ # include #endif -#include #include +#include using namespace amrex; diff --git a/Source/Python/WarpXWrappers.cpp b/Source/Python/WarpXWrappers.cpp index e1ce18f4308..e1980097b73 100644 --- a/Source/Python/WarpXWrappers.cpp +++ b/Source/Python/WarpXWrappers.cpp @@ -6,14 +6,14 @@ * * License: BSD-3-Clause-LBNL */ -#include "WarpXWrappers.h" +#include "BoundaryConditions/PML.H" #include "Initialization/WarpXAMReXInit.H" +#include "Particles/MultiParticleContainer.H" #include "Particles/WarpXParticleContainer.H" -#include "WarpX.H" #include "Utils/WarpXUtil.H" +#include "WarpX.H" +#include "WarpXWrappers.h" #include "WarpX_py.H" -#include "Particles/MultiParticleContainer.H" -#include "BoundaryConditions/PML.H" #include #include @@ -31,8 +31,8 @@ #include #include -#include #include +#include namespace { diff --git a/Source/Python/WarpXWrappers.h b/Source/Python/WarpXWrappers.h index 43ad0bacf76..36804499b2a 100644 --- a/Source/Python/WarpXWrappers.h +++ b/Source/Python/WarpXWrappers.h @@ -8,8 +8,8 @@ #ifndef WARPX_WRAPPERS_H_ #define WARPX_WRAPPERS_H_ -#include #include +#include #ifdef BL_USE_MPI # include diff --git a/Source/Utils/CoarsenIO.H b/Source/Utils/CoarsenIO.H index 6114b81350d..9aa102fc8e4 100644 --- a/Source/Utils/CoarsenIO.H +++ b/Source/Utils/CoarsenIO.H @@ -6,8 +6,8 @@ #include #include #include -#include #include +#include #include diff --git a/Source/Utils/CoarsenMR.H b/Source/Utils/CoarsenMR.H index f165b46f0ca..f269c8575cd 100644 --- a/Source/Utils/CoarsenMR.H +++ b/Source/Utils/CoarsenMR.H @@ -5,9 +5,9 @@ #include #include #include -#include -#include #include +#include +#include #include diff --git a/Source/Utils/Interpolate.H b/Source/Utils/Interpolate.H index 5ec98f746a1..cfd178666fe 100644 --- a/Source/Utils/Interpolate.H +++ b/Source/Utils/Interpolate.H @@ -1,9 +1,9 @@ #ifndef WARPX_INTERPOLATE_H_ #define WARPX_INTERPOLATE_H_ -#include -#include #include +#include +#include #include #include diff --git a/Source/Utils/IntervalsParser.H b/Source/Utils/IntervalsParser.H index b89d8502b45..c91fe271abc 100644 --- a/Source/Utils/IntervalsParser.H +++ b/Source/Utils/IntervalsParser.H @@ -1,8 +1,8 @@ #ifndef WARPX_INTERVALSPARSER_H_ #define WARPX_INTERVALSPARSER_H_ -#include #include +#include #include /** diff --git a/Source/Utils/IntervalsParser.cpp b/Source/Utils/IntervalsParser.cpp index c79c8cf7a95..7b7540d0c90 100644 --- a/Source/Utils/IntervalsParser.cpp +++ b/Source/Utils/IntervalsParser.cpp @@ -1,5 +1,5 @@ -#include "WarpXUtil.H" #include "IntervalsParser.H" +#include "WarpXUtil.H" #include diff --git a/Source/Utils/MPIInitHelpers.cpp b/Source/Utils/MPIInitHelpers.cpp index 3611bb598f2..ffe79e22a8b 100644 --- a/Source/Utils/MPIInitHelpers.cpp +++ b/Source/Utils/MPIInitHelpers.cpp @@ -6,16 +6,16 @@ */ #include "MPIInitHelpers.H" +#include #include #include -#include #if defined(AMREX_USE_MPI) #include #endif -#include #include +#include namespace utils { diff --git a/Source/Utils/ParticleUtils.H b/Source/Utils/ParticleUtils.H index 663519f302a..45680bd71a5 100644 --- a/Source/Utils/ParticleUtils.H +++ b/Source/Utils/ParticleUtils.H @@ -10,8 +10,8 @@ #include "Particles/WarpXParticleContainer.H" #include -#include #include +#include namespace ParticleUtils { diff --git a/Source/Utils/ParticleUtils.cpp b/Source/Utils/ParticleUtils.cpp index c31f84ba2db..a3545110025 100644 --- a/Source/Utils/ParticleUtils.cpp +++ b/Source/Utils/ParticleUtils.cpp @@ -5,6 +5,7 @@ * License: BSD-3-Clause-LBNL */ #include "ParticleUtils.H" + #include "WarpX.H" #include diff --git a/Source/Utils/RelativeCellPosition.H b/Source/Utils/RelativeCellPosition.H index f31c0f48576..52dd2c2c3a9 100644 --- a/Source/Utils/RelativeCellPosition.H +++ b/Source/Utils/RelativeCellPosition.H @@ -11,7 +11,6 @@ #include - namespace utils { /** Get the Relative Cell Position of Values in an MultiFab diff --git a/Source/Utils/RelativeCellPosition.cpp b/Source/Utils/RelativeCellPosition.cpp index 01a0c68f3f6..3c38a6dcb44 100644 --- a/Source/Utils/RelativeCellPosition.cpp +++ b/Source/Utils/RelativeCellPosition.cpp @@ -6,8 +6,8 @@ */ #include "RelativeCellPosition.H" -#include #include +#include std::vector< double > utils::getRelativeCellPosition(amrex::MultiFab const& mf) diff --git a/Source/Utils/WarpXAlgorithmSelection.cpp b/Source/Utils/WarpXAlgorithmSelection.cpp index 4cd247d7aae..4caaeb4b438 100644 --- a/Source/Utils/WarpXAlgorithmSelection.cpp +++ b/Source/Utils/WarpXAlgorithmSelection.cpp @@ -13,8 +13,8 @@ #include #include -#include #include +#include #include // Define dictionary with correspondance between user-input strings, diff --git a/Source/Utils/WarpXConst.H b/Source/Utils/WarpXConst.H index e6778284056..29aa3887afd 100644 --- a/Source/Utils/WarpXConst.H +++ b/Source/Utils/WarpXConst.H @@ -9,6 +9,7 @@ #define WARPX_CONST_H_ #include + #include // Math constants diff --git a/Source/Utils/WarpXMovingWindow.cpp b/Source/Utils/WarpXMovingWindow.cpp index 5d034286c79..908c5e5a372 100644 --- a/Source/Utils/WarpXMovingWindow.cpp +++ b/Source/Utils/WarpXMovingWindow.cpp @@ -7,39 +7,40 @@ * License: BSD-3-Clause-LBNL */ #include "WarpX.H" -#include "Utils/WarpXConst.H" -#include "BoundaryConditions/PML.H" // for PML -#include "Parser/WarpXParserWrapper.H" // for getParser, HostDeviceP... -#include "Particles/MultiParticleContainer.H" // for MultiParticleContainer -#include "Utils/WarpXProfilerWrapper.H" // for WARPX_PROFILE - -#include // for Array, GpuArray -#include // for Array4 -#include // for AMREX_ALWAYS_ASSERT -#include // for Box, adjCellHi, adjCellLo -#include // for BoxArray -#include // for AMREX_SPACEDIM, AMREX_... -#include // for Dim3 -#include // for FArrayBox -#include // for FabArray -#include // for Geometry -#include // for notInLaunchRegion -#include // for AMREX_PARALLEL_FOR_4D -#include // for AMREX_GPU_DEVICE -#include // for amrex -#include // for IndexType -#include // for IntVect -#include // for MFIter -#include // for MultiFab -#include // for Real -#include // for RealBox -#include // for AMREX_D_DECL -#include // for Vector +#include "BoundaryConditions/PML.H" +#include "Parser/WarpXParserWrapper.H" +#include "Particles/MultiParticleContainer.H" +#include "Utils/WarpXConst.H" +#include "Utils/WarpXProfilerWrapper.H" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include #include -#include // for array -#include // for allocator, unique_ptr -#include // for operator==, basic_string +#include +#include using namespace amrex; diff --git a/Source/Utils/WarpXTagging.cpp b/Source/Utils/WarpXTagging.cpp index 5079669793c..fb38881a5e9 100644 --- a/Source/Utils/WarpXTagging.cpp +++ b/Source/Utils/WarpXTagging.cpp @@ -7,8 +7,9 @@ */ #include -#include + #include +#include #include #include #include diff --git a/Source/Utils/WarpXUtil.H b/Source/Utils/WarpXUtil.H index f7f158fc1b1..efd6c01421d 100644 --- a/Source/Utils/WarpXUtil.H +++ b/Source/Utils/WarpXUtil.H @@ -10,17 +10,17 @@ #include "Parser/WarpXParser.H" -#include -#include +#include +#include #include #include +#include #include -#include -#include +#include +#include #include #include -#include #include void ParseGeometryInput(); diff --git a/Source/Utils/WarpXUtil.cpp b/Source/Utils/WarpXUtil.cpp index fb0cff2b95b..d3536fc3ba7 100644 --- a/Source/Utils/WarpXUtil.cpp +++ b/Source/Utils/WarpXUtil.cpp @@ -6,12 +6,12 @@ * License: BSD-3-Clause-LBNL */ #include "WarpX.H" + #include "WarpXAlgorithmSelection.H" #include "WarpXConst.H" -#include "WarpXUtil.H" #include "WarpXProfilerWrapper.H" +#include "WarpXUtil.H" -#include #include #include #include @@ -24,14 +24,15 @@ #include #include #include +#include +#include +#include #include +#include #include #include #include -#include -#include -#include using namespace amrex; diff --git a/Source/Utils/WarpX_Complex.H b/Source/Utils/WarpX_Complex.H index e5a7f460204..048ee29940f 100644 --- a/Source/Utils/WarpX_Complex.H +++ b/Source/Utils/WarpX_Complex.H @@ -12,9 +12,9 @@ # include "FieldSolver/SpectralSolver/AnyFFT.H" #endif -#include #include #include +#include #include diff --git a/Source/WarpX.H b/Source/WarpX.H index 708f75e4546..dcf6951808b 100644 --- a/Source/WarpX.H +++ b/Source/WarpX.H @@ -12,21 +12,13 @@ #ifndef WARPX_H_ #define WARPX_H_ -#include "Evolve/WarpXDtType.H" -#include "Filter/BilinearFilter.H" -#include "Utils/IntervalsParser.H" -#include "Parallelization/GuardCellManager.H" -#include "Parser/WarpXParserWrapper.H" - +#include "BoundaryConditions/PML_fwd.H" #include "Diagnostics/BackTransformedDiagnostic_fwd.H" -#include "FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver_fwd.H" -#include "FieldSolver/FiniteDifferenceSolver/MacroscopicProperties/MacroscopicProperties_fwd.H" #include "Diagnostics/MultiDiagnostics_fwd.H" -#include "Particles/MultiParticleContainer_fwd.H" #include "Diagnostics/ReducedDiags/MultiReducedDiags_fwd.H" -#include "Filter/NCIGodfreyFilter_fwd.H" -#include "BoundaryConditions/PML_fwd.H" -#include "Particles/WarpXParticleContainer_fwd.H" +#include "Evolve/WarpXDtType.H" +#include "FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver_fwd.H" +#include "FieldSolver/FiniteDifferenceSolver/MacroscopicProperties/MacroscopicProperties_fwd.H" #ifdef WARPX_USE_PSATD # ifdef WARPX_DIM_RZ # include "FieldSolver/SpectralSolver/SpectralSolverRZ_fwd.H" @@ -34,32 +26,38 @@ # include "FieldSolver/SpectralSolver/SpectralSolver_fwd.H" # endif #endif +#include "Filter/BilinearFilter.H" +#include "Filter/NCIGodfreyFilter_fwd.H" +#include "Parallelization/GuardCellManager.H" +#include "Parser/WarpXParserWrapper.H" +#include "Particles/MultiParticleContainer_fwd.H" +#include "Particles/WarpXParticleContainer_fwd.H" +#include "Utils/IntervalsParser.H" -#include -#include -#include -#include #include +#include #include #include -#include -#include -#include -#include -#include #ifdef AMREX_USE_EB # include "AMReX_EBFabFactory.H" #endif - #include +#include +#include #include -#include #include +#include +#include +#include +#include +#include +#include +#include -#include -#include #include +#include #include +#include #include #include diff --git a/Source/WarpX.cpp b/Source/WarpX.cpp index 1176e2c6422..1fcce07a84c 100644 --- a/Source/WarpX.cpp +++ b/Source/WarpX.cpp @@ -11,7 +11,12 @@ */ #include "WarpX.H" -#include "FieldSolver/WarpX_FDTD.H" +#include "BoundaryConditions/PML.H" +#include "Diagnostics/BackTransformedDiagnostic.H" +#include "Diagnostics/MultiDiagnostics.H" +#include "Diagnostics/ReducedDiags/MultiReducedDiags.H" +#include "FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.H" +#include "FieldSolver/FiniteDifferenceSolver/MacroscopicProperties/MacroscopicProperties.H" #ifdef WARPX_USE_PSATD # include "FieldSolver/SpectralSolver/SpectralSolver.H" # include "FieldSolver/SpectralSolver/SpectralKSpace.H" @@ -19,29 +24,27 @@ #ifdef WARPX_DIM_RZ # include "FieldSolver/SpectralSolver/SpectralSolverRZ.H" #endif +#include "FieldSolver/WarpX_FDTD.H" +#include "Filter/NCIGodfreyFilter.H" +#include "Parser/WarpXParserWrapper.H" +#include "Particles/MultiParticleContainer.H" #include "Python/WarpXWrappers.h" +#include "Utils/WarpXAlgorithmSelection.H" #include "Utils/WarpXConst.H" #include "Utils/WarpXUtil.H" -#include "Utils/WarpXAlgorithmSelection.H" -#include "Particles/MultiParticleContainer.H" -#include "FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.H" -#include "Diagnostics/MultiDiagnostics.H" -#include "Diagnostics/ReducedDiags/MultiReducedDiags.H" -#include "Diagnostics/BackTransformedDiagnostic.H" -#include "BoundaryConditions/PML.H" -#include "FieldSolver/FiniteDifferenceSolver/MacroscopicProperties/MacroscopicProperties.H" -#include "Filter/NCIGodfreyFilter.H" -#include "Parser/WarpXParserWrapper.H" -#include -#include #ifdef BL_USE_SENSEI_INSITU # include #endif +#include #include #include #include #include +#ifdef AMREX_USE_EB +# include +# include +#endif #include #include #include @@ -55,22 +58,19 @@ #include #include #include +#include #include #include #include #include #include -#ifdef AMREX_USE_EB -# include -# include -#endif #include #include #include +#include #include #include -#include using namespace amrex; diff --git a/Source/main.cpp b/Source/main.cpp index 2d98f5fd893..a2735421092 100644 --- a/Source/main.cpp +++ b/Source/main.cpp @@ -7,14 +7,15 @@ * License: BSD-3-Clause-LBNL */ #include "WarpX.H" + #include "Initialization/WarpXAMReXInit.H" #include "Utils/MPIInitHelpers.H" #include "Utils/WarpXUtil.H" #include "Utils/WarpXProfilerWrapper.H" #include -#include #include +#include #include #include #include From 35d3723a4cc7c1f21b6f073497b6c3ccabd13dc7 Mon Sep 17 00:00:00 2001 From: Luca Fedeli Date: Mon, 14 Jun 2021 18:42:14 +0200 Subject: [PATCH 44/58] progress with iwyu --- Source/BoundaryConditions/PML.H | 4 ++-- Source/BoundaryConditions/PML.cpp | 2 ++ Source/BoundaryConditions/WarpXEvolvePML.cpp | 3 ++- Source/BoundaryConditions/WarpX_PEC.H | 3 ++- Source/Diagnostics/BackTransformedDiagnostic.H | 3 ++- .../ComputeDiagFunctors/BackTransformFunctor.H | 3 ++- .../ComputeDiagFunctors/BackTransformFunctor.cpp | 1 + .../Diagnostics/ComputeDiagFunctors/CellCenterFunctor.H | 3 +-- Source/Diagnostics/ComputeDiagFunctors/DivBFunctor.H | 3 +-- Source/Diagnostics/ComputeDiagFunctors/DivBFunctor.cpp | 3 +++ Source/Diagnostics/ComputeDiagFunctors/DivEFunctor.H | 3 +-- Source/Diagnostics/ComputeDiagFunctors/DivEFunctor.cpp | 2 ++ .../Diagnostics/ComputeDiagFunctors/PartPerCellFunctor.H | 3 +-- .../ComputeDiagFunctors/PartPerCellFunctor.cpp | 2 ++ .../Diagnostics/ComputeDiagFunctors/PartPerGridFunctor.H | 3 +-- .../ComputeDiagFunctors/PartPerGridFunctor.cpp | 2 ++ Source/Diagnostics/ComputeDiagFunctors/RhoFunctor.H | 4 +--- Source/Diagnostics/ComputeDiagFunctors/RhoFunctor.cpp | 2 ++ Source/Diagnostics/Diagnostics.H | 4 ++-- Source/Diagnostics/FieldIO.H | 5 ++--- Source/Diagnostics/FieldIO.cpp | 1 - Source/Diagnostics/FlushFormats/FlushFormatAscent.H | 3 ++- Source/Diagnostics/FlushFormats/FlushFormatCheckpoint.H | 3 ++- Source/Diagnostics/FlushFormats/FlushFormatOpenPMD.H | 3 ++- Source/Diagnostics/FlushFormats/FlushFormatPlotfile.H | 3 ++- Source/Diagnostics/FlushFormats/FlushFormatPlotfile.cpp | 1 + Source/Diagnostics/SliceDiagnostic.H | 7 ++----- Source/Diagnostics/SliceDiagnostic.cpp | 1 + Source/Diagnostics/WarpXOpenPMD.H | 2 ++ Source/Evolve/WarpXEvolve.cpp | 1 - Source/FieldSolver/FiniteDifferenceSolver/ComputeDivE.cpp | 3 ++- Source/FieldSolver/FiniteDifferenceSolver/EvolveB.cpp | 3 ++- Source/FieldSolver/FiniteDifferenceSolver/EvolveBPML.cpp | 2 ++ Source/FieldSolver/FiniteDifferenceSolver/EvolveE.cpp | 3 ++- Source/FieldSolver/FiniteDifferenceSolver/EvolveEPML.cpp | 3 ++- Source/FieldSolver/FiniteDifferenceSolver/EvolveF.cpp | 3 ++- Source/FieldSolver/FiniteDifferenceSolver/EvolveFPML.cpp | 3 ++- Source/FieldSolver/FiniteDifferenceSolver/EvolveG.cpp | 3 ++- .../FiniteDifferenceSolver/FiniteDifferenceSolver.H | 4 ++-- .../FiniteDifferenceSolver/FiniteDifferenceSolver.cpp | 2 +- .../FiniteDifferenceSolver/MacroscopicEvolveE.cpp | 3 ++- .../MacroscopicProperties/MacroscopicProperties.cpp | 2 ++ .../SpectralAlgorithms/ComovingPsatdAlgorithm.H | 4 ++-- .../SpectralSolver/SpectralAlgorithms/PMLPsatdAlgorithm.H | 4 ++-- .../SpectralSolver/SpectralAlgorithms/PsatdAlgorithm.H | 4 ++-- .../SpectralAlgorithms/SpectralBaseAlgorithm.H | 4 ++-- Source/FieldSolver/SpectralSolver/SpectralFieldData.H | 5 ++--- Source/FieldSolver/SpectralSolver/SpectralFieldData.cpp | 1 + Source/FieldSolver/SpectralSolver/SpectralKSpace.H | 3 ++- Source/FieldSolver/SpectralSolver/SpectralSolver.H | 5 ++--- Source/Filter/Filter.H | 6 ++---- Source/Initialization/InjectorDensity.H | 1 + Source/Initialization/InjectorMomentum.H | 2 ++ Source/Initialization/PlasmaInjector.H | 3 ++- Source/Initialization/WarpXInitData.cpp | 2 ++ .../Laser/LaserProfilesImpl/LaserProfileFieldFunction.cpp | 1 + Source/Parallelization/GuardCellManager.cpp | 4 +++- Source/Parallelization/WarpXRegrid.cpp | 2 -- Source/Particles/Collision/PairWiseCoulombCollision.H | 3 ++- Source/Particles/ElementaryProcess/Ionization.H | 6 +++--- .../QEDInternals/BreitWheelerEngineWrapper.cpp | 1 + .../QEDInternals/QuantumSyncEngineWrapper.cpp | 1 + Source/Particles/ElementaryProcess/QEDPairGeneration.H | 5 ++--- Source/Particles/ElementaryProcess/QEDPhotonEmission.H | 5 ++--- Source/Particles/LaserParticleContainer.H | 5 +++-- Source/Particles/MultiParticleContainer.H | 8 +++----- .../ParticleCreation/FilterCreateTransformFromFAB.H | 2 ++ Source/Particles/PhotonParticleContainer.H | 7 +++---- Source/Particles/PhotonParticleContainer.cpp | 1 - Source/Particles/PhysicalParticleContainer.H | 8 +++----- Source/Particles/PhysicalParticleContainer.cpp | 7 +++++++ Source/Particles/Resampling/LevelingThinning.cpp | 2 ++ Source/Particles/RigidInjectedParticleContainer.H | 7 +++---- Source/Particles/RigidInjectedParticleContainer.cpp | 3 +++ Source/Particles/Sorting/Partition.cpp | 3 ++- Source/Particles/WarpXParticleContainer.H | 6 +++--- Source/Particles/WarpXParticleContainer.cpp | 3 +++ Source/Utils/CoarsenIO.H | 3 ++- Source/Utils/CoarsenIO.cpp | 1 + Source/Utils/CoarsenMR.H | 4 ++-- Source/Utils/CoarsenMR.cpp | 1 + Source/Utils/Interpolate.H | 4 ++-- Source/Utils/ParticleUtils.H | 3 ++- Source/Utils/RelativeCellPosition.H | 2 +- Source/Utils/RelativeCellPosition.cpp | 1 + Source/Utils/WarpXAlgorithmSelection.H | 2 +- Source/Utils/WarpXAlgorithmSelection.cpp | 2 ++ Source/Utils/WarpXMovingWindow.cpp | 2 ++ Source/Utils/WarpXTagging.cpp | 2 ++ Source/Utils/WarpXUtil.H | 4 ++-- Source/WarpX.H | 8 +++----- Source/WarpX.cpp | 2 +- 92 files changed, 172 insertions(+), 120 deletions(-) diff --git a/Source/BoundaryConditions/PML.H b/Source/BoundaryConditions/PML.H index 57ff7a20741..58343f0f379 100644 --- a/Source/BoundaryConditions/PML.H +++ b/Source/BoundaryConditions/PML.H @@ -16,8 +16,6 @@ #endif #include -#include -#include #include #include #include @@ -27,6 +25,8 @@ #include #include +#include + #include #include #include diff --git a/Source/BoundaryConditions/PML.cpp b/Source/BoundaryConditions/PML.cpp index 2adba1f14a2..4990c56715d 100644 --- a/Source/BoundaryConditions/PML.cpp +++ b/Source/BoundaryConditions/PML.cpp @@ -25,9 +25,11 @@ #include #include #include +#include #include #include #include +#include #include #include #include diff --git a/Source/BoundaryConditions/WarpXEvolvePML.cpp b/Source/BoundaryConditions/WarpXEvolvePML.cpp index 37df51aa994..6730c58bdee 100644 --- a/Source/BoundaryConditions/WarpXEvolvePML.cpp +++ b/Source/BoundaryConditions/WarpXEvolvePML.cpp @@ -28,7 +28,8 @@ #include #include #include -#include + +#include #include #include diff --git a/Source/BoundaryConditions/WarpX_PEC.H b/Source/BoundaryConditions/WarpX_PEC.H index 9fdd378c5f8..43c678f121d 100644 --- a/Source/BoundaryConditions/WarpX_PEC.H +++ b/Source/BoundaryConditions/WarpX_PEC.H @@ -10,9 +10,10 @@ #include #include #include -#include #include +#include + #include #include diff --git a/Source/Diagnostics/BackTransformedDiagnostic.H b/Source/Diagnostics/BackTransformedDiagnostic.H index f5827977f9c..aaff8a44ab3 100644 --- a/Source/Diagnostics/BackTransformedDiagnostic.H +++ b/Source/Diagnostics/BackTransformedDiagnostic.H @@ -14,13 +14,14 @@ #include "Particles/WarpXParticleContainer.H" #include -#include #include #include #include #include #include +#include + #include #include #include diff --git a/Source/Diagnostics/ComputeDiagFunctors/BackTransformFunctor.H b/Source/Diagnostics/ComputeDiagFunctors/BackTransformFunctor.H index f09763d1c94..a36c8260e45 100644 --- a/Source/Diagnostics/ComputeDiagFunctors/BackTransformFunctor.H +++ b/Source/Diagnostics/ComputeDiagFunctors/BackTransformFunctor.H @@ -5,10 +5,11 @@ #include #include -#include #include #include +#include + #include /** diff --git a/Source/Diagnostics/ComputeDiagFunctors/BackTransformFunctor.cpp b/Source/Diagnostics/ComputeDiagFunctors/BackTransformFunctor.cpp index 256ff106c5d..78e070bfd99 100644 --- a/Source/Diagnostics/ComputeDiagFunctors/BackTransformFunctor.cpp +++ b/Source/Diagnostics/ComputeDiagFunctors/BackTransformFunctor.cpp @@ -14,6 +14,7 @@ #include #include #include +#include #include #include diff --git a/Source/Diagnostics/ComputeDiagFunctors/CellCenterFunctor.H b/Source/Diagnostics/ComputeDiagFunctors/CellCenterFunctor.H index 9f963b6e2cf..f34a2ffc01d 100644 --- a/Source/Diagnostics/ComputeDiagFunctors/CellCenterFunctor.H +++ b/Source/Diagnostics/ComputeDiagFunctors/CellCenterFunctor.H @@ -3,8 +3,7 @@ #include "ComputeDiagFunctor.H" -#include -#include +#include /** * \brief Functor to cell-center MF and store result in mf_out. diff --git a/Source/Diagnostics/ComputeDiagFunctors/DivBFunctor.H b/Source/Diagnostics/ComputeDiagFunctors/DivBFunctor.H index 31966899487..eac6f4872e4 100644 --- a/Source/Diagnostics/ComputeDiagFunctors/DivBFunctor.H +++ b/Source/Diagnostics/ComputeDiagFunctors/DivBFunctor.H @@ -3,8 +3,7 @@ #include "ComputeDiagFunctor.H" -#include -#include +#include #include diff --git a/Source/Diagnostics/ComputeDiagFunctors/DivBFunctor.cpp b/Source/Diagnostics/ComputeDiagFunctors/DivBFunctor.cpp index 9de42afeae6..01592a1092f 100644 --- a/Source/Diagnostics/ComputeDiagFunctors/DivBFunctor.cpp +++ b/Source/Diagnostics/ComputeDiagFunctors/DivBFunctor.cpp @@ -3,6 +3,9 @@ #include "Utils/CoarsenIO.H" #include "WarpX.H" +#include +#include + DivBFunctor::DivBFunctor(const std::array arr_mf_src, const int lev, const amrex::IntVect crse_ratio, const int ncomp) : ComputeDiagFunctor(ncomp, crse_ratio), m_arr_mf_src(arr_mf_src), m_lev(lev) {} diff --git a/Source/Diagnostics/ComputeDiagFunctors/DivEFunctor.H b/Source/Diagnostics/ComputeDiagFunctors/DivEFunctor.H index 45c868d1144..6470fdec33e 100644 --- a/Source/Diagnostics/ComputeDiagFunctors/DivEFunctor.H +++ b/Source/Diagnostics/ComputeDiagFunctors/DivEFunctor.H @@ -3,8 +3,7 @@ #include "ComputeDiagFunctor.H" -#include -#include +#include #include diff --git a/Source/Diagnostics/ComputeDiagFunctors/DivEFunctor.cpp b/Source/Diagnostics/ComputeDiagFunctors/DivEFunctor.cpp index fb9df7c46b1..803e97c25cd 100644 --- a/Source/Diagnostics/ComputeDiagFunctors/DivEFunctor.cpp +++ b/Source/Diagnostics/ComputeDiagFunctors/DivEFunctor.cpp @@ -8,6 +8,8 @@ #include #include +#include +#include DivEFunctor::DivEFunctor(const std::array arr_mf_src, const int lev, const amrex::IntVect crse_ratio, diff --git a/Source/Diagnostics/ComputeDiagFunctors/PartPerCellFunctor.H b/Source/Diagnostics/ComputeDiagFunctors/PartPerCellFunctor.H index 0e5baebdf6c..294ee475fb7 100644 --- a/Source/Diagnostics/ComputeDiagFunctors/PartPerCellFunctor.H +++ b/Source/Diagnostics/ComputeDiagFunctors/PartPerCellFunctor.H @@ -3,8 +3,7 @@ #include "ComputeDiagFunctor.H" -#include -#include +#include /** * \brief Functor to cell-center MF and store result in mf_out. diff --git a/Source/Diagnostics/ComputeDiagFunctors/PartPerCellFunctor.cpp b/Source/Diagnostics/ComputeDiagFunctors/PartPerCellFunctor.cpp index ebedee56bad..dd663cfb31f 100644 --- a/Source/Diagnostics/ComputeDiagFunctors/PartPerCellFunctor.cpp +++ b/Source/Diagnostics/ComputeDiagFunctors/PartPerCellFunctor.cpp @@ -6,6 +6,8 @@ #include "WarpX.H" #include +#include +#include #include using namespace amrex::literals; diff --git a/Source/Diagnostics/ComputeDiagFunctors/PartPerGridFunctor.H b/Source/Diagnostics/ComputeDiagFunctors/PartPerGridFunctor.H index e4f7cb372ab..4afb190bfdd 100644 --- a/Source/Diagnostics/ComputeDiagFunctors/PartPerGridFunctor.H +++ b/Source/Diagnostics/ComputeDiagFunctors/PartPerGridFunctor.H @@ -3,8 +3,7 @@ #include "ComputeDiagFunctor.H" -#include -#include +#include /** * \brief Functor to cell-center MF and store result in mf_out. diff --git a/Source/Diagnostics/ComputeDiagFunctors/PartPerGridFunctor.cpp b/Source/Diagnostics/ComputeDiagFunctors/PartPerGridFunctor.cpp index 51d0cfd0c4f..45a0ad11585 100644 --- a/Source/Diagnostics/ComputeDiagFunctors/PartPerGridFunctor.cpp +++ b/Source/Diagnostics/ComputeDiagFunctors/PartPerGridFunctor.cpp @@ -11,7 +11,9 @@ #include #include #include +#include #include +#include #include #include diff --git a/Source/Diagnostics/ComputeDiagFunctors/RhoFunctor.H b/Source/Diagnostics/ComputeDiagFunctors/RhoFunctor.H index 5f1e52187f9..7b45a8224a7 100644 --- a/Source/Diagnostics/ComputeDiagFunctors/RhoFunctor.H +++ b/Source/Diagnostics/ComputeDiagFunctors/RhoFunctor.H @@ -3,9 +3,7 @@ #include "ComputeDiagFunctor.H" -#include -#include - +#include /** * \brief Functor to compute charge density rho into mf_out diff --git a/Source/Diagnostics/ComputeDiagFunctors/RhoFunctor.cpp b/Source/Diagnostics/ComputeDiagFunctors/RhoFunctor.cpp index 3cee521ea87..74972d906b6 100644 --- a/Source/Diagnostics/ComputeDiagFunctors/RhoFunctor.cpp +++ b/Source/Diagnostics/ComputeDiagFunctors/RhoFunctor.cpp @@ -11,6 +11,8 @@ #include "WarpX.H" #include +#include +#include #include diff --git a/Source/Diagnostics/Diagnostics.H b/Source/Diagnostics/Diagnostics.H index b3daa866210..aa5ff1f6cb2 100644 --- a/Source/Diagnostics/Diagnostics.H +++ b/Source/Diagnostics/Diagnostics.H @@ -6,12 +6,12 @@ #include "ComputeDiagFunctors/ComputeDiagFunctor_fwd.H" #include "FlushFormats/FlushFormat_fwd.H" -#include #include -#include #include #include +#include + #include #include #include diff --git a/Source/Diagnostics/FieldIO.H b/Source/Diagnostics/FieldIO.H index c479cfe0fa5..756532290d3 100644 --- a/Source/Diagnostics/FieldIO.H +++ b/Source/Diagnostics/FieldIO.H @@ -8,11 +8,10 @@ #ifndef WARPX_FielIO_H_ #define WARPX_FielIO_H_ -#include -#include -#include #include +#include + #include #include #include diff --git a/Source/Diagnostics/FieldIO.cpp b/Source/Diagnostics/FieldIO.cpp index 1c26eaa6928..024f3d0a071 100644 --- a/Source/Diagnostics/FieldIO.cpp +++ b/Source/Diagnostics/FieldIO.cpp @@ -10,7 +10,6 @@ #include "Utils/CoarsenIO.H" #include -#include #include #include #include diff --git a/Source/Diagnostics/FlushFormats/FlushFormatAscent.H b/Source/Diagnostics/FlushFormats/FlushFormatAscent.H index 1dd155fac35..50a72d26ce7 100644 --- a/Source/Diagnostics/FlushFormats/FlushFormatAscent.H +++ b/Source/Diagnostics/FlushFormats/FlushFormatAscent.H @@ -9,9 +9,10 @@ # include #endif #include -#include #include +#include + #ifdef AMREX_USE_ASCENT # include #endif diff --git a/Source/Diagnostics/FlushFormats/FlushFormatCheckpoint.H b/Source/Diagnostics/FlushFormats/FlushFormatCheckpoint.H index 66c82817da0..a08a54d72d7 100644 --- a/Source/Diagnostics/FlushFormats/FlushFormatCheckpoint.H +++ b/Source/Diagnostics/FlushFormats/FlushFormatCheckpoint.H @@ -6,9 +6,10 @@ #include "Diagnostics/ParticleDiag/ParticleDiag_fwd.H" #include -#include #include +#include + #include class FlushFormatCheckpoint final : public FlushFormatPlotfile diff --git a/Source/Diagnostics/FlushFormats/FlushFormatOpenPMD.H b/Source/Diagnostics/FlushFormats/FlushFormatOpenPMD.H index 214559bf30f..db2e7fb4a78 100644 --- a/Source/Diagnostics/FlushFormats/FlushFormatOpenPMD.H +++ b/Source/Diagnostics/FlushFormats/FlushFormatOpenPMD.H @@ -7,9 +7,10 @@ #include "Diagnostics/ParticleDiag/ParticleDiag_fwd.H" #include -#include #include +#include + #include #include diff --git a/Source/Diagnostics/FlushFormats/FlushFormatPlotfile.H b/Source/Diagnostics/FlushFormats/FlushFormatPlotfile.H index 92f836a287f..b2f648d5a3d 100644 --- a/Source/Diagnostics/FlushFormats/FlushFormatPlotfile.H +++ b/Source/Diagnostics/FlushFormats/FlushFormatPlotfile.H @@ -6,9 +6,10 @@ #include "Diagnostics/ParticleDiag/ParticleDiag_fwd.H" #include -#include #include +#include + #include #include diff --git a/Source/Diagnostics/FlushFormats/FlushFormatPlotfile.cpp b/Source/Diagnostics/FlushFormats/FlushFormatPlotfile.cpp index 6b1d067fc96..e63ddc20075 100644 --- a/Source/Diagnostics/FlushFormats/FlushFormatPlotfile.cpp +++ b/Source/Diagnostics/FlushFormats/FlushFormatPlotfile.cpp @@ -17,6 +17,7 @@ #include #include #include +#include #include #include #include diff --git a/Source/Diagnostics/SliceDiagnostic.H b/Source/Diagnostics/SliceDiagnostic.H index daf2b9e96d3..4a230c36d77 100644 --- a/Source/Diagnostics/SliceDiagnostic.H +++ b/Source/Diagnostics/SliceDiagnostic.H @@ -7,13 +7,10 @@ #ifndef WARPX_SliceDiagnostic_H_ #define WARPX_SliceDiagnostic_H_ -#include -#include -#include -#include -#include #include +#include + #include std::unique_ptr CreateSlice( const amrex::MultiFab& mf, diff --git a/Source/Diagnostics/SliceDiagnostic.cpp b/Source/Diagnostics/SliceDiagnostic.cpp index 2a1563531a6..5e58f416308 100644 --- a/Source/Diagnostics/SliceDiagnostic.cpp +++ b/Source/Diagnostics/SliceDiagnostic.cpp @@ -24,6 +24,7 @@ #include #include #include +#include #include #include #include diff --git a/Source/Diagnostics/WarpXOpenPMD.H b/Source/Diagnostics/WarpXOpenPMD.H index 780e95cddd9..8ff5dbb8b1a 100644 --- a/Source/Diagnostics/WarpXOpenPMD.H +++ b/Source/Diagnostics/WarpXOpenPMD.H @@ -22,6 +22,8 @@ #include #include +#include + #ifdef WARPX_USE_OPENPMD # include #endif diff --git a/Source/Evolve/WarpXEvolve.cpp b/Source/Evolve/WarpXEvolve.cpp index d35c1310b32..e91d24aaa38 100644 --- a/Source/Evolve/WarpXEvolve.cpp +++ b/Source/Evolve/WarpXEvolve.cpp @@ -32,7 +32,6 @@ #include #include #include -#include #include #include #include diff --git a/Source/FieldSolver/FiniteDifferenceSolver/ComputeDivE.cpp b/Source/FieldSolver/FiniteDifferenceSolver/ComputeDivE.cpp index bd3381a90d5..0e511e27900 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/ComputeDivE.cpp +++ b/Source/FieldSolver/FiniteDifferenceSolver/ComputeDivE.cpp @@ -17,7 +17,6 @@ #include #include -#include #include #include #include @@ -29,6 +28,8 @@ #include #include +#include + #include #include diff --git a/Source/FieldSolver/FiniteDifferenceSolver/EvolveB.cpp b/Source/FieldSolver/FiniteDifferenceSolver/EvolveB.cpp index 92fb423ecf9..eefd5f57c7e 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/EvolveB.cpp +++ b/Source/FieldSolver/FiniteDifferenceSolver/EvolveB.cpp @@ -19,7 +19,6 @@ #include #include -#include #include #include #include @@ -35,6 +34,8 @@ #include #include +#include + #include #include diff --git a/Source/FieldSolver/FiniteDifferenceSolver/EvolveBPML.cpp b/Source/FieldSolver/FiniteDifferenceSolver/EvolveBPML.cpp index bf49f3d0782..299f92f2f34 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/EvolveBPML.cpp +++ b/Source/FieldSolver/FiniteDifferenceSolver/EvolveBPML.cpp @@ -30,6 +30,8 @@ #include #include +#include + #include using namespace amrex; diff --git a/Source/FieldSolver/FiniteDifferenceSolver/EvolveE.cpp b/Source/FieldSolver/FiniteDifferenceSolver/EvolveE.cpp index 9a6ce023024..83494e3c297 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/EvolveE.cpp +++ b/Source/FieldSolver/FiniteDifferenceSolver/EvolveE.cpp @@ -19,7 +19,6 @@ #include #include -#include #include #include #include @@ -35,6 +34,8 @@ #include #include +#include + #include #include diff --git a/Source/FieldSolver/FiniteDifferenceSolver/EvolveEPML.cpp b/Source/FieldSolver/FiniteDifferenceSolver/EvolveEPML.cpp index 7c368db144a..ea5ecb38188 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/EvolveEPML.cpp +++ b/Source/FieldSolver/FiniteDifferenceSolver/EvolveEPML.cpp @@ -21,7 +21,6 @@ #include #include -#include #include #include #include @@ -34,6 +33,8 @@ #include #include +#include + #include using namespace amrex; diff --git a/Source/FieldSolver/FiniteDifferenceSolver/EvolveF.cpp b/Source/FieldSolver/FiniteDifferenceSolver/EvolveF.cpp index 0de8d4f8058..bdf3ae0d143 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/EvolveF.cpp +++ b/Source/FieldSolver/FiniteDifferenceSolver/EvolveF.cpp @@ -21,7 +21,6 @@ #include #include -#include #include #include #include @@ -33,6 +32,8 @@ #include #include +#include + #include #include diff --git a/Source/FieldSolver/FiniteDifferenceSolver/EvolveFPML.cpp b/Source/FieldSolver/FiniteDifferenceSolver/EvolveFPML.cpp index af6f54bed05..79eed1efb89 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/EvolveFPML.cpp +++ b/Source/FieldSolver/FiniteDifferenceSolver/EvolveFPML.cpp @@ -18,7 +18,6 @@ #include #include -#include #include #include #include @@ -30,6 +29,8 @@ #include #include +#include + #include using namespace amrex; diff --git a/Source/FieldSolver/FiniteDifferenceSolver/EvolveG.cpp b/Source/FieldSolver/FiniteDifferenceSolver/EvolveG.cpp index 86ddf99f9ed..b2aa302adb3 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/EvolveG.cpp +++ b/Source/FieldSolver/FiniteDifferenceSolver/EvolveG.cpp @@ -18,7 +18,6 @@ #include #include -#include #include #include #include @@ -30,6 +29,8 @@ #include #include +#include + #include #include diff --git a/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.H b/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.H index f2e5e06c921..c4936b20483 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.H +++ b/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.H @@ -13,11 +13,11 @@ #include "BoundaryConditions/PML_fwd.H" #include "MacroscopicProperties/MacroscopicProperties_fwd.H" -#include #include -#include #include +#include + #include #include diff --git a/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.cpp b/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.cpp index 1ad5a6c3d9f..e6b23e87a8a 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.cpp +++ b/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.cpp @@ -14,7 +14,7 @@ # include "FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CylindricalYeeAlgorithm.H" #endif #include "Utils/WarpXAlgorithmSelection.H" -#ifndef WARPX_DIM_RZ +#ifdef WARPX_DIM_RZ # include "WarpX.H" #endif diff --git a/Source/FieldSolver/FiniteDifferenceSolver/MacroscopicEvolveE.cpp b/Source/FieldSolver/FiniteDifferenceSolver/MacroscopicEvolveE.cpp index d7f11ef37f7..f2a0cc9c7c6 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/MacroscopicEvolveE.cpp +++ b/Source/FieldSolver/FiniteDifferenceSolver/MacroscopicEvolveE.cpp @@ -14,7 +14,6 @@ #include #include -#include #include #include #include @@ -26,6 +25,8 @@ #include #include +#include + #include #include diff --git a/Source/FieldSolver/FiniteDifferenceSolver/MacroscopicProperties/MacroscopicProperties.cpp b/Source/FieldSolver/FiniteDifferenceSolver/MacroscopicProperties/MacroscopicProperties.cpp index 42b912fbae8..579296e14cd 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/MacroscopicProperties/MacroscopicProperties.cpp +++ b/Source/FieldSolver/FiniteDifferenceSolver/MacroscopicProperties/MacroscopicProperties.cpp @@ -16,6 +16,8 @@ #include #include +#include + #include using namespace amrex; diff --git a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/ComovingPsatdAlgorithm.H b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/ComovingPsatdAlgorithm.H index 0f276635fcf..ecbc1578b45 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/ComovingPsatdAlgorithm.H +++ b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/ComovingPsatdAlgorithm.H @@ -7,10 +7,10 @@ #include #include -#include -#include #include +#include + #include #include diff --git a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PMLPsatdAlgorithm.H b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PMLPsatdAlgorithm.H index 2f0183cbb10..7e17eda0741 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PMLPsatdAlgorithm.H +++ b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PMLPsatdAlgorithm.H @@ -12,10 +12,10 @@ #include "FieldSolver/SpectralSolver/SpectralFieldData_fwd.H" #include "FieldSolver/SpectralSolver/SpectralKSpace_fwd.H" -#include -#include #include +#include + #include #include diff --git a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithm.H b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithm.H index ae74af02ce6..7b917284b3d 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithm.H +++ b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithm.H @@ -13,10 +13,10 @@ #include #include -#include -#include #include +#include + #include #include diff --git a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/SpectralBaseAlgorithm.H b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/SpectralBaseAlgorithm.H index fcef643fc27..624d7870c5e 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/SpectralBaseAlgorithm.H +++ b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/SpectralBaseAlgorithm.H @@ -14,11 +14,11 @@ #include #include -#include #include -#include #include +#include + #include #include diff --git a/Source/FieldSolver/SpectralSolver/SpectralFieldData.H b/Source/FieldSolver/SpectralSolver/SpectralFieldData.H index 12a9fcadfcf..a1fed5cce22 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralFieldData.H +++ b/Source/FieldSolver/SpectralSolver/SpectralFieldData.H @@ -15,16 +15,15 @@ #include "Utils/WarpX_Complex.H" #include -#include #include -#include #include #include #include -#include #include #include +#include + #include // Declare type for spectral fields diff --git a/Source/FieldSolver/SpectralSolver/SpectralFieldData.cpp b/Source/FieldSolver/SpectralSolver/SpectralFieldData.cpp index 71dfc82d2ad..bdb631063cf 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralFieldData.cpp +++ b/Source/FieldSolver/SpectralSolver/SpectralFieldData.cpp @@ -21,6 +21,7 @@ #include #include #include +#include #include #include #include diff --git a/Source/FieldSolver/SpectralSolver/SpectralKSpace.H b/Source/FieldSolver/SpectralSolver/SpectralKSpace.H index cb56f24d1da..acd58cdb66d 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralKSpace.H +++ b/Source/FieldSolver/SpectralSolver/SpectralKSpace.H @@ -15,13 +15,14 @@ #include #include #include -#include #include #include #include #include #include +#include + // `KVectorComponent` and `SpectralShiftFactor` hold one 1D array // ("DeviceVector") for each box ("LayoutData"). The arrays are // only allocated if the corresponding box is owned by the local MPI rank. diff --git a/Source/FieldSolver/SpectralSolver/SpectralSolver.H b/Source/FieldSolver/SpectralSolver/SpectralSolver.H index d8088552f06..996053a8826 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralSolver.H +++ b/Source/FieldSolver/SpectralSolver/SpectralSolver.H @@ -13,12 +13,11 @@ #include "SpectralFieldData.H" #include -#include -#include -#include #include #include +#include + #include #include diff --git a/Source/Filter/Filter.H b/Source/Filter/Filter.H index 8b8bdf09334..92724a154c5 100644 --- a/Source/Filter/Filter.H +++ b/Source/Filter/Filter.H @@ -4,15 +4,13 @@ * * License: BSD-3-Clause-LBNL */ -#include -#include #include -#include #include #include -#include #include +#include + #ifndef WARPX_FILTER_H_ #define WARPX_FILTER_H_ diff --git a/Source/Initialization/InjectorDensity.H b/Source/Initialization/InjectorDensity.H index a0d2f3366e3..5b57fd23a95 100644 --- a/Source/Initialization/InjectorDensity.H +++ b/Source/Initialization/InjectorDensity.H @@ -17,6 +17,7 @@ #include #include #include +#include #include #include diff --git a/Source/Initialization/InjectorMomentum.H b/Source/Initialization/InjectorMomentum.H index 1848b6c0584..fe7d8aaea12 100644 --- a/Source/Initialization/InjectorMomentum.H +++ b/Source/Initialization/InjectorMomentum.H @@ -20,6 +20,8 @@ #include #include +#include + #include #include diff --git a/Source/Initialization/PlasmaInjector.H b/Source/Initialization/PlasmaInjector.H index 0de2c6f68b7..0e899a9eb9c 100644 --- a/Source/Initialization/PlasmaInjector.H +++ b/Source/Initialization/PlasmaInjector.H @@ -16,10 +16,11 @@ #include "InjectorPosition_fwd.H" #include -#include #include #include +#include + #ifdef WARPX_USE_OPENPMD # include #endif diff --git a/Source/Initialization/WarpXInitData.cpp b/Source/Initialization/WarpXInitData.cpp index 7e452afb7bc..3fac28e0a47 100644 --- a/Source/Initialization/WarpXInitData.cpp +++ b/Source/Initialization/WarpXInitData.cpp @@ -56,12 +56,14 @@ #include #include +#include #include #include #include #include #include + using namespace amrex; void diff --git a/Source/Laser/LaserProfilesImpl/LaserProfileFieldFunction.cpp b/Source/Laser/LaserProfilesImpl/LaserProfileFieldFunction.cpp index e54a18f813b..8dd1a6218eb 100644 --- a/Source/Laser/LaserProfilesImpl/LaserProfileFieldFunction.cpp +++ b/Source/Laser/LaserProfilesImpl/LaserProfileFieldFunction.cpp @@ -14,6 +14,7 @@ #include #include #include +#include #include #include diff --git a/Source/Parallelization/GuardCellManager.cpp b/Source/Parallelization/GuardCellManager.cpp index 8fe9622a471..c4c9c7b1b83 100644 --- a/Source/Parallelization/GuardCellManager.cpp +++ b/Source/Parallelization/GuardCellManager.cpp @@ -4,6 +4,9 @@ * * License: BSD-3-Clause-LBNL */ + +#include "GuardCellManager.H" + #ifndef WARPX_DIM_RZ # include "FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CartesianYeeAlgorithm.H" # include "FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CartesianNodalAlgorithm.H" @@ -12,7 +15,6 @@ # include "FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CylindricalYeeAlgorithm.H" #endif #include "Filter/NCIGodfreyFilter.H" -#include "GuardCellManager.H" #include "Utils/WarpXAlgorithmSelection.H" #include "Utils/WarpXConst.H" diff --git a/Source/Parallelization/WarpXRegrid.cpp b/Source/Parallelization/WarpXRegrid.cpp index cd9234a88b3..09cb7cb28d0 100644 --- a/Source/Parallelization/WarpXRegrid.cpp +++ b/Source/Parallelization/WarpXRegrid.cpp @@ -15,7 +15,6 @@ #include "Utils/WarpXProfilerWrapper.H" #include -#include #include #include #include @@ -24,7 +23,6 @@ #include #include #include -#include #include #include #include diff --git a/Source/Particles/Collision/PairWiseCoulombCollision.H b/Source/Particles/Collision/PairWiseCoulombCollision.H index abd7e4ccc09..b65f93787e5 100644 --- a/Source/Particles/Collision/PairWiseCoulombCollision.H +++ b/Source/Particles/Collision/PairWiseCoulombCollision.H @@ -12,9 +12,10 @@ #include "Particles/MultiParticleContainer_fwd.H" #include "Particles/WarpXParticleContainer_fwd.H" -#include #include +#include + #include class PairWiseCoulombCollision diff --git a/Source/Particles/ElementaryProcess/Ionization.H b/Source/Particles/ElementaryProcess/Ionization.H index 897fe4cad17..bb919550ab2 100644 --- a/Source/Particles/ElementaryProcess/Ionization.H +++ b/Source/Particles/ElementaryProcess/Ionization.H @@ -18,12 +18,12 @@ #include #include #include -#include #include #include -#include #include -#include +#include + +#include #include diff --git a/Source/Particles/ElementaryProcess/QEDInternals/BreitWheelerEngineWrapper.cpp b/Source/Particles/ElementaryProcess/QEDInternals/BreitWheelerEngineWrapper.cpp index 655c0eb262b..22a47a714ce 100644 --- a/Source/Particles/ElementaryProcess/QEDInternals/BreitWheelerEngineWrapper.cpp +++ b/Source/Particles/ElementaryProcess/QEDInternals/BreitWheelerEngineWrapper.cpp @@ -6,6 +6,7 @@ */ #include "BreitWheelerEngineWrapper.H" +#include #include #include diff --git a/Source/Particles/ElementaryProcess/QEDInternals/QuantumSyncEngineWrapper.cpp b/Source/Particles/ElementaryProcess/QEDInternals/QuantumSyncEngineWrapper.cpp index 81f396456d9..958b0221a2c 100644 --- a/Source/Particles/ElementaryProcess/QEDInternals/QuantumSyncEngineWrapper.cpp +++ b/Source/Particles/ElementaryProcess/QEDInternals/QuantumSyncEngineWrapper.cpp @@ -6,6 +6,7 @@ */ #include "QuantumSyncEngineWrapper.H" +#include #include #include diff --git a/Source/Particles/ElementaryProcess/QEDPairGeneration.H b/Source/Particles/ElementaryProcess/QEDPairGeneration.H index f0e229b5e7f..2303d0bdec4 100644 --- a/Source/Particles/ElementaryProcess/QEDPairGeneration.H +++ b/Source/Particles/ElementaryProcess/QEDPairGeneration.H @@ -18,12 +18,11 @@ #include #include #include -#include #include #include -#include #include -#include + +#include /** @file * diff --git a/Source/Particles/ElementaryProcess/QEDPhotonEmission.H b/Source/Particles/ElementaryProcess/QEDPhotonEmission.H index 25f76859499..a311f2cf4b5 100644 --- a/Source/Particles/ElementaryProcess/QEDPhotonEmission.H +++ b/Source/Particles/ElementaryProcess/QEDPhotonEmission.H @@ -19,13 +19,12 @@ #include #include #include -#include #include #include #include -#include #include -#include + +#include #include #include diff --git a/Source/Particles/LaserParticleContainer.H b/Source/Particles/LaserParticleContainer.H index 46c346660ce..7715902f977 100644 --- a/Source/Particles/LaserParticleContainer.H +++ b/Source/Particles/LaserParticleContainer.H @@ -13,13 +13,14 @@ #include "Laser/LaserProfiles.H" #include "WarpXParticleContainer.H" -#include #include -#include #include #include #include +#include +#include + #include #include #include diff --git a/Source/Particles/MultiParticleContainer.H b/Source/Particles/MultiParticleContainer.H index 48135dd4267..cad602e5880 100644 --- a/Source/Particles/MultiParticleContainer.H +++ b/Source/Particles/MultiParticleContainer.H @@ -25,21 +25,19 @@ #include "Utils/WarpXUtil.H" #include "WarpXParticleContainer.H" -#include #include #include -#include #include -#include #include #include -#include #include -#include #include #include #include +#include +#include + #include #include #include diff --git a/Source/Particles/ParticleCreation/FilterCreateTransformFromFAB.H b/Source/Particles/ParticleCreation/FilterCreateTransformFromFAB.H index 732107770e0..95455d51c57 100644 --- a/Source/Particles/ParticleCreation/FilterCreateTransformFromFAB.H +++ b/Source/Particles/ParticleCreation/FilterCreateTransformFromFAB.H @@ -8,6 +8,8 @@ #ifndef FILTER_CREATE_TRANSFORM_FROM_FAB_H_ #define FILTER_CREATE_TRANSFORM_FROM_FAB_H_ +#include "WarpX.H" + #include #include diff --git a/Source/Particles/PhotonParticleContainer.H b/Source/Particles/PhotonParticleContainer.H index 15014551bb7..e37deb9383e 100644 --- a/Source/Particles/PhotonParticleContainer.H +++ b/Source/Particles/PhotonParticleContainer.H @@ -14,13 +14,12 @@ #include "Particles/WarpXParticleContainer_fwd.H" -#include -#include -#include -#include #include #include +#include +#include + #include /** diff --git a/Source/Particles/PhotonParticleContainer.cpp b/Source/Particles/PhotonParticleContainer.cpp index ec8d9113d04..f7c391cde3d 100644 --- a/Source/Particles/PhotonParticleContainer.cpp +++ b/Source/Particles/PhotonParticleContainer.cpp @@ -23,7 +23,6 @@ #include #include #include -#include #include #include #include diff --git a/Source/Particles/PhysicalParticleContainer.H b/Source/Particles/PhysicalParticleContainer.H index e2c96613777..88c496eacef 100644 --- a/Source/Particles/PhysicalParticleContainer.H +++ b/Source/Particles/PhysicalParticleContainer.H @@ -23,15 +23,13 @@ #include "Particles/Resampling/Resampling.H" #include "WarpXParticleContainer.H" -#include -#include #include -#include -#include #include #include #include -#include + +#include +#include #include #include diff --git a/Source/Particles/PhysicalParticleContainer.cpp b/Source/Particles/PhysicalParticleContainer.cpp index 1b997ae9816..df5a5c33c04 100644 --- a/Source/Particles/PhysicalParticleContainer.cpp +++ b/Source/Particles/PhysicalParticleContainer.cpp @@ -28,6 +28,7 @@ #include "Particles/Pusher/UpdateMomentumBorisWithRadiationReaction.H" #include "Particles/Pusher/UpdateMomentumHigueraCary.H" #include "Particles/Pusher/UpdateMomentumVay.H" +#include "Particles/Pusher/UpdatePosition.H" #include "Particles/SpeciesPhysicalProperties.H" #include "Particles/WarpXParticleContainer.H" #include "Python/WarpXWrappers.h" @@ -49,6 +50,7 @@ #include #include #include +#include #include #include #include @@ -62,14 +64,18 @@ #include #include #include +#include +#include #include #include #include #include #include +#include #include #include #include +#include #include #include #include @@ -77,6 +83,7 @@ #include #include + #ifdef AMREX_USE_OMP # include #endif diff --git a/Source/Particles/Resampling/LevelingThinning.cpp b/Source/Particles/Resampling/LevelingThinning.cpp index d6ff6a182fc..8d2516a0fff 100644 --- a/Source/Particles/Resampling/LevelingThinning.cpp +++ b/Source/Particles/Resampling/LevelingThinning.cpp @@ -24,6 +24,8 @@ #include #include +#include + LevelingThinning::LevelingThinning (const std::string species_name) { using namespace amrex::literals; diff --git a/Source/Particles/RigidInjectedParticleContainer.H b/Source/Particles/RigidInjectedParticleContainer.H index 94dd252cc8a..142068f7fde 100644 --- a/Source/Particles/RigidInjectedParticleContainer.H +++ b/Source/Particles/RigidInjectedParticleContainer.H @@ -14,13 +14,12 @@ #include "WarpXParticleContainer_fwd.H" -#include -#include -#include -#include #include #include +#include +#include + #include #include diff --git a/Source/Particles/RigidInjectedParticleContainer.cpp b/Source/Particles/RigidInjectedParticleContainer.cpp index 143caaf0f5f..df55a3800cb 100644 --- a/Source/Particles/RigidInjectedParticleContainer.cpp +++ b/Source/Particles/RigidInjectedParticleContainer.cpp @@ -32,6 +32,7 @@ #include #include #include +#include #include #include #include @@ -40,6 +41,8 @@ #include #include #include +#include +#include #include #include #include diff --git a/Source/Particles/Sorting/Partition.cpp b/Source/Particles/Sorting/Partition.cpp index c649d0b2b95..0fba225595a 100644 --- a/Source/Particles/Sorting/Partition.cpp +++ b/Source/Particles/Sorting/Partition.cpp @@ -17,7 +17,8 @@ #include #include #include -#include + +#include #include diff --git a/Source/Particles/WarpXParticleContainer.H b/Source/Particles/WarpXParticleContainer.H index 25fb48d0aa0..c63802d084f 100644 --- a/Source/Particles/WarpXParticleContainer.H +++ b/Source/Particles/WarpXParticleContainer.H @@ -21,19 +21,19 @@ #endif #include "MultiParticleContainer_fwd.H" -#include #include #include #include #include -#include #include #include #include -#include #include #include +#include +#include + #include #include #include diff --git a/Source/Particles/WarpXParticleContainer.cpp b/Source/Particles/WarpXParticleContainer.cpp index 8e0cde96e33..aa80e1673c2 100644 --- a/Source/Particles/WarpXParticleContainer.cpp +++ b/Source/Particles/WarpXParticleContainer.cpp @@ -20,6 +20,7 @@ #include "WarpX.H" #include +#include #include #include #include @@ -39,6 +40,7 @@ #include #include #include +#include #include #include #include @@ -52,6 +54,7 @@ #include #include + #ifdef AMREX_USE_OMP # include #endif diff --git a/Source/Utils/CoarsenIO.H b/Source/Utils/CoarsenIO.H index 9aa102fc8e4..0b53831e6a4 100644 --- a/Source/Utils/CoarsenIO.H +++ b/Source/Utils/CoarsenIO.H @@ -6,9 +6,10 @@ #include #include #include -#include #include +#include + #include namespace CoarsenIO{ diff --git a/Source/Utils/CoarsenIO.cpp b/Source/Utils/CoarsenIO.cpp index de508e7bb73..2cb97b0e1b9 100644 --- a/Source/Utils/CoarsenIO.cpp +++ b/Source/Utils/CoarsenIO.cpp @@ -12,6 +12,7 @@ #include #include #include +#include using namespace amrex; diff --git a/Source/Utils/CoarsenMR.H b/Source/Utils/CoarsenMR.H index f269c8575cd..1191b0c7e1d 100644 --- a/Source/Utils/CoarsenMR.H +++ b/Source/Utils/CoarsenMR.H @@ -5,10 +5,10 @@ #include #include #include -#include -#include #include +#include + #include namespace CoarsenMR{ diff --git a/Source/Utils/CoarsenMR.cpp b/Source/Utils/CoarsenMR.cpp index cc1095f93d8..80562d54218 100644 --- a/Source/Utils/CoarsenMR.cpp +++ b/Source/Utils/CoarsenMR.cpp @@ -9,6 +9,7 @@ #include #include #include +#include using namespace amrex; diff --git a/Source/Utils/Interpolate.H b/Source/Utils/Interpolate.H index cfd178666fe..a67ee191849 100644 --- a/Source/Utils/Interpolate.H +++ b/Source/Utils/Interpolate.H @@ -1,10 +1,10 @@ #ifndef WARPX_INTERPOLATE_H_ #define WARPX_INTERPOLATE_H_ -#include -#include #include +#include + #include #include diff --git a/Source/Utils/ParticleUtils.H b/Source/Utils/ParticleUtils.H index 45680bd71a5..c0f36d60fc3 100644 --- a/Source/Utils/ParticleUtils.H +++ b/Source/Utils/ParticleUtils.H @@ -10,9 +10,10 @@ #include "Particles/WarpXParticleContainer.H" #include -#include #include +#include + namespace ParticleUtils { /** diff --git a/Source/Utils/RelativeCellPosition.H b/Source/Utils/RelativeCellPosition.H index 52dd2c2c3a9..cbc6064a7a5 100644 --- a/Source/Utils/RelativeCellPosition.H +++ b/Source/Utils/RelativeCellPosition.H @@ -7,7 +7,7 @@ #ifndef WARPX_RELATIVE_CELL_POSITION_H_ #define WARPX_RELATIVE_CELL_POSITION_H_ -#include +#include #include diff --git a/Source/Utils/RelativeCellPosition.cpp b/Source/Utils/RelativeCellPosition.cpp index 3c38a6dcb44..55e933af012 100644 --- a/Source/Utils/RelativeCellPosition.cpp +++ b/Source/Utils/RelativeCellPosition.cpp @@ -8,6 +8,7 @@ #include #include +#include std::vector< double > utils::getRelativeCellPosition(amrex::MultiFab const& mf) diff --git a/Source/Utils/WarpXAlgorithmSelection.H b/Source/Utils/WarpXAlgorithmSelection.H index 866ccdf3223..8596e439047 100644 --- a/Source/Utils/WarpXAlgorithmSelection.H +++ b/Source/Utils/WarpXAlgorithmSelection.H @@ -8,7 +8,7 @@ #ifndef UTILS_WARPXALGORITHMSELECTION_H_ #define UTILS_WARPXALGORITHMSELECTION_H_ -#include +#include #include diff --git a/Source/Utils/WarpXAlgorithmSelection.cpp b/Source/Utils/WarpXAlgorithmSelection.cpp index 4caaeb4b438..e73d3e30eba 100644 --- a/Source/Utils/WarpXAlgorithmSelection.cpp +++ b/Source/Utils/WarpXAlgorithmSelection.cpp @@ -11,6 +11,8 @@ #include +#include + #include #include #include diff --git a/Source/Utils/WarpXMovingWindow.cpp b/Source/Utils/WarpXMovingWindow.cpp index 908c5e5a372..42095a9576f 100644 --- a/Source/Utils/WarpXMovingWindow.cpp +++ b/Source/Utils/WarpXMovingWindow.cpp @@ -37,6 +37,8 @@ #include #include +#include + #include #include #include diff --git a/Source/Utils/WarpXTagging.cpp b/Source/Utils/WarpXTagging.cpp index fb38881a5e9..7b0f6222e22 100644 --- a/Source/Utils/WarpXTagging.cpp +++ b/Source/Utils/WarpXTagging.cpp @@ -21,6 +21,8 @@ #include #include +#include + using namespace amrex; void diff --git a/Source/Utils/WarpXUtil.H b/Source/Utils/WarpXUtil.H index efd6c01421d..22216d3fba5 100644 --- a/Source/Utils/WarpXUtil.H +++ b/Source/Utils/WarpXUtil.H @@ -12,12 +12,12 @@ #include #include -#include -#include #include #include #include +#include + #include #include #include diff --git a/Source/WarpX.H b/Source/WarpX.H index dcf6951808b..a70ea2af27f 100644 --- a/Source/WarpX.H +++ b/Source/WarpX.H @@ -41,18 +41,16 @@ #ifdef AMREX_USE_EB # include "AMReX_EBFabFactory.H" #endif -#include #include #include -#include -#include #include #include #include #include #include -#include -#include + +#include +#include #include #include diff --git a/Source/WarpX.cpp b/Source/WarpX.cpp index 1fcce07a84c..d4f9b5de11f 100644 --- a/Source/WarpX.cpp +++ b/Source/WarpX.cpp @@ -45,6 +45,7 @@ # include # include #endif +#include #include #include #include @@ -62,7 +63,6 @@ #include #include #include -#include #include #include From 4d6166e0294bca0a8dbcd66cf0ca06eb5582f22e Mon Sep 17 00:00:00 2001 From: Luca Fedeli Date: Tue, 15 Jun 2021 04:23:11 +0200 Subject: [PATCH 45/58] use right version of amrex --- cmake/dependencies/AMReX.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/dependencies/AMReX.cmake b/cmake/dependencies/AMReX.cmake index f3f9c6d9c2b..7f9a5a9f437 100644 --- a/cmake/dependencies/AMReX.cmake +++ b/cmake/dependencies/AMReX.cmake @@ -231,7 +231,7 @@ set(WarpX_amrex_src "" set(WarpX_amrex_repo "https://github.com/AMReX-Codes/amrex.git" CACHE STRING "Repository URI to pull and build AMReX from if(WarpX_amrex_internal)") -set(WarpX_amrex_branch "fc9bc1e3efdaead0253d0a55dcf1abb7abc06bd7" +set(WarpX_amrex_branch "659ab43420a2c4a918cda2702910771fbbc395d3" CACHE STRING "Repository branch for WarpX_amrex_repo if(WarpX_amrex_internal)") From 9b482a6cac6b5623f29fd22ea96e2c60ba0f9ca4 Mon Sep 17 00:00:00 2001 From: Luca Fedeli Date: Tue, 15 Jun 2021 04:42:19 +0200 Subject: [PATCH 46/58] use right version of amrex for tests --- run_test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run_test.sh b/run_test.sh index 792baa67d83..8ae2440d2ca 100755 --- a/run_test.sh +++ b/run_test.sh @@ -51,7 +51,7 @@ echo "cd $PWD" # Clone PICSAR and AMReX git clone https://github.com/AMReX-Codes/amrex.git -cd amrex && git checkout fc9bc1e3efdaead0253d0a55dcf1abb7abc06bd7 && cd - +cd amrex && git checkout 659ab43420a2c4a918cda2702910771fbbc395d3 && cd - # Use QED brach for QED tests git clone https://github.com/ECP-WarpX/picsar.git cd picsar && git checkout c16b642e3dcf860480dd1dd21cefa3874f395773 && cd - From 6fceb05d2c527a9de5b6e1ff4a1048478da67837 Mon Sep 17 00:00:00 2001 From: Luca Fedeli Date: Tue, 15 Jun 2021 05:00:47 +0200 Subject: [PATCH 47/58] fixed bug --- Source/Particles/Deposition/CurrentDeposition.H | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/Particles/Deposition/CurrentDeposition.H b/Source/Particles/Deposition/CurrentDeposition.H index 84afa49857a..af6fb87f114 100644 --- a/Source/Particles/Deposition/CurrentDeposition.H +++ b/Source/Particles/Deposition/CurrentDeposition.H @@ -11,6 +11,7 @@ #include "Parallelization/KernelTimer.H" #include "Particles/Pusher/GetAndSetPosition.H" #include "Particles/ShapeFactors.H" +#include "Utils/WarpXAlgorithmSelection.H" #include "Utils/WarpX_Complex.H" #include From f690826b12290cb84ba97ab2c64da64316b2a8df Mon Sep 17 00:00:00 2001 From: Luca Fedeli Date: Tue, 15 Jun 2021 09:50:29 +0200 Subject: [PATCH 48/58] fix another bug --- Source/Particles/Deposition/ChargeDeposition.H | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/Particles/Deposition/ChargeDeposition.H b/Source/Particles/Deposition/ChargeDeposition.H index 01b370417c9..547522280a8 100644 --- a/Source/Particles/Deposition/ChargeDeposition.H +++ b/Source/Particles/Deposition/ChargeDeposition.H @@ -10,6 +10,7 @@ #include "Particles/Pusher/GetAndSetPosition.H" #include "Particles/ShapeFactors.H" +#include "Utils/WarpXAlgorithmSelection.H" #include From 106287f99d40f5ef336e0b5ea7fee47035c97419 Mon Sep 17 00:00:00 2001 From: Luca Fedeli Date: Tue, 15 Jun 2021 10:06:39 +0200 Subject: [PATCH 49/58] fix missing include --- Source/Particles/Deposition/ChargeDeposition.H | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/Particles/Deposition/ChargeDeposition.H b/Source/Particles/Deposition/ChargeDeposition.H index 547522280a8..d91abfb5d32 100644 --- a/Source/Particles/Deposition/ChargeDeposition.H +++ b/Source/Particles/Deposition/ChargeDeposition.H @@ -8,6 +8,7 @@ #ifndef CHARGEDEPOSITION_H_ #define CHARGEDEPOSITION_H_ +#include "Parallelization/KernelTimer.H" #include "Particles/Pusher/GetAndSetPosition.H" #include "Particles/ShapeFactors.H" #include "Utils/WarpXAlgorithmSelection.H" From 6572bf77571f7129fc3264f1e44500fc01e1ff60 Mon Sep 17 00:00:00 2001 From: Luca Fedeli Date: Tue, 15 Jun 2021 10:50:23 +0200 Subject: [PATCH 50/58] fix missing include --- Source/FieldSolver/FiniteDifferenceSolver/EvolveF.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/FieldSolver/FiniteDifferenceSolver/EvolveF.cpp b/Source/FieldSolver/FiniteDifferenceSolver/EvolveF.cpp index bdf3ae0d143..18401d74ef7 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/EvolveF.cpp +++ b/Source/FieldSolver/FiniteDifferenceSolver/EvolveF.cpp @@ -15,7 +15,7 @@ #endif #include "Utils/WarpXAlgorithmSelection.H" #include "Utils/WarpXConst.H" -#ifndef WARPX_DIM_RZ +#ifdef WARPX_DIM_RZ # include "WarpX.H" #endif From 2ba8484a65685ef2224603630f08b472dc4e7e78 Mon Sep 17 00:00:00 2001 From: Luca Fedeli Date: Tue, 15 Jun 2021 11:14:15 +0200 Subject: [PATCH 51/58] fix missing include --- Source/Particles/Deposition/ChargeDeposition.H | 3 +++ Source/Particles/Deposition/CurrentDeposition.H | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Source/Particles/Deposition/ChargeDeposition.H b/Source/Particles/Deposition/ChargeDeposition.H index d91abfb5d32..d651b1b6cdc 100644 --- a/Source/Particles/Deposition/ChargeDeposition.H +++ b/Source/Particles/Deposition/ChargeDeposition.H @@ -12,6 +12,9 @@ #include "Particles/Pusher/GetAndSetPosition.H" #include "Particles/ShapeFactors.H" #include "Utils/WarpXAlgorithmSelection.H" +#ifdef WARPX_DIM_RZ +# include "Utils/WarpX_Complex.H" +#endif #include diff --git a/Source/Particles/Deposition/CurrentDeposition.H b/Source/Particles/Deposition/CurrentDeposition.H index af6fb87f114..c15b94cac15 100644 --- a/Source/Particles/Deposition/CurrentDeposition.H +++ b/Source/Particles/Deposition/CurrentDeposition.H @@ -12,7 +12,9 @@ #include "Particles/Pusher/GetAndSetPosition.H" #include "Particles/ShapeFactors.H" #include "Utils/WarpXAlgorithmSelection.H" -#include "Utils/WarpX_Complex.H" +#ifdef WARPX_DIM_RZ +# include "Utils/WarpX_Complex.H" +#endif #include #include From f9ab2868db449742da25b01e48d7d39abc9d3791 Mon Sep 17 00:00:00 2001 From: Luca Fedeli Date: Tue, 15 Jun 2021 12:04:25 +0200 Subject: [PATCH 52/58] updated amrex --- cmake/dependencies/AMReX.cmake | 2 +- run_test.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/dependencies/AMReX.cmake b/cmake/dependencies/AMReX.cmake index 7f9a5a9f437..3bd9e6ca63c 100644 --- a/cmake/dependencies/AMReX.cmake +++ b/cmake/dependencies/AMReX.cmake @@ -231,7 +231,7 @@ set(WarpX_amrex_src "" set(WarpX_amrex_repo "https://github.com/AMReX-Codes/amrex.git" CACHE STRING "Repository URI to pull and build AMReX from if(WarpX_amrex_internal)") -set(WarpX_amrex_branch "659ab43420a2c4a918cda2702910771fbbc395d3" +set(WarpX_amrex_branch "d7ff203305e8c8605ca6f92e9212acf717da56de" CACHE STRING "Repository branch for WarpX_amrex_repo if(WarpX_amrex_internal)") diff --git a/run_test.sh b/run_test.sh index 8ae2440d2ca..dfe89d002c4 100755 --- a/run_test.sh +++ b/run_test.sh @@ -51,7 +51,7 @@ echo "cd $PWD" # Clone PICSAR and AMReX git clone https://github.com/AMReX-Codes/amrex.git -cd amrex && git checkout 659ab43420a2c4a918cda2702910771fbbc395d3 && cd - +cd amrex && git checkout d7ff203305e8c8605ca6f92e9212acf717da56de && cd - # Use QED brach for QED tests git clone https://github.com/ECP-WarpX/picsar.git cd picsar && git checkout c16b642e3dcf860480dd1dd21cefa3874f395773 && cd - From ad2e7a0dd40897a5676206b7225772ccddac3fa9 Mon Sep 17 00:00:00 2001 From: Luca Fedeli Date: Thu, 17 Jun 2021 15:23:07 +0200 Subject: [PATCH 53/58] initial work to document new include strategy --- Docs/source/developers/repo_organization.rst | 39 +++++++++++++++++--- 1 file changed, 33 insertions(+), 6 deletions(-) diff --git a/Docs/source/developers/repo_organization.rst b/Docs/source/developers/repo_organization.rst index 4bd67a4d553..7f3df5194c7 100644 --- a/Docs/source/developers/repo_organization.rst +++ b/Docs/source/developers/repo_organization.rst @@ -28,15 +28,42 @@ All WarpX header files need to be specified relative to the ``Source/`` director - e.g. ``#include "Utils/WarpXConst.H"`` - files in the same directory as the including header-file can be included with ``#include "FileName.H"`` -The `include order `_ and `proper quotation marks `_ are: +By default, in a ``MyName.cpp`` source file we do not include headers already included in ``MyName.H``. Besides this exception, if a function or a class +is used in a source file, the header file containing its declaration must be included, unless the inclusion of a façade header is more appropriate. This is +sometimes the case for AMReX headers. For instance ``AMReX_GpuLaunch.H`` is a façade header for ``AMReX_GpuLaunchFunctsC.H`` and ``AMReX_GpuLaunchFunctsG.H``, which +contain respectively the CPU and the GPU implemetation of some methods, and which should not be included directly. +Whenever possible, forward declarations headers are included instead of the actual headers, in order to save compilation time (see dedicated section below). In WarpX forward +declaration headers have the suffix ``*_fwd.H``, while in AMReX they have the suffix ``*Fwd.H``. +The include order (see `PR #874 ` _ and `PR #1947 ` ) _ and `proper quotation marks `_ are: -1. In a ``.cpp`` file: ``#include ".H"`` (its header) then +1. In a ``MyName.cpp`` file: ``#include "MyName.H"`` (its header) then 2. (further) WarpX header files ``#include "..."`` then -3. PICSAR and AMReX header files ``#include <...>`` then -4. other third party includes ``#include <...>`` then -5. standard library includes, e.g. ``#include `` +3. WarpX forward declaration header files ``#include "..._fwd.H"`` +4. AMReX header files ``#include <...>`` then +5. AMReX forward declaration header files ``#include <...Fwd.H>`` then +6. PICSAR header files ``#include <...>`` then +7. other third party includes ``#include <...>`` then +8. standard library includes, e.g. ``#include `` -For details why this is needed, please see `PR #874 `_, the `LLVM guidelines `_, and `include-what-you-use `_. +1. In a ``MyName.H`` file: ``#include "MyName_fwd.H"`` (the corresponding forward declaration header, if it exists) then +2. WarpX header files ``#include "..."`` then +3. WarpX forward declaration header files ``#include "..._fwd.H"`` +4. AMReX header files ``#include <...>`` then +5. AMReX forward declaration header files ``#include <...Fwd.H>`` then +6. PICSAR header files ``#include <...>`` then +7. other third party includes ``#include <...>`` then +8. standard library includes, e.g. ``#include `` + +Each of these groups of header files should ideally be sorted alphabetically, and a blank line should be placed between the groups. + +For details why this is needed, please see `PR #874 `_, `PR #1947 `_, the `LLVM guidelines `_, and `include-what-you-use `_. + +Forward declaration headers +------------ + +Forward declaration headers are a convenient way to organize forward declarations (see for instance `include-what-you-use `). + +[TODO] WarpX-specific vocabulary ------------------------- From 6288550142016545a7541c5d00a7ad5e0b68906f Mon Sep 17 00:00:00 2001 From: lucafedeli88 Date: Thu, 24 Jun 2021 12:19:21 +0200 Subject: [PATCH 54/58] updated documentation --- Docs/source/developers/repo_organization.rst | 29 +++++++++++++++++--- 1 file changed, 25 insertions(+), 4 deletions(-) diff --git a/Docs/source/developers/repo_organization.rst b/Docs/source/developers/repo_organization.rst index 7f3df5194c7..6e4122f25cd 100644 --- a/Docs/source/developers/repo_organization.rst +++ b/Docs/source/developers/repo_organization.rst @@ -60,10 +60,31 @@ For details why this is needed, please see `PR #874 `). - -[TODO] +Forward declarations can be used when a header file needs only to know that a given class exists, without any further detail (e.g., when only a pointer to an instance of +that class is used). Forward declaration headers are a convenient way to organize forward declarations. If a forward declaration is needed for a given class ``MyClass``, declared in ``MyClass.H``, +the forward declaration should appear in a header file named ``MyClass_fwd.H``, placed in the same folder containing ``MyClass.H``. +Below we provide a simple example: + +``MyClass_fwd.H``: +.. code-block:: cpp + class MyClass; + +``MyClass.H``: +.. code-block:: cpp + #include “MyClass_fwd.H” + #include “someHeader.H” + class MyClass{/* stuff */}; + +``MyClass.cpp``: +.. code-block:: cpp + #include “MyClass.H” + class MyClass{/* stuff */}; + +Usage: +``SimpleUsage.H`` +.. code-block:: cpp + #include “MyClass_fwd.H” + #include WarpX-specific vocabulary ------------------------- From dc1b0208e8d95d0cfa9702cd97e27264f72836fd Mon Sep 17 00:00:00 2001 From: Axel Huebl Date: Thu, 24 Jun 2021 17:17:50 -0700 Subject: [PATCH 55/58] Fix rst & private includes --- Docs/source/developers/repo_organization.rst | 29 ++++++++++++-------- Source/BoundaryConditions/PML.cpp | 1 - Source/Diagnostics/FieldIO.cpp | 1 - Source/Utils/MPIInitHelpers.cpp | 2 +- 4 files changed, 19 insertions(+), 14 deletions(-) diff --git a/Docs/source/developers/repo_organization.rst b/Docs/source/developers/repo_organization.rst index 6e4122f25cd..41389672195 100644 --- a/Docs/source/developers/repo_organization.rst +++ b/Docs/source/developers/repo_organization.rst @@ -29,14 +29,16 @@ All WarpX header files need to be specified relative to the ``Source/`` director - files in the same directory as the including header-file can be included with ``#include "FileName.H"`` By default, in a ``MyName.cpp`` source file we do not include headers already included in ``MyName.H``. Besides this exception, if a function or a class -is used in a source file, the header file containing its declaration must be included, unless the inclusion of a façade header is more appropriate. This is +is used in a source file, the header file containing its declaration must be included, unless the inclusion of a facade header is more appropriate. This is sometimes the case for AMReX headers. For instance ``AMReX_GpuLaunch.H`` is a façade header for ``AMReX_GpuLaunchFunctsC.H`` and ``AMReX_GpuLaunchFunctsG.H``, which contain respectively the CPU and the GPU implemetation of some methods, and which should not be included directly. Whenever possible, forward declarations headers are included instead of the actual headers, in order to save compilation time (see dedicated section below). In WarpX forward declaration headers have the suffix ``*_fwd.H``, while in AMReX they have the suffix ``*Fwd.H``. The include order (see `PR #874 ` _ and `PR #1947 ` ) _ and `proper quotation marks `_ are: -1. In a ``MyName.cpp`` file: ``#include "MyName.H"`` (its header) then +In a ``MyName.cpp`` file: + +1. ``#include "MyName.H"`` (its header) then 2. (further) WarpX header files ``#include "..."`` then 3. WarpX forward declaration header files ``#include "..._fwd.H"`` 4. AMReX header files ``#include <...>`` then @@ -45,7 +47,9 @@ The include order (see `PR #874 `` then 8. standard library includes, e.g. ``#include `` -1. In a ``MyName.H`` file: ``#include "MyName_fwd.H"`` (the corresponding forward declaration header, if it exists) then +In a ``MyName.H`` file: + +1. ``#include "MyName_fwd.H"`` (the corresponding forward declaration header, if it exists) then 2. WarpX header files ``#include "..."`` then 3. WarpX forward declaration header files ``#include "..._fwd.H"`` 4. AMReX header files ``#include <...>`` then @@ -59,7 +63,7 @@ Each of these groups of header files should ideally be sorted alphabetically, an For details why this is needed, please see `PR #874 `_, `PR #1947 `_, the `LLVM guidelines `_, and `include-what-you-use `_. Forward declaration headers ------------- +--------------------------- Forward declarations can be used when a header file needs only to know that a given class exists, without any further detail (e.g., when only a pointer to an instance of that class is used). Forward declaration headers are a convenient way to organize forward declarations. If a forward declaration is needed for a given class ``MyClass``, declared in ``MyClass.H``, the forward declaration should appear in a header file named ``MyClass_fwd.H``, placed in the same folder containing ``MyClass.H``. @@ -71,20 +75,23 @@ Below we provide a simple example: ``MyClass.H``: .. code-block:: cpp - #include “MyClass_fwd.H” - #include “someHeader.H” - class MyClass{/* stuff */}; + + #include "MyClass_fwd.H" + #include "someHeader.H" + class MyClass{/* stuff */}; ``MyClass.cpp``: .. code-block:: cpp - #include “MyClass.H” - class MyClass{/* stuff */}; + + #include "MyClass.H" + class MyClass{/* stuff */}; Usage: ``SimpleUsage.H`` .. code-block:: cpp - #include “MyClass_fwd.H” - #include + + #include "MyClass_fwd.H" + #include WarpX-specific vocabulary ------------------------- diff --git a/Source/BoundaryConditions/PML.cpp b/Source/BoundaryConditions/PML.cpp index 4990c56715d..c1c4d55a04c 100644 --- a/Source/BoundaryConditions/PML.cpp +++ b/Source/BoundaryConditions/PML.cpp @@ -40,7 +40,6 @@ #include #include #include -#include #include #include diff --git a/Source/Diagnostics/FieldIO.cpp b/Source/Diagnostics/FieldIO.cpp index 024f3d0a071..5f7de7f715b 100644 --- a/Source/Diagnostics/FieldIO.cpp +++ b/Source/Diagnostics/FieldIO.cpp @@ -13,7 +13,6 @@ #include #include #include -#include #include #include diff --git a/Source/Utils/MPIInitHelpers.cpp b/Source/Utils/MPIInitHelpers.cpp index ffe79e22a8b..d4b049d7c49 100644 --- a/Source/Utils/MPIInitHelpers.cpp +++ b/Source/Utils/MPIInitHelpers.cpp @@ -11,7 +11,7 @@ #include #if defined(AMREX_USE_MPI) - #include +# include #endif #include From 547f6ed3191105c79e7eb72378a96d0e0ea3c905 Mon Sep 17 00:00:00 2001 From: Axel Huebl Date: Thu, 24 Jun 2021 17:18:52 -0700 Subject: [PATCH 56/58] Remove accidentially added files --- Source/Utils/a.out | Bin 152760 -> 0 bytes Source/Utils/main.cpp | 34 ---------------------------------- 2 files changed, 34 deletions(-) delete mode 100755 Source/Utils/a.out delete mode 100644 Source/Utils/main.cpp diff --git a/Source/Utils/a.out b/Source/Utils/a.out deleted file mode 100755 index 7e50880f53d3005753c319c9e7bd3c5b8ab31866..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 152760 zcmeFa4O~@K_BVb&P%=|0Gcv1dS!tO8qGD;Ga`mF9Bxq*Z72zrrZvz)Y$I3!YQq0VZ z%*x7Xn6hHZ8m6(ra>UAt%8JU2%ZK?q;gJIQ?%qL)cBstMH0(Je{i|PUmeHKk@pJC zA>-he^6Zb2;)&-CoJBJ7~p;-0mvX7`Bt#Mdcc~TqBoL7|s4vsQgK4=>J64 zYsXmd=u&7em&4`km@JEF3aJjd(!ca)A5DE}TyE>bQjZ-6b&zz0s=ljGj{I`C7rRp% z$Mre&LlU=JA;k$@m*(Y8>z{CGUiKw+J92zWMgbtM7_;t&KYW`sT{F`;!dWO=U=iF4D(c zF7D}bcl=K>(jRw;&qSlE!S`1FX;mGD$-CBnKY_wiT9dU&P#BDUJ}L}Gzrun3oCAG0 z>I|mmQwRFh4t9R(U}skc`dtos=EB**?8$bpC(WT<-#gGRcBpr=gZ@|tdm0?%3mxQF zIrt&P!Jaq=y30ZT-45-gxOL%w`!&@;Pql-dRSxoKR#5%D9q1=H=&ywSbL~dr{vG(? zWbI5XNsK0pL#mK2uXjd%VS%^ApIPkpd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vadD%rU(GA>RKr{NwY#H0Sg2ZS$I*k;abC ze+|FW&lvycPx$;B^oRK2hmU`b&wnP) z|HPcn$4|}qbX#R;^9 zd@-H>+xQor|0BFdm*DU3-M|a_xuO2=(fXD@;r#zCK9uL*xS{`=kDt;Es_rX_2(dGE9T z(|`Bbf9Yd5-h6#Nehm-*b#eX|=KL?r`TTeK+uZu+_rH$wY3=j%zclB6$=5gcZ^Vk- zKYU;RfOBd5`TU>!Oke3I|E-U&(TC!PuggdJT%NCA;e`LuC-FY#ui*3e^*3=cy~o$T zufDC -#include - -int main() -{ - MsgLogger::Logger logger; - - logger.record_entry( - MsgLogger::Type::warning, MsgLogger::Importance::low, - "Particles", "species_1 has 0 particles at time 0"); - - logger.record_entry( - MsgLogger::Type::warning, MsgLogger::Importance::medium, - "Laser", "laser_1 has e_max=0 and will be disabled"); - - logger.record_entry( - MsgLogger::Type::warning, MsgLogger::Importance::high, - "Parallelization", "Parallelization is extremely inefficient!"); - - logger.record_entry( - MsgLogger::Type::warning, MsgLogger::Importance::medium, - "Laser", "laser_1 is out of the simulation box and will be disabled"); - - logger.record_entry( - MsgLogger::Type::warning, MsgLogger::Importance::medium, - "Algorithms", "algorithm xxx is experimental!"); - - std::stringstream ss; - logger.print_warnings(ss); - - std::cout << ss.str(); -} \ No newline at end of file From 43ff84d9e4bac47dd112e0d96984a29e54dd111c Mon Sep 17 00:00:00 2001 From: Axel Huebl Date: Thu, 24 Jun 2021 17:20:33 -0700 Subject: [PATCH 57/58] Fix rst code blocks --- Docs/source/developers/repo_organization.rst | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Docs/source/developers/repo_organization.rst b/Docs/source/developers/repo_organization.rst index 41389672195..d9d64f7fbc0 100644 --- a/Docs/source/developers/repo_organization.rst +++ b/Docs/source/developers/repo_organization.rst @@ -71,9 +71,11 @@ Below we provide a simple example: ``MyClass_fwd.H``: .. code-block:: cpp + class MyClass; ``MyClass.H``: + .. code-block:: cpp #include "MyClass_fwd.H" @@ -81,13 +83,14 @@ Below we provide a simple example: class MyClass{/* stuff */}; ``MyClass.cpp``: + .. code-block:: cpp #include "MyClass.H" class MyClass{/* stuff */}; -Usage: -``SimpleUsage.H`` +Usage: in ``SimpleUsage.H`` + .. code-block:: cpp #include "MyClass_fwd.H" From f1d9caef0aabc07e8e5b13f7b50e92b1d5ec16cd Mon Sep 17 00:00:00 2001 From: Axel Huebl Date: Thu, 24 Jun 2021 17:21:43 -0700 Subject: [PATCH 58/58] one more rst block --- Docs/source/developers/repo_organization.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/Docs/source/developers/repo_organization.rst b/Docs/source/developers/repo_organization.rst index d9d64f7fbc0..2bd1b939f3b 100644 --- a/Docs/source/developers/repo_organization.rst +++ b/Docs/source/developers/repo_organization.rst @@ -70,6 +70,7 @@ the forward declaration should appear in a header file named ``MyClass_fwd.H``, Below we provide a simple example: ``MyClass_fwd.H``: + .. code-block:: cpp class MyClass;