README 5.79 KB
Newer Older
Matthieu Schaller's avatar
Matthieu Schaller committed
1
 Welcome to the cosmological hydrodynamical code
2 3
    ______       _________________
   / ___/ |     / /  _/ ___/_  __/
4 5 6
   \__ \| | /| / // // /_   / /
  ___/ /| |/ |/ // // __/  / /
 /____/ |__/|__/___/_/    /_/
Matthieu Schaller's avatar
Matthieu Schaller committed
7
 SPH With Inter-dependent Fine-grained Tasking
8

9
 Version : 0.8.5
Matthieu Schaller's avatar
Matthieu Schaller committed
10 11
 Website: www.swiftsim.com
 Twitter: @SwiftSimulation
Matthieu Schaller's avatar
Matthieu Schaller committed
12

Matthieu Schaller's avatar
Matthieu Schaller committed
13
See INSTALL.swift for install instructions.
Matthieu Schaller's avatar
Matthieu Schaller committed
14

15 16 17 18
Usage: swift [options] [[--] param-file]
   or: swift [options] param-file
   or: swift_mpi [options] [[--] param-file]
   or: swift_mpi [options] param-file
Matthieu Schaller's avatar
Matthieu Schaller committed
19

20 21
Parameters:

22
    -h, --help                        show this help message and exit
23 24

  Simulation options:
25

26
    -b, --feedback                    Run with stars feedback.
27
    -c, --cosmology                   Run with cosmological time integration.
28
    --temperature                     Run with temperature calculation.
29
    -C, --cooling                     Run with cooling (also switches on --temperature).
30 31 32
    -D, --drift-all                   Always drift all particles even the ones
                                      far from active particles. This emulates
                                      Gadget-[23] and GIZMO's default behaviours.
33
    -F, --star-formation              Run with star formation.
34 35 36 37
    -g, --external-gravity            Run with an external gravitational potential.
    -G, --self-gravity                Run with self-gravity.
    -M, --multipole-reconstruction    Reconstruct the multipoles every time-step.
    -s, --hydro                       Run with hydrodynamics.
38
    -S, --stars                       Run with stars.
39
    -B, --black-holes                 Run with black holes.
40 41 42
    -k, --sinks                       Run with sink particles.
    -u, --fof                         Run Friends-of-Friends algorithm to
                                      perform black hole seeding.
43
    -x, --velociraptor                Run with structure finding.
44
    --line-of-sight                   Run with line-of-sight outputs.
45
    --limiter                         Run with time-step limiter.
46 47
    --sync                            Run with time-step synchronization
                                      of particles hit by feedback events.
48 49 50
    --logger                          Run with the particle logger.
    -R, --radiation                   Run with radiative transfer. Work in
                                      progress, currently has no effect.
51

52 53
  Simulation meta-options:

54 55 56
    --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
57
                                      --cooling.
58 59 60 61 62 63 64 65 66 67
    --eagle                           Run with all the options needed for the
                                      EAGLE model. This is equivalent to --hydro
                                      --limiter --sync --self-gravity --stars
                                      --star-formation --cooling --feedback
                                      --black-holes --fof.
    --gear                            Run with all the options needed for the
                                      GEAR model. This is equivalent to --hydro
                                      --limiter --sync --self-gravity --stars
                                      --star-formation --cooling --feedback.

68
  Control options:
69

70 71 72 73 74 75 76 77 78 79 80 81 82 83
    -a, --pin                         Pin runners using processor affinity.
    -d, --dry-run                     Dry run. Read the parameter file, allocates
                                      memory but does not read the particles
                                      from ICs. Exits before the start of time
                                      integration. Checks the validity of
                                      parameters and IC files as well as memory
                                      limits.
    -e, --fpe                         Enable floating-point exceptions (debugging
                                      mode).
    -f, --cpu-frequency=<str>         Overwrite the CPU frequency (Hz) to be
                                      used for time measurements.
    -n, --steps=<int>                 Execute a fixed number of time steps.
                                      When unset use the time_end parameter
                                      to stop.
84 85
    -o, --output-params=<str>         Generate a parameter file with the options
                                      for selecting the output fields.
86 87 88 89 90 91 92 93 94
    -P, --param=<str>                 Set parameter value, overiding the value
                                      read from the parameter file. Can be used
                                      more than once {sec:par:value}.
    -r, --restart                     Continue using restart files.
    -t, --threads=<int>               The number of threads to use on each MPI
                                      rank. Defaults to 1 if not specified.
    -T, --timers=<int>                Print timers every time-step.
    -v, --verbose=<int>               Run in verbose mode, in MPI mode 2 outputs
                                      from all ranks.
95 96 97 98
    -y, --task-dumps=<int>            Time-step frequency at which task graphs
                                      are dumped.
    --cell-dumps=<int>                Time-step frequency at which cell graphs
                                      are dumped.
99 100
    -Y, --threadpool-dumps=<int>      Time-step frequency at which threadpool
                                      tasks are dumped.
101 102 103
    --dump-tasks-threshold=<flt>      Fraction of the total step's time spent
                                      in a task to trigger a dump of the task plot
                                      on this step
104 105

See the file examples/parameter_example.yml for an example of parameter file.
106