Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SWIFTsim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SWIFT
SWIFTsim
Commits
b829c8ec
Commit
b829c8ec
authored
7 years ago
by
James Willis
Browse files
Options
Downloads
Patches
Plain Diff
Only enable interaction debugging when gadget2 hydro scheme is being used.
parent
c06e2249
No related branches found
No related tags found
1 merge request
!443
Debug interactions
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
configure.ac
+16
-12
16 additions, 12 deletions
configure.ac
with
16 additions
and
12 deletions
configure.ac
+
16
−
12
View file @
b829c8ec
...
@@ -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>],
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment