Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SWIFT
SWIFTsim
Commits
d8d48085
Commit
d8d48085
authored
Aug 31, 2015
by
Pedro Gonnet
Browse files
clean up includes, i.e. sort them alphabetically.
Former-commit-id: 19fbc6ca163c7911b2d6c2f30ca2166152e3341c
parent
f0558ab8
Changes
30
Hide whitespace changes
Inline
Side-by-side
src/cell.c
View file @
d8d48085
...
...
@@ -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
;
...
...
src/cell.h
View file @
d8d48085
...
...
@@ -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
;
...
...
src/common_io.c
View file @
d8d48085
...
...
@@ -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
...
...
src/debug.h
View file @
d8d48085
...
...
@@ -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
);
...
...
src/engine.c
View file @
d8d48085
...
...
@@ -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"
...
...
src/engine.h
View file @
d8d48085
...
...
@@ -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
...
...
src/kernel.h
View file @
d8d48085
...
...
@@ -21,9 +21,9 @@
#define SWIFT_KERNEL_H
/* Includes. */
#include
"vector.h"
#include
"const.h"
#include
"inline.h"
#include
"vector.h"
/**
* @file kernel.h
...
...
src/multipole.c
View file @
d8d48085
...
...
@@ -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
...
...
src/multipole.h
View file @
d8d48085
...
...
@@ -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
...
...
src/parallel_io.c
View file @
d8d48085
...
...
@@ -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.
...
...
src/parallel_io.h
View file @
d8d48085
...
...
@@ -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)
...
...
src/proxy.c
View file @
d8d48085
...
...
@@ -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
...
...
src/proxy.h
View file @
d8d48085
...
...
@@ -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
...
...
src/runner.c
View file @
d8d48085
...
...
@@ -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
...
...
src/runner_doiact.h
View file @
d8d48085
...
...
@@ -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
...
...
src/runner_iact.h
View file @
d8d48085
...
...
@@ -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"
/**
...
...
src/runner_iact_legacy.h
View file @
d8d48085
...
...
@@ -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"
/**
...
...
src/scheduler.c
View file @
d8d48085
...
...
@@ -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.
...
...
src/scheduler.h
View file @
d8d48085
...
...
@@ -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
...
...
src/serial_io.c
View file @
d8d48085
...
...
@@ -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
...
...
Prev
1
2
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment