Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tsoc
openmm
Commits
c2505aad
Commit
c2505aad
authored
Jan 15, 2015
by
Jason Swails
Browse files
``XXX`` -> :class:`XXX`
principle -> principal... I'm a bozo.
parent
c2191b61
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
13 deletions
+14
-13
docs-source/usersguide/theory.rst
docs-source/usersguide/theory.rst
+14
-13
No files found.
docs-source/usersguide/theory.rst
View file @
c2505aad
...
...
@@ -1399,7 +1399,7 @@ normal distribution).
What this means is that the random numbers used by integrators and forces within
OpenMM cannot have any discernible pattern to them. Patterns can be induced in
PRNGs in two principl
e
ways:
PRNGs in two princip
a
l ways:
1. The PRNG uses a bad algorithm with a short period.
2. Two PRNGs are started using the same seed
...
...
@@ -1421,23 +1421,24 @@ only within a single simulation, but between two different simulations of the
same system as well (including any restarts of previous simulations).
Every stochastic force and integrator that does (or could) make use of random
numbers has two instance methods attached to it:
`
`getRandomNumberSeed()`
` and
`
`setRandomNumberSeed(int seed)`
`
. If you set a unique random seed for
two
different simulations (or different forces/integrators if applicable),
OpenMM
guarantees that the generated sequences of random numbers will be
different (by
contrast, no guarantee is made that the same seed will result in
identical
random number sequences).
numbers has two instance methods attached to it:
:class:
`getRandomNumberSeed()`
and :class:
`setRandomNumberSeed(int seed)`. If you set a unique random seed for
two
different simulations (or different forces/integrators if applicable),
OpenMM
guarantees that the generated sequences of random numbers will be
different (by
contrast, no guarantee is made that the same seed will result in
identical
random number sequences).
Since breaking simulations up into pieces and/or running multiple replicates of
a system to obtain more complete statistics is common practice, a new strategy
has been employed for OpenMM versions 6.3 and later with the aim of trying to
ensure that each simulation will be started with a unique random seed. A random
seed value of 0 (the default) will cause a unique random seed to be generated
when a new
`
`Context`
`
is instantiated.
when a new
:class:
`Context` is instantiated.
Prior to the introduction of this feature, deserializing a serialized
``System`` XML file would result in each stochastic force or integrator being
assigned the same random seed as the original instance that was serialized. If
you use a ``System`` XML file generated by a version of OpenMM older than 6.3
to start a new simulation, you should manually set the random number seed of
each stochastic force or integrator to 0 (or another unique value).
:class:`System` XML file would result in each stochastic force or integrator
being assigned the same random seed as the original instance that was
serialized. If you use a :class:`System` XML file generated by a version of
OpenMM older than 6.3 to start a new simulation, you should manually set the
random number seed of each stochastic force or integrator to 0 (or another
unique value).
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment