From 415dae0026abbb2a5e07b961ab9c60ef550a5229 Mon Sep 17 00:00:00 2001 From: Axel Huebl Date: Thu, 2 Apr 2020 08:38:15 -0700 Subject: 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. --- Source/FieldSolver/SpectralSolver/SpectralAlgorithms/Make.package | 2 -- .../SpectralSolver/SpectralAlgorithms/SpectralBaseAlgorithm.cpp | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'Source/FieldSolver/SpectralSolver/SpectralAlgorithms') 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 +#include "SpectralBaseAlgorithm.H" #include using namespace amrex; -- cgit v1.2.3