cooling.h 1.99 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*******************************************************************************
 * This file is part of SWIFT.
 * Copyright (c) 2016 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_COOLING_H
#define SWIFT_COOLING_H

/**
 * @file src/cooling.h
 * @brief Branches between the different cooling functions.
 */

/* Config parameters. */
#include "../config.h"

/* Import the right cooling definition */
31
#if defined(COOLING_NONE)
32
//#include "./cooling/none/cooling_iact.h"
33
34
#include "./cooling/none/cooling.h"
#elif defined(COOLING_CONST_DU)
35
//#include "./cooling/const_du/cooling_iact.h"
36
37
#include "./cooling/const_du/cooling.h"
#elif defined(COOLING_CONST_LAMBDA)
38
//#include "./cooling/const_lambda/cooling_iact.h"
39
#include "./cooling/const_lambda/cooling.h"
40
#elif defined(COOLING_GRACKLE)
41
//#include "./cooling/grackle/cooling_iact.h"
42
43
44
45
46
#include "./cooling/grackle/cooling.h"
#else
#error "Invalid choice of cooling function."
#endif

47
48
/* Common functions */
void cooling_init(const struct swift_params* parameter_file,
49
                  const struct unit_system* us,
50
                  const struct phys_const* phys_const,
51
                  struct cooling_function_data* cooling);
52

53
void cooling_print(const struct cooling_function_data* cooling);
54

55
#endif /* SWIFT_COOLING_H */