Skip to content
Snippets Groups Projects
Commit c6b93b8d authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Make the multi-softening scheme the default gravity scheme.

parent 97919494
No related branches found
No related tags found
1 merge request!884Support for multiple softening lengths in the gravity solver
...@@ -1394,27 +1394,21 @@ AM_CONDITIONAL([HAVESTANDALONEFOF],[test $enable_standalone_fof = "yes"]) ...@@ -1394,27 +1394,21 @@ AM_CONDITIONAL([HAVESTANDALONEFOF],[test $enable_standalone_fof = "yes"])
# Gravity scheme. # Gravity scheme.
AC_ARG_WITH([gravity], AC_ARG_WITH([gravity],
[AS_HELP_STRING([--with-gravity=<scheme>], [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="$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 case "$with_gravity" in
with-potential) with-potential)
AC_DEFINE([POTENTIAL_GRAVITY], [1], [Gravity scheme with potential calculation]) AC_DEFINE([POTENTIAL_GRAVITY], [1], [Basic gravity scheme with potential calculation])
;; ;;
with-multi-softening) with-multi-softening)
AC_DEFINE([MULTI_SOFTENING_GRAVITY], [1], [Gravity scheme with per-particle softening value calculated from their mass]) AC_DEFINE([MULTI_SOFTENING_GRAVITY], [1], [Gravity scheme with per-particle type softening value and background particles])
;; ;;
default) basic)
AC_DEFINE([DEFAULT_GRAVITY], [1], [Default gravity scheme]) AC_DEFINE([DEFAULT_GRAVITY], [1], [Basic gravity scheme])
;; ;;
*) *)
AC_MSG_ERROR([Unknown gravity scheme: $with_gravity]) AC_MSG_ERROR([Unknown gravity scheme: $with_gravity])
...@@ -1989,13 +1983,6 @@ AC_DEFINE_UNQUOTED([SELF_GRAVITY_MULTIPOLE_ORDER], [$with_multipole_order], [Mul ...@@ -1989,13 +1983,6 @@ AC_DEFINE_UNQUOTED([SELF_GRAVITY_MULTIPOLE_ORDER], [$with_multipole_order], [Mul
AC_PATH_PROG([GIT_CMD], [git]) AC_PATH_PROG([GIT_CMD], [git])
AC_SUBST([GIT_CMD]) 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. # Make the documentation. Add conditional to handle disable option.
DX_INIT_DOXYGEN(libswift,doc/Doxyfile,doc/) DX_INIT_DOXYGEN(libswift,doc/Doxyfile,doc/)
AM_CONDITIONAL([HAVE_DOXYGEN], [test "$ac_cv_path_ac_pt_DX_DOXYGEN" != ""]) AM_CONDITIONAL([HAVE_DOXYGEN], [test "$ac_cv_path_ac_pt_DX_DOXYGEN" != ""])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment