Skip to content
Snippets Groups Projects
Commit b829c8ec authored by James Willis's avatar James Willis
Browse files

Only enable interaction debugging when gadget2 hydro scheme is being used.

parent c06e2249
No related branches found
No related tags found
1 merge request!443Debug interactions
...@@ -226,18 +226,6 @@ if test "$enable_debugging_checks" = "yes"; then ...@@ -226,18 +226,6 @@ if test "$enable_debugging_checks" = "yes"; then
AC_DEFINE([SWIFT_DEBUG_CHECKS],1,[Enable expensive debugging]) AC_DEFINE([SWIFT_DEBUG_CHECKS],1,[Enable expensive debugging])
fi 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 # Check whether we want to default to naive cell interactions
AC_ARG_ENABLE([naive-interactions], AC_ARG_ENABLE([naive-interactions],
[AS_HELP_STRING([--enable-naive-interactions], [AS_HELP_STRING([--enable-naive-interactions],
...@@ -681,6 +669,22 @@ case "$with_hydro" in ...@@ -681,6 +669,22 @@ case "$with_hydro" in
;; ;;
esac 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 # SPH Kernel function
AC_ARG_WITH([kernel], AC_ARG_WITH([kernel],
[AS_HELP_STRING([--with-kernel=<kernel>], [AS_HELP_STRING([--with-kernel=<kernel>],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment