Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SWIFTsim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SWIFT
SWIFTsim
Commits
e9b6f725
Commit
e9b6f725
authored
6 years ago
by
Folkert Nobels
Browse files
Options
Downloads
Patches
Plain Diff
Add compile options for the EAGLE star model
parent
71e4e51f
No related branches found
No related tags found
1 merge request
!705
Star formation following Schaye08
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
configure.ac
+5
-1
5 additions, 1 deletion
configure.ac
src/stars.h
+11
-2
11 additions, 2 deletions
src/stars.h
with
16 additions
and
3 deletions
configure.ac
+
5
−
1
View file @
e9b6f725
...
...
@@ -1581,7 +1581,7 @@ esac
# Stellar model.
AC_ARG_WITH([stars],
[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="none"]
...
...
@@ -1596,10 +1596,14 @@ if test "$with_subgrid" != "none"; then
fi
case "$with_stars" in
EAGLE)
AC_DEFINE([STARS_EAGLE], [1], [EAGLE stellar model])
;;
GEAR)
AC_DEFINE([STARS_GEAR], [1], [GEAR stellar model])
;;
none)
AC_DEFINE([STARS_NONE], [1], [None stellar model])
;;
*)
...
...
This diff is collapsed.
Click to expand it.
src/stars.h
+
11
−
2
View file @
e9b6f725
...
...
@@ -22,9 +22,18 @@
/* Config parameters. */
#include
"../config.h"
/* S
o far only one model here
*/
/* Straight-forward import */
/* S
elect the correct star model
*/
#if defined(STARS_NONE)
#include
"./stars/Default/stars.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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment