Commit f17e508b authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Added a runtime meta-option for the quick Lyman-alpha model

parent 084d7d34
......@@ -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.
......
......@@ -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:
......
......@@ -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.
......
......@@ -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) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment