Skip to content
Snippets Groups Projects
Commit 19caca1c authored by lhausamm's avatar lhausamm
Browse files

Manual merging of cooling_grackle (work done by @yvesrevaz and @mculpo)

parent 52223171
No related branches found
No related tags found
1 merge request!469Update cooling grackle
...@@ -27,8 +27,8 @@ AM_LDFLAGS = $(HDF5_LDFLAGS) ...@@ -27,8 +27,8 @@ AM_LDFLAGS = $(HDF5_LDFLAGS)
EXTRA_LIBS = $(HDF5_LIBS) $(FFTW_LIBS) $(PROFILER_LIBS) $(TCMALLOC_LIBS) $(JEMALLOC_LIBS) $(GRACKLE_LIBS) EXTRA_LIBS = $(HDF5_LIBS) $(FFTW_LIBS) $(PROFILER_LIBS) $(TCMALLOC_LIBS) $(JEMALLOC_LIBS) $(GRACKLE_LIBS)
# MPI libraries. # MPI libraries.
MPI_LIBS = $(METIS_LIBS) $(MPI_THREAD_LIBS) MPI_LIBS = $(METIS_LIBS) $(GRACKLE_LIBS) $(MPI_THREAD_LIBS)
MPI_FLAGS = -DWITH_MPI $(METIS_INCS) MPI_FLAGS = -DWITH_MPI $(METIS_INCS) $(GRACKLE_INCS)
# Programs. # Programs.
bin_PROGRAMS = swift bin_PROGRAMS = swift
......
...@@ -13,12 +13,12 @@ ...@@ -13,12 +13,12 @@
#ifndef SWIFT_COOLING_GRACKLE_WRAPPER_H #ifndef SWIFT_COOLING_GRACKLE_WRAPPER_H
#define SWIFT_COOLING_GRACKLE_WRAPPER_H #define SWIFT_COOLING_GRACKLE_WRAPPER_H
#include "../../../config.h"
#include <grackle.h> #include <grackle.h>
#include <math.h> #include <math.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include "config.h" #include "config.h"
#include "error.h" #include "error.h"
......
...@@ -45,6 +45,9 @@ struct xpart { ...@@ -45,6 +45,9 @@ struct xpart {
/* Velocity at the last full step. */ /* Velocity at the last full step. */
float v_full[3]; float v_full[3];
/* Radiated energy */
float e_radcool;
/* Entropy at the last full step. */ /* Entropy at the last full step. */
float entropy_full; float entropy_full;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment