Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SWIFT
SWIFTsim
Commits
f17e508b
Commit
f17e508b
authored
Mar 07, 2020
by
Matthieu Schaller
Browse files
Added a runtime meta-option for the quick Lyman-alpha model
parent
084d7d34
Changes
4
Hide whitespace changes
Inline
Side-by-side
README
View file @
f17e508b
...
...
@@ -52,7 +52,10 @@ Parameters:
--limiter --sync --self-gravity --stars
--star-formation --cooling --feedback
--black-holes --fof.
--quick-lyman-alpha Run with all the options needed for the
quick Lyman-alpha model. This is equivalent
to --hydro --self-gravity --stars --star-formation
--cooling.
Control options:
-a, --pin Pin runners using processor affinity.
...
...
README.md
View file @
f17e508b
...
...
@@ -103,6 +103,10 @@ Parameters:
--limiter --sync --self-gravity --stars
--star-formation --cooling --feedback
--black-holes --fof.
--quick-lyman-alpha Run with all the options needed for the
quick Lyman-alpha model. This is equivalent
to --hydro --self-gravity --stars --star-formation
--cooling.
Control options:
...
...
doc/RTD/source/CommandLineOptions/index.rst
View file @
f17e508b
...
...
@@ -49,7 +49,10 @@ can be found by typing ``./swift -h``:
--limiter --sync --self-gravity --stars
--star-formation --cooling --feedback
--black-holes --fof.
--quick-lyman-alpha Run with all the options needed for the
quick Lyman-alpha model. This is equivalent
to --hydro --self-gravity --stars --star-formation
--cooling.
Control options:
-a, --pin Pin runners using processor affinity.
...
...
examples/main.c
View file @
f17e508b
...
...
@@ -171,6 +171,7 @@ int main(int argc, char *argv[]) {
int
with_structure_finding
=
0
;
int
with_logger
=
0
;
int
with_eagle
=
0
;
int
with_qla
=
0
;
int
verbose
=
0
;
int
nr_threads
=
1
;
int
with_verbose_timers
=
0
;
...
...
@@ -238,6 +239,11 @@ int main(int argc, char *argv[]) {
"equivalent to --hydro --limiter --sync --self-gravity --stars "
"--star-formation --cooling --feedback --black-holes --fof."
,
NULL
,
0
,
0
),
OPT_BOOLEAN
(
0
,
"quick-lyman-alpha"
,
&
with_qla
,
"Run with all the options needed for the quick Lyman-alpha "
"model. This is equivalent to --hydro --self-gravity --stars "
"--star-formation --cooling."
,
NULL
,
0
,
0
),
OPT_GROUP
(
" Control options:
\n
"
),
OPT_BOOLEAN
(
'a'
,
"pin"
,
&
with_aff
,
...
...
@@ -309,6 +315,13 @@ int main(int argc, char *argv[]) {
with_black_holes
=
1
;
with_fof
=
1
;
}
if
(
with_qla
)
{
with_hydro
=
1
;
with_self_gravity
=
1
;
with_stars
=
1
;
with_star_formation
=
1
;
with_cooling
=
1
;
}
/* Write output parameter file */
if
(
myrank
==
0
&&
output_parameters_filename
!=
NULL
)
{
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment