hydro.h 2.37 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*******************************************************************************
 * This file is part of SWIFT.
 * Coypright (c) 2015 Matthieu Schaller (matthieu.schaller@durham.ac.uk)
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published
 * by the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 ******************************************************************************/
#ifndef SWIFT_HYDRO_H
#define SWIFT_HYDRO_H

22
23
24
25
/* Config parameters. */
#include "../config.h"

/* Local headers. */
26
27
#include "hydro_properties.h"
#include "kernel_hydro.h"
28
29

/* Import the right functions */
30
31
32
33
34
#if defined(DEBUG_INTERACTIONS_SPH)
#include "./hydro/DebugInteractions/hydro.h"
#include "./hydro/DebugInteractions/hydro_iact.h"
#define SPH_IMPLEMENTATION "Debug SELF/PAIR"
#elif defined(MINIMAL_SPH)
35
#include "./hydro/Minimal/hydro.h"
36
#include "./hydro/Minimal/hydro_iact.h"
37
#define SPH_IMPLEMENTATION "Minimal version of SPH (e.g. Price 2010)"
38
39
#elif defined(GADGET2_SPH)
#include "./hydro/Gadget2/hydro.h"
40
#include "./hydro/Gadget2/hydro_iact.h"
41
#define SPH_IMPLEMENTATION "Gadget-2 version of SPH (Springel 2005)"
42
43
44
#elif defined(HOPKINS_PE_SPH)
#include "./hydro/PressureEntropy/hydro.h"
#include "./hydro/PressureEntropy/hydro_iact.h"
45
#define SPH_IMPLEMENTATION "Pressure-Entropy SPH (Hopkins 2013)"
46
47
#elif defined(DEFAULT_SPH)
#include "./hydro/Default/hydro.h"
48
#include "./hydro/Default/hydro_iact.h"
49
#define SPH_IMPLEMENTATION "Default version of SPH"
50
51
52
#elif defined(GIZMO_SPH)
#include "./hydro/Gizmo/hydro.h"
#include "./hydro/Gizmo/hydro_iact.h"
53
#define SPH_IMPLEMENTATION "GIZMO (Hopkins 2015)"
54
#elif defined(SHADOWFAX_SPH)
55
56
57
#include "./hydro/Shadowswift/hydro.h"
#include "./hydro/Shadowswift/hydro_iact.h"
#define SPH_IMPLEMENTATION \
58
  "Shadowfax moving mesh (Vandenbroucke and De Rijcke 2016)"
59
60
#else
#error "Invalid choice of SPH variant"
61
62
#endif

63
#endif /* SWIFT_HYDRO_H */