From 0b6ddad4ce039277025b80ba81ff2692b3a80724 Mon Sep 17 00:00:00 2001 From: Luca Fedeli Date: Fri, 25 Jun 2021 04:34:32 +0200 Subject: Use "Include What You Use" on WarpX (#1947) * initial tests with IWYU * added a couple of forward declarations * used iwyu on more files * progress * used iwyu on more files * progress with iwyu * progress with iwyu * fixed bug * progress with iwyu * progress with IWYU * progress with IWYU * fixed bug * fixed bug * progress with IWYU * progress with IWYU + use forward declarations in WarpX.H * first try with .def files * fix bugs * progress with IWYU * progress with IWYU * progress with iwyu * correct copyright * fixed bug * fixed bugs * fix missing include * fixed bug * fix bug * fix bug introduced during last bugfix * use iwyu on newly added files * add space * fix bug * fix missing include * fix missing include * fix missing include * fixed bugs * fixed bug * attempt at fixing issue with math functions * added missing include * fixed missing include * using _fwd.H * fixed bug * progress with iwyu * update AMReX branch * enforce alphabetic order * progress with iwyu * use right version of amrex * use right version of amrex for tests * fixed bug * fix another bug * fix missing include * fix missing include * fix missing include * updated amrex * initial work to document new include strategy * updated documentation * Fix rst & private includes * Remove accidentially added files * Fix rst code blocks * one more rst block Co-authored-by: Axel Huebl --- Source/Particles/MultiParticleContainer.cpp | 54 +++++++++++++++++++++++++---- 1 file changed, 48 insertions(+), 6 deletions(-) (limited to 'Source/Particles/MultiParticleContainer.cpp') diff --git a/Source/Particles/MultiParticleContainer.cpp b/Source/Particles/MultiParticleContainer.cpp index a0524c166..4990f7c6d 100644 --- a/Source/Particles/MultiParticleContainer.cpp +++ b/Source/Particles/MultiParticleContainer.cpp @@ -10,19 +10,61 @@ * License: BSD-3-Clause-LBNL */ #include "MultiParticleContainer.H" -#include "SpeciesPhysicalProperties.H" -#include "WarpX.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/ElementaryProcess/QEDInternals/SchwingerProcessWrapper.H" - #include "Particles/ElementaryProcess/QEDSchwingerProcess.H" - #include "Particles/ParticleCreation/FilterCreateTransformFromFAB.H" +# include "Particles/ParticleCreation/FilterCreateTransformFromFAB.H" #endif +#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 "SpeciesPhysicalProperties.H" +#include "Utils/WarpXAlgorithmSelection.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 +#include #include using namespace amrex; -- cgit v1.2.3