diff options
author | spew <devnull@localhost> | 2017-03-25 13:05:47 -0500 |
---|---|---|
committer | spew <devnull@localhost> | 2017-03-25 13:05:47 -0500 |
commit | 85b8d253d496c115766a37f51ea72cbec78090a8 (patch) | |
tree | c253c3fca4ca9d11a5b91f441ba9a4d219f39af6 /sys/man/1 | |
parent | 4e8494aad79a124f2b15ede9e7873fed46e1bb0a (diff) |
games/galaxy: parallelize gravitational force calculations
Once the Barnes-Hut tree is constructed, the gravitational
force calculations can be done in parallel by dividing the
bodies up between a number of procs.
Diffstat (limited to 'sys/man/1')
-rw-r--r-- | sys/man/1/galaxy | 31 |
1 files changed, 19 insertions, 12 deletions
diff --git a/sys/man/1/galaxy b/sys/man/1/galaxy index 188c83e61..3743df6af 100644 --- a/sys/man/1/galaxy +++ b/sys/man/1/galaxy @@ -102,23 +102,11 @@ Exit the simulator. Certain aspects of the galaxy simulator are controlled by the following options: .TP -.BI -t " throttle" -Causes the process that calculates forces to relinquish -the processor for -.I throttle -milliseconds after each calculation. -.TP .BI -G " gravity" Sets the gravitational constant to .I gravity. The default value is 1. .TP -.BI -ε " softening" -Sets the -.I softening -factor to prevent gravitational singularities during -collisions or near-collisions. The default value is 500. -.TP .BI -f " file" Reads the galaxy file .I file @@ -127,6 +115,25 @@ Reads the galaxy file .TP .B -i Reads a galaxy file from standard input. +.TP +.BI -p " procs" +Specifies the number of extra processes to use in order +to calculate the gravitational force on each body in +parallel. +The default value is +.BR $NPROC-1 . +.TP +.BI -t " throttle" +Causes the process that calculates forces to relinquish +the processor for +.I throttle +milliseconds after each calculation. +.TP +.BI -ε " softening" +Sets the +.I softening +factor to prevent gravitational singularities during +collisions or near-collisions. The default value is 500. .SS Mkgalaxy .I Mkgalaxy is a utility to create galaxies for simulation. |