Skip to content
Snippets Groups Projects
Commit 86869b5a authored by lhausamm's avatar lhausamm
Browse files

Improve still of grackle

parent 2c2d1f34
No related branches found
No related tags found
1 merge request!469Update cooling grackle
......@@ -16,6 +16,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
AUTOMAKE_OPTIONS = subdir-objects
# Add the debug flag to the whole thing
AM_CFLAGS = $(HDF5_CPPFLAGS)
......
......@@ -218,7 +218,7 @@ static INLINE void cooling_init_backend(
printf(" CloudyTable = %s\n",cloudytable);
printf(" UVbackground = %d\n",UVbackground);
printf(" GrackleRedshift = %g\n",cooling->GrackleRedshift);
printf(" GrackleHSShieldingDensityThreshold = %g\n",cooling->GrackleHSShieldingDensityThreshold);
printf(" GrackleHSShieldingDensityThreshold = %g atom/cc\n",cooling->GrackleHSShieldingDensityThreshold);
if(wrap_init_cooling(cloudytable,UVbackground,units_density, units_length, units_time, grackle_chemistry) != 1)
......
......@@ -36,6 +36,10 @@ const int grid_rank = 1;
int wrap_init_cooling(char* CloudyTable, int UVbackground, double udensity, double ulength, double utime, int grackle_chemistry){
#ifdef GRACKLE_DEBUG
grackle_verbose = 1;
#endif
message("cooling");
double velocity_units;
// First, set up the units system.
......
......@@ -14,6 +14,7 @@
#define SWIFT_COOLING_GRACKLE_WRAPPER_H
#include "config.h"
#include "error.h"
#include <grackle.h>
#include <math.h>
#include <stdio.h>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment