diff --git a/configure.ac b/configure.ac index 259d92ad92fec0c84b76b66819925d8dbef90a57..cae9bb28c83013894715adf58099293b7bdd3963 100644 --- a/configure.ac +++ b/configure.ac @@ -2253,6 +2253,31 @@ AC_ARG_WITH([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. AC_PATH_PROG([GIT_CMD], [git]) AC_SUBST([GIT_CMD]) @@ -2360,6 +2385,7 @@ AC_MSG_RESULT([ Star feedback model : $with_feedback Sink particle model : $with_sink Black holes model : $with_black_holes + Radiative transfer : $with_rt Atomic operations in tasks : $enable_atomics_within_tasks Individual timers : $enable_timers