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
3046b295
Commit
3046b295
authored
8 years ago
by
Matthieu Schaller
Browse files
Options
Downloads
Patches
Plain Diff
Updated README and help message to account for latest changes.
parent
7c7ac4d8
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README
+13
-12
13 additions, 12 deletions
README
examples/main.c
+17
-14
17 additions, 14 deletions
examples/main.c
with
30 additions
and
26 deletions
README
+
13
−
12
View file @
3046b295
...
...
@@ -15,25 +15,26 @@ Usage: swift [OPTION]... PARAMFILE
swift_mpi [OPTION]... PARAMFILE
Valid options are:
-a Pin runners using processor affinity
-c Run with cosmological time integration
-C Run with cooling
-a Pin runners using processor affinity
.
-c Run with cosmological time integration
.
-C Run with cooling
.
-d Dry run. Read the parameter file, allocate memory but does not read
the particles from ICs and exit before the start of time integration.
Allows user to check validy of parameter and IC files as well as memory limits.
-D Always drift all particles even the ones far from active particles.
-e Enable floating-point exceptions (debugging mode)
-f {int} Overwrite the CPU frequency (Hz) to be used for time measurements
-g Run with an external gravitational potential
-G Run with self-gravity
-D Always drift all particles even the ones far from active particles. This emulates
Gadget-[23] and GIZMO's default behaviours.
-e Enable floating-point exceptions (debugging mode).
-f {int} Overwrite the CPU frequency (Hz) to be used for time measurements.
-g Run with an external gravitational potential.
-G Run with self-gravity.
-n {int} Execute a fixed number of time steps. When unset use the time_end parameter to stop.
-s Run with
SPH
-S Run with stars
-s Run with
hydrodynamics.
-S Run with stars
.
-t {int} The number of threads to use on each MPI rank. Defaults to 1 if not specified.
-v [12] Increase the level of verbosity
1: MPI-rank 0 writes
2: All MPI-ranks write
-y {int} Time-step frequency at which task graphs are dumped
-h Print this help message and exit
-y {int} Time-step frequency at which task graphs are dumped
.
-h Print this help message and exit
.
See the file examples/parameter_example.yml for an example of parameter file.
This diff is collapsed.
Click to expand it.
examples/main.c
+
17
−
14
View file @
3046b295
...
...
@@ -57,9 +57,9 @@ void print_help_message() {
printf
(
" swift_mpi [OPTION]... PARAMFILE
\n\n
"
);
printf
(
"Valid options are:
\n
"
);
printf
(
" %2s %8s %s
\n
"
,
"-a"
,
""
,
"Pin runners using processor affinity"
);
printf
(
" %2s %8s %s
\n
"
,
"-c"
,
""
,
"Run with cosmological time integration"
);
printf
(
" %2s %8s %s
\n
"
,
"-C"
,
""
,
"Run with cooling"
);
printf
(
" %2s %8s %s
\n
"
,
"-a"
,
""
,
"Pin runners using processor affinity
.
"
);
printf
(
" %2s %8s %s
\n
"
,
"-c"
,
""
,
"Run with cosmological time integration
.
"
);
printf
(
" %2s %8s %s
\n
"
,
"-C"
,
""
,
"Run with cooling
.
"
);
printf
(
" %2s %8s %s
\n
"
,
"-d"
,
""
,
"Dry run. Read the parameter file, allocate memory but does not read "
);
...
...
@@ -70,29 +70,32 @@ void print_help_message() {
"Allows user to check validy of parameter and IC files as well as "
"memory limits."
);
printf
(
" %2s %8s %s
\n
"
,
"-D"
,
""
,
"Always drift all particles even the ones far from active particles."
);
"Always drift all particles even the ones far from active particles. "
"This emulates"
);
printf
(
" %2s %8s %s
\n
"
,
""
,
""
,
"Gadget-[23] and GIZMO's default behaviours."
);
printf
(
" %2s %8s %s
\n
"
,
"-e"
,
""
,
"Enable floating-point exceptions (debugging mode)"
);
"Enable floating-point exceptions (debugging mode)
.
"
);
printf
(
" %2s %8s %s
\n
"
,
"-f"
,
"{int}"
,
"Overwrite the CPU frequency (Hz) to be used for time measurements"
);
"Overwrite the CPU frequency (Hz) to be used for time measurements
.
"
);
printf
(
" %2s %8s %s
\n
"
,
"-g"
,
""
,
"Run with an external gravitational potential"
);
printf
(
" %2s %8s %s
\n
"
,
"-F"
,
""
,
"Run with feedback
"
);
printf
(
" %2s %8s %s
\n
"
,
"-G"
,
""
,
"Run with self-gravity"
);
"Run with an external gravitational potential
.
"
);
printf
(
" %2s %8s %s
\n
"
,
"-F"
,
""
,
"Run with feedback
.
"
);
printf
(
" %2s %8s %s
\n
"
,
"-G"
,
""
,
"Run with self-gravity
.
"
);
printf
(
" %2s %8s %s
\n
"
,
"-n"
,
"{int}"
,
"Execute a fixed number of time steps. When unset use the time_end "
"parameter to stop."
);
printf
(
" %2s %8s %s
\n
"
,
"-s"
,
""
,
"Run with
SPH
"
);
printf
(
" %2s %8s %s
\n
"
,
"-S"
,
""
,
"Run with stars"
);
printf
(
" %2s %8s %s
\n
"
,
"-s"
,
""
,
"Run with
hydrodynamics.
"
);
printf
(
" %2s %8s %s
\n
"
,
"-S"
,
""
,
"Run with stars
.
"
);
printf
(
" %2s %8s %s
\n
"
,
"-t"
,
"{int}"
,
"The number of threads to use on each MPI rank. Defaults to 1 if not "
"specified."
);
printf
(
" %2s %8s %s
\n
"
,
"-v"
,
"[12]"
,
"Increase the level of verbosity"
);
printf
(
" %2s %8s %s
\n
"
,
"-v"
,
"[12]"
,
"Increase the level of verbosity
.
"
);
printf
(
" %2s %8s %s
\n
"
,
""
,
""
,
"1: MPI-rank 0 writes "
);
printf
(
" %2s %8s %s
\n
"
,
""
,
""
,
"2: All MPI-ranks write"
);
printf
(
" %2s %8s %s
\n
"
,
"-y"
,
"{int}"
,
"Time-step frequency at which task graphs are dumped"
);
printf
(
" %2s %8s %s
\n
"
,
"-h"
,
""
,
"Print this help message and exit"
);
"Time-step frequency at which task graphs are dumped
.
"
);
printf
(
" %2s %8s %s
\n
"
,
"-h"
,
""
,
"Print this help message and exit
.
"
);
printf
(
"
\n
See the file parameter_example.yml for an example of "
"parameter file.
\n
"
);
...
...
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