From e2a6cf76da153ca3e50a37e323b4a8e949bd9e0e Mon Sep 17 00:00:00 2001 From: Folkert Nobels <nobels@strw.leidenuniv.nl> Date: Thu, 29 Nov 2018 11:48:48 +0100 Subject: [PATCH] Add star formation recipy option to the configuration file --- configure.ac | 30 +++++++++++++++++++++++++----- 1 file changed, 25 insertions(+), 5 deletions(-) diff --git a/configure.ac b/configure.ac index ac2c07f010..d57f696e9c 100644 --- a/configure.ac +++ b/configure.ac @@ -1677,6 +1677,26 @@ case "$with_potential" in ;; esac +# Star formation +AC_ARG_WITH([star-formation], + [AS_HELP_STRING([--with-star-formation=<sfm>], + [star formation @<:@none, schaye08, default: none@:>@] + )], + [with_star_formation="$withval"], + [with_star_formation="none"] +) +case "$with_star_formation" in + none) + AC_DEFINE([STAR_FORMATION_NONE], [1], [No star formation]) + ;; + schaye08) + AC_DEFINE([STAR_FORMATION_SCHAYE], [1], [Schaye and Dalla Vecchia (2008) star formation]) + ;; + *) + AC_MSG_ERROR([Unknown star formation model]) + ;; +esac + # Gravity multipole order AC_ARG_WITH([multipole-order], [AS_HELP_STRING([--with-multipole-order=<order>], @@ -1768,11 +1788,11 @@ AC_MSG_RESULT([ Make gravity glass : $gravity_glass_making External potential : $with_potential - Cooling function : $with_cooling - Chemistry : $with_chemistry - Tracers : $with_tracers - Stellar model : $with_stars - Feedback model : $with_feedback + Cooling function : $with_cooling + Chemistry : $with_chemistry + Stellar model : $with_stars + Star formation model : $with_star_formation + Feedback model : $with_feedback Individual timers : $enable_timers Task debugging : $enable_task_debugging -- GitLab