Skip to content
Snippets Groups Projects
Commit 2c2d1f34 authored by lhausamm's avatar lhausamm
Browse files

Now code compiles

parent d0236bd7
No related branches found
No related tags found
1 merge request!469Update cooling grackle
...@@ -24,11 +24,11 @@ AM_CFLAGS = -I$(top_srcdir)/src $(HDF5_CPPFLAGS) ...@@ -24,11 +24,11 @@ AM_CFLAGS = -I$(top_srcdir)/src $(HDF5_CPPFLAGS)
AM_LDFLAGS = $(HDF5_LDFLAGS) AM_LDFLAGS = $(HDF5_LDFLAGS)
# Extra libraries. # Extra libraries.
EXTRA_LIBS = $(HDF5_LIBS) $(FFTW_LIBS) $(PROFILER_LIBS) $(TCMALLOC_LIBS) $(JEMALLOC_LIBS) EXTRA_LIBS = $(HDF5_LIBS) $(FFTW_LIBS) $(PROFILER_LIBS) $(TCMALLOC_LIBS) $(JEMALLOC_LIBS) $(GRACKLE_LIBS)
# MPI libraries. # MPI libraries.
MPI_LIBS = $(METIS_LIBS) $(GRACKLE_LIBS) $(MPI_THREAD_LIBS) MPI_LIBS = $(METIS_LIBS) $(MPI_THREAD_LIBS)
MPI_FLAGS = -DWITH_MPI $(METIS_INCS) $(GRACKLE_INCS) MPI_FLAGS = -DWITH_MPI $(METIS_INCS)
# Programs. # Programs.
bin_PROGRAMS = swift bin_PROGRAMS = swift
......
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
AUTOMAKE_OPTIONS = subdir-objects
# Add the debug flag to the whole thing # Add the debug flag to the whole thing
AM_CFLAGS = $(HDF5_CPPFLAGS) AM_CFLAGS = $(HDF5_CPPFLAGS)
...@@ -25,11 +26,11 @@ AM_LDFLAGS = $(HDF5_LDFLAGS) $(FFTW_LIBS) -version-info 0:0:0 ...@@ -25,11 +26,11 @@ AM_LDFLAGS = $(HDF5_LDFLAGS) $(FFTW_LIBS) -version-info 0:0:0
GIT_CMD = @GIT_CMD@ GIT_CMD = @GIT_CMD@
# Additional dependencies for shared libraries. # Additional dependencies for shared libraries.
EXTRA_LIBS = $(HDF5_LIBS) $(PROFILER_LIBS) $(TCMALLOC_LIBS) $(JEMALLOC_LIBS) EXTRA_LIBS = $(HDF5_LIBS) $(PROFILER_LIBS) $(TCMALLOC_LIBS) $(JEMALLOC_LIBS) $(GRACKLE_LIB)
# MPI libraries. # MPI libraries.
MPI_LIBS = $(METIS_LIBS) $(GRACKLE_LIB) $(MPI_THREAD_LIBS) MPI_LIBS = $(METIS_LIBS) $(GRACKLE_LIB) $(MPI_THREAD_LIBS)
MPI_FLAGS = -DWITH_MPI $(METIS_INCS) $(GRACKLE_LIB) MPI_FLAGS = -DWITH_MPI $(METIS_INCS)
# Build the libswiftsim library # Build the libswiftsim library
lib_LTLIBRARIES = libswiftsim.la lib_LTLIBRARIES = libswiftsim.la
...@@ -57,7 +58,8 @@ AM_SOURCES = space.c runner.c queue.c task.c cell.c engine.c \ ...@@ -57,7 +58,8 @@ AM_SOURCES = space.c runner.c queue.c task.c cell.c engine.c \
runner_doiact_fft.c threadpool.c cooling.c sourceterms.c \ runner_doiact_fft.c threadpool.c cooling.c sourceterms.c \
statistics.c runner_doiact_vec.c profiler.c dump.c logger.c \ statistics.c runner_doiact_vec.c profiler.c dump.c logger.c \
part_type.c xmf.c gravity_properties.c gravity.c \ part_type.c xmf.c gravity_properties.c gravity.c \
collectgroup.c hydro_space.c equation_of_state.c collectgroup.c hydro_space.c equation_of_state.c \
cooling/grackle/grackle_wrapper.c
# Include files for distribution, not installation. # Include files for distribution, not installation.
nobase_noinst_HEADERS = align.h approx_math.h atomic.h barrier.h cycle.h error.h inline.h kernel_hydro.h kernel_gravity.h \ nobase_noinst_HEADERS = align.h approx_math.h atomic.h barrier.h cycle.h error.h inline.h kernel_hydro.h kernel_gravity.h \
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
************************************************************************/ ************************************************************************/
#include <cooling/grackle/grackle_wrapper.h> #include "grackle_wrapper.h"
#define GRACKLE_DEBUG #define GRACKLE_DEBUG
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
#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 "config.h"
#include <grackle.h> #include <grackle.h>
#include <math.h> #include <math.h>
#include <stdio.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