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

Prevent users from compiling the EAGLE BH model without the gravity scheme...

Prevent users from compiling the EAGLE BH model without the gravity scheme that computes potentials.
parent 1f117a45
No related branches found
No related tags found
1 merge request!876Black holes repositioning
......@@ -1400,6 +1400,12 @@ AC_ARG_WITH([gravity],
[with_gravity="default"]
)
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], [Gravity scheme with potential calculation])
......@@ -1961,6 +1967,13 @@ 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" != ""])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment