From b829c8ec13b91b0fa576dcedb9dbc98ad67ce20c Mon Sep 17 00:00:00 2001 From: James Willis <james.s.willis@durham.ac.uk> Date: Tue, 31 Oct 2017 14:32:09 +0000 Subject: [PATCH] Only enable interaction debugging when gadget2 hydro scheme is being used. --- configure.ac | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/configure.ac b/configure.ac index 997ac86967..c0bb9e7a2b 100644 --- a/configure.ac +++ b/configure.ac @@ -226,18 +226,6 @@ if test "$enable_debugging_checks" = "yes"; then AC_DEFINE([SWIFT_DEBUG_CHECKS],1,[Enable expensive debugging]) fi -# Check if debugging interactions is switched on. -AC_ARG_ENABLE([debug-interactions], - [AS_HELP_STRING([--enable-debug-interactions], - [Activate interaction debugging @<:@yes/no@:>@] - )], - [enable_debug_interactions="$enableval"], - [enable_debug_interactions="no"] -) -if test "$enable_debug_interactions" = "yes"; then - AC_DEFINE([DEBUG_INTERACTIONS_SPH],1,[Enable interaction debugging]) -fi - # Check whether we want to default to naive cell interactions AC_ARG_ENABLE([naive-interactions], [AS_HELP_STRING([--enable-naive-interactions], @@ -681,6 +669,22 @@ case "$with_hydro" in ;; esac +# Check if debugging interactions is switched on. +AC_ARG_ENABLE([debug-interactions], + [AS_HELP_STRING([--enable-debug-interactions], + [Activate interaction debugging @<:@yes/no@:>@] + )], + [enable_debug_interactions="$enableval"], + [enable_debug_interactions="no"] +) +if test "$enable_debug_interactions" = "yes"; then + if test "$with_hydro" = "gadget2"; then + AC_DEFINE([DEBUG_INTERACTIONS_SPH],1,[Enable interaction debugging]) + else + [enable_debug_interactions="no (only available for gadget2 hydro scheme)"] + fi +fi + # SPH Kernel function AC_ARG_WITH([kernel], [AS_HELP_STRING([--with-kernel=<kernel>], -- GitLab