diff options
author | 2020-04-02 08:38:15 -0700 | |
---|---|---|
committer | 2020-04-02 08:38:15 -0700 | |
commit | 415dae0026abbb2a5e07b961ab9c60ef550a5229 (patch) | |
tree | 5bb4eaa97dc3b85892016101002f84c67f652d00 /Source/FieldSolver/SpectralSolver | |
parent | fe49cdca472be586d50c4cfde38f4b5065f8fdb5 (diff) | |
download | WarpX-415dae0026abbb2a5e07b961ab9c60ef550a5229.tar.gz WarpX-415dae0026abbb2a5e07b961ab9c60ef550a5229.tar.zst WarpX-415dae0026abbb2a5e07b961ab9c60ef550a5229.zip |
Includes: Only From `Source/` (#873)
* Includes: Only From `Source/`
Avoid adding all directories to include paths:
- automatically structure includes more clearly, e.g. a util include
with a short name is clearly seen as such
- should have some small positive impact on compile time, since the
compiler has to search less directories for an include file
* Includes: Fix Non-Local Paths
Add missing prefix relative to `Source/` for WarpX-local includes.
Diffstat (limited to 'Source/FieldSolver/SpectralSolver')
3 files changed, 1 insertions, 4 deletions
diff --git a/Source/FieldSolver/SpectralSolver/Make.package b/Source/FieldSolver/SpectralSolver/Make.package index ef5a01ea3..2d7aafc8f 100644 --- a/Source/FieldSolver/SpectralSolver/Make.package +++ b/Source/FieldSolver/SpectralSolver/Make.package @@ -4,5 +4,4 @@ CEXE_sources += SpectralKSpace.cpp include $(WARPX_HOME)/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/Make.package -INCLUDE_LOCATIONS += $(WARPX_HOME)/Source/FieldSolver/SpectralSolver VPATH_LOCATIONS += $(WARPX_HOME)/Source/FieldSolver/SpectralSolver diff --git a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/Make.package b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/Make.package index 086fc82a0..93cefcb66 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/Make.package +++ b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/Make.package @@ -3,6 +3,4 @@ CEXE_sources += PsatdAlgorithm.cpp CEXE_sources += GalileanAlgorithm.cpp CEXE_sources += PMLPsatdAlgorithm.cpp - -INCLUDE_LOCATIONS += $(WARPX_HOME)/Source/FieldSolver/SpectralSolver/SpectralAlgorithms VPATH_LOCATIONS += $(WARPX_HOME)/Source/FieldSolver/SpectralSolver/SpectralAlgorithms diff --git a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/SpectralBaseAlgorithm.cpp b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/SpectralBaseAlgorithm.cpp index c917391f9..73a0bb9af 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/SpectralBaseAlgorithm.cpp +++ b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/SpectralBaseAlgorithm.cpp @@ -4,7 +4,7 @@ * * License: BSD-3-Clause-LBNL */ -#include <SpectralBaseAlgorithm.H> +#include "SpectralBaseAlgorithm.H" #include <cmath> using namespace amrex; |