diff --git a/src/cooling/EAGLE/cooling_rates.h b/src/cooling/EAGLE/cooling_rates.h index a0267eb211b25e225c5a15157e7c46de2322b415..56196f50bae493301b2259e2be3fa8c1aa1fd629 100644 --- a/src/cooling/EAGLE/cooling_rates.h +++ b/src/cooling/EAGLE/cooling_rates.h @@ -18,6 +18,9 @@ ******************************************************************************/ /* Config parameters. */ +#ifndef SWIFT_EAGLE_COOLING_RATES_H +#define SWIFT_EAGLE_COOLING_RATES_H + #include "../config.h" /* Local includes. */ @@ -714,3 +717,5 @@ INLINE static double eagle_cooling_rate( d_He, cooling, dLambdaNet_du, /*element_lambda=*/NULL); } + +#endif /* SWIFT_EAGLE_COOLING_RATES_H */ diff --git a/src/cooling/EAGLE/interpolate.h b/src/cooling/EAGLE/interpolate.h index 103bda94d9e19489c67805ae1c08327f0e59bdd4..c347907905fe1976378a46630a3517b788f5aff4 100644 --- a/src/cooling/EAGLE/interpolate.h +++ b/src/cooling/EAGLE/interpolate.h @@ -27,23 +27,12 @@ /* Config parameters. */ #include "../config.h" -/* Some standard headers. */ -#include <float.h> -#include <hdf5.h> -#include <math.h> -#include <time.h> - /* Local includes. */ -#include "chemistry.h" +#include "align.h" #include "cooling_struct.h" #include "eagle_cool_tables.h" #include "error.h" -#include "hydro.h" -#include "io_properties.h" -#include "parser.h" -#include "part.h" -#include "physical_constants.h" -#include "units.h" +#include "inline.h" /** * @brief Returns the 1d index of element with 2d indices x,y diff --git a/tests/testCooling.c b/tests/testCooling.c index 1c7ec40fffe1b1f1ab7c7428e9bbe8ff29090b75..727a9638b09b871e866fe787438a5707fd43ec6b 100644 --- a/tests/testCooling.c +++ b/tests/testCooling.c @@ -16,15 +16,10 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. * ******************************************************************************/ +#include "../config.h" -#include <unistd.h> -#include "cooling.h" -#include "cooling/EAGLE/interpolate.h" -#include "cooling_struct.h" -#include "hydro.h" -#include "physical_constants.h" +/* Local headers. */ #include "swift.h" -#include "units.h" #if 0