Skip to content
Snippets Groups Projects
Commit a04cfabc authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Added the star-formation law to the master subgrid model in the configuration script.

parent cfce286d
No related branches found
No related tags found
1 merge request!705Star formation following Schaye08
...@@ -1186,6 +1186,7 @@ with_subgrid_chemistry=none ...@@ -1186,6 +1186,7 @@ with_subgrid_chemistry=none
with_subgrid_tracers=none with_subgrid_tracers=none
with_subgrid_hydro=none with_subgrid_hydro=none
with_subgrid_stars=none with_subgrid_stars=none
with_subgrid_star_formation=none
with_subgrid_feedback=none with_subgrid_feedback=none
case "$with_subgrid" in case "$with_subgrid" in
...@@ -1200,6 +1201,7 @@ case "$with_subgrid" in ...@@ -1200,6 +1201,7 @@ case "$with_subgrid" in
with_subgrid_tracers=none with_subgrid_tracers=none
with_subgrid_hydro=gadget2 with_subgrid_hydro=gadget2
with_subgrid_stars=GEAR with_subgrid_stars=GEAR
with_subgrid_star_formation=none
with_subgrid_feedback=thermal with_subgrid_feedback=thermal
;; ;;
EAGLE) EAGLE)
...@@ -1207,7 +1209,8 @@ case "$with_subgrid" in ...@@ -1207,7 +1209,8 @@ case "$with_subgrid" in
with_subgrid_chemistry=EAGLE with_subgrid_chemistry=EAGLE
with_subgrid_tracers=EAGLE with_subgrid_tracers=EAGLE
with_subgrid_hydro=gadget2 with_subgrid_hydro=gadget2
with_subgrid_stars=none with_subgrid_stars=EAGLE
with_subgrid_star_formation=EAGLE
with_subgrid_feedback=none with_subgrid_feedback=none
;; ;;
*) *)
...@@ -1689,6 +1692,14 @@ AC_ARG_WITH([star-formation], ...@@ -1689,6 +1692,14 @@ AC_ARG_WITH([star-formation],
[with_star_formation="$withval"], [with_star_formation="$withval"],
[with_star_formation="none"] [with_star_formation="none"]
) )
if test "$with_subgrid" != "none"; then
if test "$with_star_formation" != "none"; then
AC_MSG_ERROR([Cannot provide with-subgrid and with-star-formation together])
else
with_star_formation="$with_subgrid_star_formation"
fi
fi
case "$with_star_formation" in case "$with_star_formation" in
none) none)
AC_DEFINE([STAR_FORMATION_NONE], [1], [No star formation]) AC_DEFINE([STAR_FORMATION_NONE], [1], [No star formation])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment