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
a04cfabc
Commit
a04cfabc
authored
6 years ago
by
Matthieu Schaller
Browse files
Options
Downloads
Patches
Plain Diff
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
!705
Star formation following Schaye08
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
configure.ac
+12
-1
12 additions, 1 deletion
configure.ac
with
12 additions
and
1 deletion
configure.ac
+
12
−
1
View file @
a04cfabc
...
@@ -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])
...
...
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