Commit cef4d573 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Merge branch 'rt-configure-flags' into 'master'

added configuration flags for radiative transfer

See merge request !1143
parents b91439d9 baa3b2ec
...@@ -2253,6 +2253,31 @@ AC_ARG_WITH([multipole-order], ...@@ -2253,6 +2253,31 @@ 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])
# Radiative transfer scheme
AC_ARG_WITH([rt],
[AS_HELP_STRING([--with-rt=<scheme>],
[Radiative transfer scheme to use @<:@none, M1closure, debug default: none@:>@]
)],
[with_rt="$withval"],
[with_rt="none"]
)
case "$with_rt" in
none)
AC_DEFINE([RT_NONE], [1], [No radiative transfer scheme])
;;
M1closure)
AC_DEFINE([RT_M1], [1], [M1 closure scheme])
;;
debug)
AC_DEFINE([RT_DEBUG], [1], [debugging scheme])
;;
*)
AC_MSG_ERROR([Unknown radiative transfer scheme: $with_rt])
;;
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])
AC_SUBST([GIT_CMD]) AC_SUBST([GIT_CMD])
...@@ -2360,6 +2385,7 @@ AC_MSG_RESULT([ ...@@ -2360,6 +2385,7 @@ AC_MSG_RESULT([
Star feedback model : $with_feedback Star feedback model : $with_feedback
Sink particle model : $with_sink Sink particle model : $with_sink
Black holes model : $with_black_holes Black holes model : $with_black_holes
Radiative transfer : $with_rt
Atomic operations in tasks : $enable_atomics_within_tasks Atomic operations in tasks : $enable_atomics_within_tasks
Individual timers : $enable_timers Individual timers : $enable_timers
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment