Skip to content
Snippets Groups Projects
Commit 28c4b144 authored by Pedro Gonnet's avatar Pedro Gonnet
Browse files

another batch of include fixes.

Former-commit-id: f6115445747ec20c72c754c53ee79590b76cbafa
parent 74a0bc98
No related branches found
No related tags found
No related merge requests found
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
#define SWIFT_CELL_H #define SWIFT_CELL_H
/* Includes. */ /* Includes. */
#include "lock.h"
#include "part.h" #include "part.h"
#include "multipole.h" #include "multipole.h"
......
...@@ -25,7 +25,6 @@ ...@@ -25,7 +25,6 @@
#include <stdlib.h> #include <stdlib.h>
#include <unistd.h> #include <unistd.h>
#include <string.h> #include <string.h>
#include <pthread.h>
#include <math.h> #include <math.h>
#include <float.h> #include <float.h>
#include <limits.h> #include <limits.h>
...@@ -43,23 +42,16 @@ ...@@ -43,23 +42,16 @@
#endif #endif
/* Local headers. */ /* Local headers. */
#include "engine.h"
#include "const.h" #include "const.h"
#include "cycle.h" #include "cycle.h"
#include "atomic.h" #include "atomic.h"
#include "timers.h" #include "timers.h"
#include "const.h" #include "const.h"
#include "vector.h" #include "vector.h"
#include "lock.h"
#include "task.h"
#include "debug.h" #include "debug.h"
#include "space.h"
#include "multipole.h"
#include "cell.h" #include "cell.h"
#include "queue.h" #include "queue.h"
#include "scheduler.h"
#include "engine.h"
#include "runner.h"
#include "proxy.h"
#include "error.h" #include "error.h"
#ifdef LEGACY_GADGET2_SPH #ifdef LEGACY_GADGET2_SPH
......
...@@ -19,6 +19,17 @@ ...@@ -19,6 +19,17 @@
#ifndef SWIFT_ENGINE_H #ifndef SWIFT_ENGINE_H
#define SWIFT_ENGINE_H #define SWIFT_ENGINE_H
/* Some standard headers. */
#include <pthread.h>
/* Includes. */
#include "proxy.h"
#include "space.h"
#include "task.h"
#include "lock.h"
#include "scheduler.h"
#include "runner.h"
/* Some constants. */ /* Some constants. */
#define engine_policy_none 0 #define engine_policy_none 0
#define engine_policy_rand 1 #define engine_policy_rand 1
......
...@@ -20,14 +20,16 @@ ...@@ -20,14 +20,16 @@
#ifndef SWIFT_KERNEL_H #ifndef SWIFT_KERNEL_H
#define SWIFT_KERNEL_H #define SWIFT_KERNEL_H
/* Includes. */
#include "vector.h"
#include "const.h"
/** /**
* @file kernel.h * @file kernel.h
* @brief SPH kernel functions. Compute W(x,h) and the gradient of W(x,h), * @brief SPH kernel functions. Compute W(x,h) and the gradient of W(x,h),
* as well as the blending function used for gravity. * as well as the blending function used for gravity.
*/ */
#include "vector.h"
/* Gravity kernel stuff /* Gravity kernel stuff
* ----------------------------------------------------------------------------------------------- * -----------------------------------------------------------------------------------------------
*/ */
......
...@@ -19,7 +19,12 @@ ...@@ -19,7 +19,12 @@
#ifndef SWIFT_MULTIPOLE_H #ifndef SWIFT_MULTIPOLE_H
#define SWIFT_MULTIPOLE_H #define SWIFT_MULTIPOLE_H
/* Some standard headers. */
#include <math.h>
/* Includes. */ /* Includes. */
#include "inline.h"
#include "kernel.h"
#include "part.h" #include "part.h"
/* Some constants. */ /* Some constants. */
...@@ -47,9 +52,6 @@ void multipole_addparts(struct multipole *m, struct gpart *p, int N); ...@@ -47,9 +52,6 @@ void multipole_addparts(struct multipole *m, struct gpart *p, int N);
void multipole_init(struct multipole *m, struct gpart *parts, int N); void multipole_init(struct multipole *m, struct gpart *parts, int N);
void multipole_reset(struct multipole *m); void multipole_reset(struct multipole *m);
#include <math.h>
#include "kernel.h"
/** /**
* @brief Compute the pairwise interaction between two multipoles. * @brief Compute the pairwise interaction between two multipoles.
* *
......
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
#define SWIFT_TASK_H #define SWIFT_TASK_H
/* Includes. */ /* Includes. */
#include "cycle.h"
#include "cell.h" #include "cell.h"
/* Some constants. */ /* Some constants. */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment