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
938aefbb
Commit
938aefbb
authored
6 years ago
by
Peter W. Draper
Browse files
Options
Downloads
Patches
Plain Diff
Move drift-all into simulation usage section
parent
3140b7de
No related branches found
No related tags found
1 merge request
!689
Add GNU style long command line arguments
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
examples/main.c
+11
-12
11 additions, 12 deletions
examples/main.c
with
11 additions
and
12 deletions
examples/main.c
+
11
−
12
View file @
938aefbb
...
...
@@ -181,6 +181,11 @@ int main(int argc, char *argv[]) {
"Run with cosmological time integration."
,
NULL
,
0
,
0
),
OPT_BOOLEAN
(
'C'
,
"cooling"
,
&
with_cooling
,
"Run with cooling"
,
NULL
,
0
,
0
),
OPT_BOOLEAN
(
'D'
,
"drift-all"
,
&
with_drift_all
,
"Always drift all particles even the ones far from active "
"particles. This emulates Gadget-[23] and GIZMO's default "
"behaviours."
,
NULL
,
0
,
0
),
OPT_BOOLEAN
(
'F'
,
"sourceterms"
,
&
with_sourceterms
,
""
,
NULL
,
0
,
0
),
OPT_BOOLEAN
(
'g'
,
"external-gravity"
,
&
with_external_gravity
,
"Run with an external gravitational potential."
,
NULL
,
0
,
0
),
...
...
@@ -203,11 +208,6 @@ int main(int argc, char *argv[]) {
"time integration. Checks the validity of parameters and IC "
"files as well as memory limits."
,
NULL
,
0
,
0
),
OPT_BOOLEAN
(
'D'
,
"drift-all"
,
&
with_drift_all
,
"Always drift all "
"particles even the ones far from active particles. This "
"emulates Gadget-[23] and GIZMO's default behaviours."
,
NULL
,
0
,
0
),
OPT_BOOLEAN
(
'e'
,
"fpe"
,
&
with_fp_exceptions
,
"Enable floating-point exceptions (debugging mode)."
,
NULL
,
0
,
0
),
...
...
@@ -216,21 +216,20 @@ int main(int argc, char *argv[]) {
"frequency (Hz) to be used for time measurements."
,
NULL
,
0
,
0
),
OPT_INTEGER
(
'n'
,
"steps"
,
&
nsteps
,
"Execute a fixed number of time "
"
steps. When unset use the
time_end parameter to stop."
,
"Execute a fixed number of time
steps. When unset use the
"
"time_end parameter to stop."
,
NULL
,
0
,
0
),
OPT_STRING
(
'o'
,
"output-params"
,
&
output_parameters_filename
,
"Generate a default output parameter file."
,
NULL
,
0
,
0
),
OPT_STRING
(
'P'
,
"param"
,
&
buffer
,
"Set parameter value, "
"overwriting a value read from the parameter file. Can be "
"used more than once {sec:par:value}."
,
"Set parameter value, overiding the value read from the "
"parameter file. Can be used more than once {sec:par:value}."
,
handle_cmdparam
,
(
intptr_t
)
&
cmdps
,
0
),
OPT_BOOLEAN
(
'r'
,
"restart"
,
&
restart
,
"Continue using restart files."
,
NULL
,
0
,
0
),
OPT_INTEGER
(
't'
,
"threads"
,
&
nr_threads
,
"The number of threads to "
"
use on each MPI rank. Defaults to
1 if not specified."
,
"The number of threads to
use on each MPI rank. Defaults to
"
"1 if not specified."
,
NULL
,
0
,
0
),
OPT_INTEGER
(
'T'
,
"timers"
,
&
with_verbose_timers
,
"Print timers every time-step."
,
NULL
,
0
,
0
),
...
...
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