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
c6b93b8d
Commit
c6b93b8d
authored
5 years ago
by
Matthieu Schaller
Browse files
Options
Downloads
Patches
Plain Diff
Make the multi-softening scheme the default gravity scheme.
parent
97919494
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!884
Support for multiple softening lengths in the gravity solver
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
configure.ac
+6
-19
6 additions, 19 deletions
configure.ac
with
6 additions
and
19 deletions
configure.ac
+
6
−
19
View file @
c6b93b8d
...
...
@@ -1394,27 +1394,21 @@ AM_CONDITIONAL([HAVESTANDALONEFOF],[test $enable_standalone_fof = "yes"])
# Gravity scheme.
AC_ARG_WITH([gravity],
[AS_HELP_STRING([--with-gravity=<scheme>],
[Gravity scheme to use @<:@
default
, with-potential, with-multi-softening default:
default
@:>@]
[Gravity scheme to use @<:@
basic
, with-potential, with-multi-softening default:
with-multi-softening
@:>@]
)],
[with_gravity="$withval"],
[with_gravity="
default
"]
[with_gravity="
with-multi-softening
"]
)
if test "$with_subgrid" = "EAGLE"; then
if test "$with_gravity" = "default"; then
with_gravity="with-potential"
fi
fi
case "$with_gravity" in
with-potential)
AC_DEFINE([POTENTIAL_GRAVITY], [1], [
G
ravity scheme with potential calculation])
AC_DEFINE([POTENTIAL_GRAVITY], [1], [
Basic g
ravity scheme with potential calculation])
;;
with-multi-softening)
AC_DEFINE([MULTI_SOFTENING_GRAVITY], [1], [Gravity scheme with per-particle softening value
calculated from their mas
s])
AC_DEFINE([MULTI_SOFTENING_GRAVITY], [1], [Gravity scheme with per-particle
type
softening value
and background particle
s])
;;
default
)
AC_DEFINE([DEFAULT_GRAVITY], [1], [
Default
gravity scheme])
basic
)
AC_DEFINE([DEFAULT_GRAVITY], [1], [
Basic
gravity scheme])
;;
*)
AC_MSG_ERROR([Unknown gravity scheme: $with_gravity])
...
...
@@ -1989,13 +1983,6 @@ AC_DEFINE_UNQUOTED([SELF_GRAVITY_MULTIPOLE_ORDER], [$with_multipole_order], [Mul
AC_PATH_PROG([GIT_CMD], [git])
AC_SUBST([GIT_CMD])
# Check that the gravity model is compatible with the subgrid
#if test $with_black_holes = "EAGLE"; then
# if test $with_gravity != "with-potential"; then
# AC_MSG_ERROR([The EAGLE BH model needs the gravity scheme to provide potentials. The code must be compile with --with-gravity=with-potential.])
# fi
#fi
# Make the documentation. Add conditional to handle disable option.
DX_INIT_DOXYGEN(libswift,doc/Doxyfile,doc/)
AM_CONDITIONAL([HAVE_DOXYGEN], [test "$ac_cv_path_ac_pt_DX_DOXYGEN" != ""])
...
...
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