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
30d2f611
Commit
30d2f611
authored
Mar 01, 2018
by
Matthieu Schaller
Browse files
Only compile the cooling_write_flavour() functions if HDF5 is detected.
parent
bccd9547
Changes
5
Hide whitespace changes
Inline
Side-by-side
src/cooling/EAGLE/cooling.h
View file @
30d2f611
...
...
@@ -37,6 +37,8 @@
#include
"physical_constants.h"
#include
"units.h"
#ifdef HAVE_HDF5
/**
* @brief Writes the current model of SPH to the file
* @param h_grpsph The HDF5 group in which to write
...
...
@@ -46,6 +48,7 @@ __attribute__((always_inline)) INLINE static void cooling_write_flavour(
io_write_attribute_s
(
h_grpsph
,
"Cooling Model"
,
"EAGLE"
);
}
#endif
/**
* @brief Apply the cooling function to a particle.
...
...
src/cooling/const_du/cooling.h
View file @
30d2f611
...
...
@@ -44,6 +44,8 @@
#include
"physical_constants.h"
#include
"units.h"
#ifdef HAVE_HDF5
/**
* @brief Writes the current model of SPH to the file
* @param h_grpsph The HDF5 group in which to write
...
...
@@ -53,6 +55,7 @@ __attribute__((always_inline)) INLINE static void cooling_write_flavour(
io_write_attribute_s
(
h_grpsph
,
"Cooling Model"
,
"Constant du/dt"
);
}
#endif
/**
* @brief Apply the cooling function to a particle.
...
...
src/cooling/const_lambda/cooling.h
View file @
30d2f611
...
...
@@ -37,6 +37,8 @@
#include
"physical_constants.h"
#include
"units.h"
#ifdef HAVE_HDF5
/**
* @brief Writes the current model of SPH to the file
* @param h_grpsph The HDF5 group in which to write
...
...
@@ -46,6 +48,7 @@ __attribute__((always_inline)) INLINE static void cooling_write_flavour(
io_write_attribute_s
(
h_grpsph
,
"Cooling Model"
,
"Constant Lambda"
);
}
#endif
/**
* @brief Calculates du/dt in code units for a particle.
...
...
src/cooling/grackle/cooling.h
View file @
30d2f611
...
...
@@ -42,6 +42,8 @@
#define GRACKLE_NPART 1
#define GRACKLE_RANK 3
#ifdef HAVE_HDF5
/**
* @brief Writes the current model of SPH to the file
* @param h_grpsph The HDF5 group in which to write
...
...
@@ -51,6 +53,7 @@ __attribute__((always_inline)) INLINE static void cooling_write_flavour(
io_write_attribute_s
(
h_grpsph
,
"Cooling Model"
,
"Grackle"
);
}
#endif
/**
* @brief Sets the cooling properties of the (x-)particles to a valid start
...
...
src/cooling/none/cooling.h
View file @
30d2f611
...
...
@@ -37,6 +37,8 @@
#include
"physical_constants.h"
#include
"units.h"
#ifdef HAVE_HDF5
/**
* @brief Writes the current model of SPH to the file
* @param h_grpsph The HDF5 group in which to write
...
...
@@ -46,6 +48,7 @@ __attribute__((always_inline)) INLINE static void cooling_write_flavour(
io_write_attribute_s
(
h_grpsph
,
"Cooling Model"
,
"None"
);
}
#endif
/**
* @brief Apply the cooling function to a particle.
...
...
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