Skip to content
Snippets Groups Projects
Commit e9b6f725 authored by Folkert Nobels's avatar Folkert Nobels
Browse files

Add compile options for the EAGLE star model

parent 71e4e51f
Branches
Tags
1 merge request!705Star formation following Schaye08
...@@ -1581,7 +1581,7 @@ esac ...@@ -1581,7 +1581,7 @@ esac
# Stellar model. # Stellar model.
AC_ARG_WITH([stars], AC_ARG_WITH([stars],
[AS_HELP_STRING([--with-stars=<model>], [AS_HELP_STRING([--with-stars=<model>],
[Stellar model to use @<:@none, GEAR, debug default: none@:>@] [Stellar model to use @<:@none, EAGLE, GEAR, debug default: none@:>@]
)], )],
[with_stars="$withval"], [with_stars="$withval"],
[with_stars="none"] [with_stars="none"]
...@@ -1596,10 +1596,14 @@ if test "$with_subgrid" != "none"; then ...@@ -1596,10 +1596,14 @@ if test "$with_subgrid" != "none"; then
fi fi
case "$with_stars" in case "$with_stars" in
EAGLE)
AC_DEFINE([STARS_EAGLE], [1], [EAGLE stellar model])
;;
GEAR) GEAR)
AC_DEFINE([STARS_GEAR], [1], [GEAR stellar model]) AC_DEFINE([STARS_GEAR], [1], [GEAR stellar model])
;; ;;
none) none)
AC_DEFINE([STARS_NONE], [1], [None stellar model])
;; ;;
*) *)
......
...@@ -22,9 +22,18 @@ ...@@ -22,9 +22,18 @@
/* Config parameters. */ /* Config parameters. */
#include "../config.h" #include "../config.h"
/* So far only one model here */ /* Select the correct star model */
/* Straight-forward import */ #if defined(STARS_NONE)
#include "./stars/Default/stars.h" #include "./stars/Default/stars.h"
#include "./stars/Default/stars_iact.h" #include "./stars/Default/stars_iact.h"
#elif defined(STARS_EAGLE)
#include "./stars/EAGLE/stars.h"
#include "./stars/EAGLE/stars_iact.h"
#elif defined(STARS_GEAR)
#include "./stars/GEAR/stars.h"
#include "./stars/GEAR/stars_iact.h"
#else
#error "Invalid choice of star model"
#endif
#endif #endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment