Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SWIFT
SWIFTsim
Commits
7b77bb71
Commit
7b77bb71
authored
Apr 19, 2018
by
lhausamm
Browse files
add master option
parent
2643736b
Changes
1
Hide whitespace changes
Inline
Side-by-side
configure.ac
View file @
7b77bb71
...
...
@@ -41,6 +41,8 @@ AX_CHECK_ENABLE_DEBUG
AC_PROG_CC
AM_PROG_CC_C_O
# If debug is selected then we also define SWIFT_DEVELOP_MODE to control
# any developer code options.
if test "x$ax_enable_debug" != "xno"; then
...
...
@@ -1056,6 +1058,36 @@ AC_ARG_WITH([multipole-order],
)
AC_DEFINE_UNQUOTED([SELF_GRAVITY_MULTIPOLE_ORDER], [$with_multipole_order], [Multipole order])
# Subgrid options
AC_ARG_WITH([subgrid],
[AS_HELP_STRING([--with-subgrid=<subgrid>],
[Name of the subgrid methods. Inexperiented user should start from here @<:@none, gear default: none@:>@]
)],
[with_subgrid="$withval"],
[with_subgrid=none]
)
AC_DEFUN([SWIFT_SET_OPTION], [
if test "$$1" != "$3"; then
AC_MSG_ERROR([Cannot provide together '$1' and 'with-subrid'])
else
$1=$2
fi
])
case "$with_subgrid" in
none)
;;
gear)
SWIFT_SET_OPTION(with_cooling, grackle3, none)
SWIFT_SET_OPTION(with_chemistry, gear, none)
SWIFT_SET_OPTION(with_hydro, gadget2, gadget2)
;;
*)
AC_MSG_ERROR([Unknown subgrid: $with_subgrid])
;;
esac
# Check for git, needed for revision stamps.
AC_PATH_PROG([GIT_CMD], [git])
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment