Commit d8d48085 authored by Pedro Gonnet's avatar Pedro Gonnet
Browse files

clean up includes, i.e. sort them alphabetically.


Former-commit-id: 19fbc6ca163c7911b2d6c2f30ca2166152e3341c
parent f0558ab8
......@@ -21,13 +21,13 @@
#include "../config.h"
/* Some standard headers. */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <pthread.h>
#include <float.h>
#include <limits.h>
#include <math.h>
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/* MPI headers. */
#ifdef WITH_MPI
......@@ -44,9 +44,9 @@
/* Local headers. */
#include "atomic.h"
#include "timers.h"
#include "space.h"
#include "error.h"
#include "space.h"
#include "timers.h"
/* Global variables. */
int cell_next_tag = 0;
......
......@@ -21,8 +21,8 @@
/* Includes. */
#include "lock.h"
#include "part.h"
#include "multipole.h"
#include "part.h"
/* Forward declaration of space, needed for cell_unpack. */
struct space;
......
......@@ -24,12 +24,12 @@
#if defined(HAVE_HDF5)
/* Some standard headers. */
#include <hdf5.h>
#include <math.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stddef.h>
#include <hdf5.h>
#include <math.h>
/* MPI headers. */
#ifdef WITH_MPI
......
......@@ -20,8 +20,8 @@
#define SWIFT_DEBUG_H
/* Includes. */
#include "part.h"
#include "cell.h"
#include "part.h"
void print_cell(struct cell *c);
void printParticle(struct part *parts, long long int i, int N);
......
......@@ -21,15 +21,15 @@
#include "../config.h"
/* Some standard headers. */
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <math.h>
#include <float.h>
#include <limits.h>
#include <math.h>
#include <omp.h>
#include <sched.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
/* MPI headers. */
#ifdef WITH_MPI
......@@ -45,12 +45,12 @@
#include "engine.h"
/* Local headers. */
#include "cycle.h"
#include "atomic.h"
#include "timers.h"
#include "debug.h"
#include "cell.h"
#include "cycle.h"
#include "debug.h"
#include "error.h"
#include "timers.h"
#ifdef LEGACY_GADGET2_SPH
#include "runner_iact_legacy.h"
......
......@@ -23,12 +23,12 @@
#include <pthread.h>
/* Includes. */
#include "lock.h"
#include "proxy.h"
#include "runner.h"
#include "scheduler.h"
#include "space.h"
#include "task.h"
#include "lock.h"
#include "scheduler.h"
#include "runner.h"
/* Some constants. */
#define engine_policy_none 0
......
......@@ -21,9 +21,9 @@
#define SWIFT_KERNEL_H
/* Includes. */
#include "vector.h"
#include "const.h"
#include "inline.h"
#include "vector.h"
/**
* @file kernel.h
......
......@@ -21,12 +21,12 @@
#include "../config.h"
/* Some standard headers. */
#include <float.h>
#include <limits.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <float.h>
#include <limits.h>
/* MPI headers. */
#ifdef WITH_MPI
......
......@@ -23,10 +23,10 @@
#include <math.h>
/* Includes. */
#include "const.h"
#include "inline.h"
#include "kernel.h"
#include "part.h"
#include "const.h"
/* Some constants. */
#define multipole_order 1
......
......@@ -27,20 +27,20 @@
#define H5_HAVE_PARALLEL
/* Some standard headers. */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stddef.h>
#include <hdf5.h>
#include <math.h>
#include <mpi.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/* This object's header. */
#include "parallel_io.h"
/* Local includes. */
#include "error.h"
#include "common_io.h"
#include "error.h"
/**
* @brief Reads a data array from a given HDF5 group.
......
......@@ -25,8 +25,8 @@
#endif
/* Includes. */
#include "part.h"
#include "engine.h"
#include "part.h"
#include "units.h"
#if defined(HAVE_HDF5) && defined(WITH_MPI) && defined(HAVE_PARALLEL_HDF5)
......
......@@ -21,16 +21,16 @@
#include "../config.h"
/* Some standard headers. */
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <pthread.h>
#include <math.h>
#include <float.h>
#include <limits.h>
#include <math.h>
#include <omp.h>
#include <pthread.h>
#include <sched.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
/* MPI headers. */
#ifdef WITH_MPI
......
......@@ -20,8 +20,8 @@
#define SWIFT_PROXY_H
/* Includes. */
#include "part.h"
#include "cell.h"
#include "part.h"
/* Some constants. */
#define proxy_buffgrow 1.5
......
......@@ -21,14 +21,14 @@
#include "../config.h"
/* Some standard headers. */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <pthread.h>
#include <math.h>
#include <float.h>
#include <limits.h>
#include <math.h>
#include <omp.h>
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/* MPI headers. */
#ifdef WITH_MPI
......@@ -40,12 +40,12 @@
/* Local headers. */
#include "const.h"
#include "timers.h"
#include "task.h"
#include "space.h"
#include "scheduler.h"
#include "engine.h"
#include "error.h"
#include "scheduler.h"
#include "space.h"
#include "task.h"
#include "timers.h"
/* Include the right variant of the SPH interactions */
#ifdef LEGACY_GADGET2_SPH
......
......@@ -18,8 +18,8 @@
******************************************************************************/
/* Includes. */
#include "part.h"
#include "cell.h"
#include "part.h"
/* Before including this file, define FUNCTION, which is the
name of the interaction function. This creates the interaction functions
......
......@@ -21,9 +21,9 @@
#define SWIFT_RUNNER_IACT_H
/* Includes. */
#include "part.h"
#include "const.h"
#include "kernel.h"
#include "part.h"
#include "vector.h"
/**
......
......@@ -21,9 +21,9 @@
#define SWIFT_RUNNER_IACT_LECAGY_H
/* Includes. */
#include "part.h"
#include "const.h"
#include "kernel.h"
#include "part.h"
#include "vector.h"
/**
......
......@@ -21,13 +21,13 @@
#include "../config.h"
/* Some standard headers. */
#include <limits.h>
#include <math.h>
#include <omp.h>
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <pthread.h>
#include <limits.h>
#include <omp.h>
/* MPI headers. */
#ifdef WITH_MPI
......@@ -38,12 +38,12 @@
#include "scheduler.h"
/* Local headers. */
#include "error.h"
#include "cycle.h"
#include "atomic.h"
#include "timers.h"
#include "const.h"
#include "cycle.h"
#include "error.h"
#include "kernel.h"
#include "timers.h"
/**
* @brief Add an unlock_task to the given task.
......
......@@ -24,10 +24,10 @@
/* Includes. */
#include "cell.h"
#include "queue.h"
#include "task.h"
#include "lock.h"
#include "queue.h"
#include "space.h"
#include "task.h"
/* Some constants. */
#define scheduler_maxwait 3
......
......@@ -24,12 +24,12 @@
#if defined(HAVE_HDF5) && defined(WITH_MPI) && !defined(HAVE_PARALLEL_HDF5)
/* Some standard headers. */
#include <hdf5.h>
#include <math.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stddef.h>
#include <hdf5.h>
#include <math.h>
/* MPI headers. */
#ifdef WITH_MPI
......@@ -40,8 +40,8 @@
#include "serial_io.h"
/* Local includes. */
#include "error.h"
#include "common_io.h"
#include "error.h"
/*-----------------------------------------------------------------------------
* Routines reading an IC file
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment