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
7b77bb71
Commit
7b77bb71
authored
7 years ago
by
lhausamm
Browse files
Options
Downloads
Patches
Plain Diff
add master option
parent
2643736b
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!532
Add master option for subgrid model
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
configure.ac
+32
-0
32 additions, 0 deletions
configure.ac
with
32 additions
and
0 deletions
configure.ac
+
32
−
0
View file @
7b77bb71
...
@@ -41,6 +41,8 @@ AX_CHECK_ENABLE_DEBUG
...
@@ -41,6 +41,8 @@ AX_CHECK_ENABLE_DEBUG
AC_PROG_CC
AC_PROG_CC
AM_PROG_CC_C_O
AM_PROG_CC_C_O
# If debug is selected then we also define SWIFT_DEVELOP_MODE to control
# If debug is selected then we also define SWIFT_DEVELOP_MODE to control
# any developer code options.
# any developer code options.
if test "x$ax_enable_debug" != "xno"; then
if test "x$ax_enable_debug" != "xno"; then
...
@@ -1056,6 +1058,36 @@ AC_ARG_WITH([multipole-order],
...
@@ -1056,6 +1058,36 @@ AC_ARG_WITH([multipole-order],
)
)
AC_DEFINE_UNQUOTED([SELF_GRAVITY_MULTIPOLE_ORDER], [$with_multipole_order], [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.
# Check for git, needed for revision stamps.
AC_PATH_PROG([GIT_CMD], [git])
AC_PATH_PROG([GIT_CMD], [git])
...
...
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