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
63203651
Commit
63203651
authored
Jul 31, 2014
by
peastman
Browse files
Merge pull request #568 from peastman/docs
Fixes to documentation
parents
05d64aea
1f54f70c
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
179 additions
and
156 deletions
+179
-156
docs-source/CMakeLists.txt
docs-source/CMakeLists.txt
+8
-2
docs-source/sphinx/autonumber.py
docs-source/sphinx/autonumber.py
+1
-0
docs-source/usersguide/application.rst
docs-source/usersguide/application.rst
+79
-70
docs-source/usersguide/library.rst
docs-source/usersguide/library.rst
+22
-13
docs-source/usersguide/theory.rst
docs-source/usersguide/theory.rst
+69
-71
No files found.
docs-source/CMakeLists.txt
View file @
63203651
...
@@ -84,15 +84,19 @@ ENDIF(DOXYGEN_EXECUTABLE)
...
@@ -84,15 +84,19 @@ ENDIF(DOXYGEN_EXECUTABLE)
SET
(
SPHINX_BUILD_DIR
"
${
CMAKE_BINARY_DIR
}
/sphinx-docs/"
)
SET
(
SPHINX_BUILD_DIR
"
${
CMAKE_BINARY_DIR
}
/sphinx-docs/"
)
FILE
(
MAKE_DIRECTORY
"
${
SPHINX_BUILD_DIR
}
"
)
FILE
(
MAKE_DIRECTORY
"
${
SPHINX_BUILD_DIR
}
"
)
FILE
(
GLOB_RECURSE USER_GUIDE_FILES
${
CMAKE_CURRENT_SOURCE_DIR
}
/usersguide/*
)
FILE
(
GLOB_RECURSE DEVELOPER_GUIDE_FILES
${
CMAKE_CURRENT_SOURCE_DIR
}
/developerguide/*
)
ADD_CUSTOM_COMMAND
(
ADD_CUSTOM_COMMAND
(
OUTPUT
"
${
SPHINX_BUILD_DIR
}
/userguide/latex/OpenMMUsersGuide.pdf"
OUTPUT
"
${
SPHINX_BUILD_DIR
}
/userguide/latex/OpenMMUsersGuide.pdf"
COMMAND
"
${
CMAKE_MAKE_PROGRAM
}
"
BUILDDIR=
"
${
SPHINX_BUILD_DIR
}
/userguide"
OPENMM_VERSION=
"
${
OPENMM_MAJOR_VERSION
}
.
${
OPENMM_MINOR_VERSION
}
"
latexpdf
COMMAND
"
${
CMAKE_MAKE_PROGRAM
}
"
BUILDDIR=
"
${
SPHINX_BUILD_DIR
}
/userguide"
OPENMM_VERSION=
"
${
OPENMM_MAJOR_VERSION
}
.
${
OPENMM_MINOR_VERSION
}
"
latexpdf
DEPENDS
${
USER_GUIDE_FILES
}
WORKING_DIRECTORY
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/usersguide"
WORKING_DIRECTORY
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/usersguide"
COMMENT
"Generating PDF user guide"
COMMENT
"Generating PDF user guide"
)
)
ADD_CUSTOM_COMMAND
(
ADD_CUSTOM_COMMAND
(
OUTPUT
"
${
SPHINX_BUILD_DIR
}
/developerguide/latex/OpenMMDeveloperGuide.pdf"
OUTPUT
"
${
SPHINX_BUILD_DIR
}
/developerguide/latex/OpenMMDeveloperGuide.pdf"
COMMAND
"
${
CMAKE_MAKE_PROGRAM
}
"
BUILDDIR=
"
${
SPHINX_BUILD_DIR
}
/developerguide"
OPENMM_VERSION=
"
${
OPENMM_MAJOR_VERSION
}
.
${
OPENMM_MINOR_VERSION
}
"
latexpdf
COMMAND
"
${
CMAKE_MAKE_PROGRAM
}
"
BUILDDIR=
"
${
SPHINX_BUILD_DIR
}
/developerguide"
OPENMM_VERSION=
"
${
OPENMM_MAJOR_VERSION
}
.
${
OPENMM_MINOR_VERSION
}
"
latexpdf
DEPENDS
${
DEVELOPER_GUIDE_FILES
}
WORKING_DIRECTORY
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/developerguide"
WORKING_DIRECTORY
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/developerguide"
COMMENT
"Generating PDF developer guide"
COMMENT
"Generating PDF developer guide"
)
)
...
@@ -103,14 +107,16 @@ ADD_CUSTOM_TARGET(sphinxpdf
...
@@ -103,14 +107,16 @@ ADD_CUSTOM_TARGET(sphinxpdf
ADD_CUSTOM_COMMAND
(
ADD_CUSTOM_COMMAND
(
OUTPUT
"
${
SPHINX_BUILD_DIR
}
/userguide/html/index.html"
OUTPUT
"
${
SPHINX_BUILD_DIR
}
/userguide/html/index.html"
COMMAND
"
${
CMAKE_MAKE_PROGRAM
}
"
BUILDDIR=
"
${
SPHINX_BUILD_DIR
}
/userguide"
OPENMM_VERSION=
"
${
OPENMM_MAJOR_VERSION
}
.
${
OPENMM_MINOR_VERSION
}
"
html
COMMAND
"
${
CMAKE_MAKE_PROGRAM
}
"
BUILDDIR=
"
${
SPHINX_BUILD_DIR
}
/userguide"
OPENMM_VERSION=
"
${
OPENMM_MAJOR_VERSION
}
.
${
OPENMM_MINOR_VERSION
}
"
html
DEPENDS
${
USER_GUIDE_FILES
}
WORKING_DIRECTORY
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/usersguide"
WORKING_DIRECTORY
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/usersguide"
COMMENT
"Generating
PDF
user guide"
COMMENT
"Generating
HTML
user guide"
)
)
ADD_CUSTOM_COMMAND
(
ADD_CUSTOM_COMMAND
(
OUTPUT
"
${
SPHINX_BUILD_DIR
}
/developerguide/html/index.html"
OUTPUT
"
${
SPHINX_BUILD_DIR
}
/developerguide/html/index.html"
COMMAND
"
${
CMAKE_MAKE_PROGRAM
}
"
BUILDDIR=
"
${
SPHINX_BUILD_DIR
}
/developerguide"
OPENMM_VERSION=
"
${
OPENMM_MAJOR_VERSION
}
.
${
OPENMM_MINOR_VERSION
}
"
html
COMMAND
"
${
CMAKE_MAKE_PROGRAM
}
"
BUILDDIR=
"
${
SPHINX_BUILD_DIR
}
/developerguide"
OPENMM_VERSION=
"
${
OPENMM_MAJOR_VERSION
}
.
${
OPENMM_MINOR_VERSION
}
"
html
DEPENDS
${
DEVELOPER_GUIDE_FILES
}
WORKING_DIRECTORY
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/developerguide"
WORKING_DIRECTORY
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/developerguide"
COMMENT
"Generating
PDF
developer guide"
COMMENT
"Generating
HTML
developer guide"
)
)
ADD_CUSTOM_TARGET
(
sphinxhtml
ADD_CUSTOM_TARGET
(
sphinxhtml
DEPENDS
"
${
SPHINX_BUILD_DIR
}
/userguide/html/index.html"
"
${
SPHINX_BUILD_DIR
}
/developerguide/html/index.html"
DEPENDS
"
${
SPHINX_BUILD_DIR
}
/userguide/html/index.html"
"
${
SPHINX_BUILD_DIR
}
/developerguide/html/index.html"
...
...
docs-source/sphinx/autonumber.py
View file @
63203651
...
@@ -43,6 +43,7 @@ def doctree_resolved(app, doctree, docname):
...
@@ -43,6 +43,7 @@ def doctree_resolved(app, doctree, docname):
chapter
=
sectionNumbers
[
chapter
.
attributes
[
'ids'
][
0
]][
0
]
chapter
=
sectionNumbers
[
chapter
.
attributes
[
'ids'
][
0
]][
0
]
if
chapter
!=
lastChapter
:
if
chapter
!=
lastChapter
:
index
=
{}
index
=
{}
nextNumber
=
1
newNode
=
Text
(
'%s %d-%d'
%
(
category
,
chapter
,
nextNumber
))
newNode
=
Text
(
'%s %d-%d'
%
(
category
,
chapter
,
nextNumber
))
lastChapter
=
chapter
lastChapter
=
chapter
else
:
else
:
...
...
docs-source/usersguide/application.rst
View file @
63203651
This diff is collapsed.
Click to expand it.
docs-source/usersguide/library.rst
View file @
63203651
...
@@ -20,11 +20,11 @@ high level interface for running simulations. This layer is targeted at
...
@@ -20,11 +20,11 @@ high level interface for running simulations. This layer is targeted at
computational
biologists
or
other
people
who
want
to
run
simulations
,
and
who
computational
biologists
or
other
people
who
want
to
run
simulations
,
and
who
may
or
may
not
be
programmers
.
may
or
may
not
be
programmers
.
Part
I
of
this
guide
focused
on
the
application
layer
and
described
how
to
run
The
first
part
of
this
guide
focused
on
the
application
layer
and
described
how
to
run
simulations
with
it
.
We
now
turn
to
the
lower
level
libraries
.
We
will
assume
simulations
with
it
.
We
now
turn
to
the
lower
level
libraries
.
We
will
assume
you
are
a
programmer
,
that
you
are
writing
your
own
applications
,
and
that
you
you
are
a
programmer
,
that
you
are
writing
your
own
applications
,
and
that
you
want
to
add
simulation
features
to
those
applications
.
Part
II
of
this
guide
want
to
add
simulation
features
to
those
applications
.
The
following
chapters
describe
s
how
to
do
that
with
OpenMM
.
describe
how
to
do
that
with
OpenMM
.
How
to
get
started
How
to
get
started
==================
==================
...
@@ -42,7 +42,8 @@ License
...
@@ -42,7 +42,8 @@ License
========
========
Two
different
licenses
are
used
for
different
parts
of
OpenMM
.
The
public
API
,
Two
different
licenses
are
used
for
different
parts
of
OpenMM
.
The
public
API
,
the
low
level
API
,
and
the
reference
platform
are
all
distributed
under
the
MIT
the
low
level
API
,
the
reference
platform
,
the
CPU
platform
,
and
the
application
layer
are
all
distributed
under
the
MIT
license
.
This
is
a
very
permissive
license
which
allows
them
to
be
used
in
license
.
This
is
a
very
permissive
license
which
allows
them
to
be
used
in
almost
any
way
,
requiring
only
that
you
retain
the
copyright
notice
and
almost
any
way
,
requiring
only
that
you
retain
the
copyright
notice
and
disclaimer
when
distributing
them
.
disclaimer
when
distributing
them
.
...
@@ -425,12 +426,18 @@ Get the OpenMM source code
...
@@ -425,12 +426,18 @@ Get the OpenMM source code
You
will
also
need
the
OpenMM
source
code
before
building
OpenMM
from
source
.
You
will
also
need
the
OpenMM
source
code
before
building
OpenMM
from
source
.
To
download
and
unpack
OpenMM
source
code
:
To
download
and
unpack
OpenMM
source
code
:
#.
Browse
to
https
://
simtk
.
org
/
home
/
openmm
/
.
#.
Browse
to
https
://
simtk
.
org
/
home
/
openmm
.
#.
Click
the
"Downloads"
link
in
the
navigation
bar
on
the
left
side
.
#.
Click
the
"Downloads"
link
in
the
navigation
bar
on
the
left
side
.
#.
Download
OpenMM
<
Version
>-
Source
.
zip
,
choosing
the
latest
version
.
#.
Download
OpenMM
<
Version
>-
Source
.
zip
,
choosing
the
latest
version
.
#.
Unpack
the
zip
file
.
Note
the
location
where
you
unpacked
the
OpenMM
source
#.
Unpack
the
zip
file
.
Note
the
location
where
you
unpacked
the
OpenMM
source
code
.
code
.
Alternatively
,
if
you
want
the
most
recent
development
version
of
the
code
rather
than
the
version
corresponding
to
a
particular
release
,
you
can
get
it
from
https
://
github
.
com
/
SimTk
/
openmm
.
Be
aware
that
the
development
code
is
constantly
changing
,
may
contain
bugs
,
and
should
never
be
used
for
production
work
.
If
you
want
a
stable
,
well
tested
version
of
OpenMM
,
you
should
download
the
source
code
for
the
latest
release
as
described
above
.
Other
Required
Software
Other
Required
Software
=======================
=======================
...
@@ -540,10 +547,10 @@ There are several variables that can be adjusted in the CMake interface:
...
@@ -540,10 +547,10 @@ There are several variables that can be adjusted in the CMake interface:
install
OpenMM
.
install
OpenMM
.
Configure
(
press
“
\
:
code
:`
c
`\
”
)
again
.
Adjust
any
variables
that
cause
an
Configure
(
press
“
c
”
)
again
.
Adjust
any
variables
that
cause
an
error
.
error
.
Continue
to
configure
(
press
“
\
:
code
:`
c
`\
”
)
until
no
starred
/
red
CMake
Continue
to
configure
(
press
“
c
”
)
until
no
starred
/
red
CMake
variables
are
displayed
.
Congratulations
,
you
have
completed
the
configuration
variables
are
displayed
.
Congratulations
,
you
have
completed
the
configuration
step
.
step
.
...
@@ -566,7 +573,7 @@ Windows
...
@@ -566,7 +573,7 @@ Windows
Mac
and
Linux
Mac
and
Linux
=============
=============
*
Press
:
code
:`
g
`
to
generate
the
Makefile
.
*
Press
“
g
”
to
generate
the
Makefile
.
*
If
CMake
does
not
exit
automatically
,
press
“
q
”
to
exit
.
*
If
CMake
does
not
exit
automatically
,
press
“
q
”
to
exit
.
...
@@ -1321,9 +1328,11 @@ to change the build environment.
...
@@ -1321,9 +1328,11 @@ to change the build environment.
double stepSizeInFs,
double stepSizeInFs,
std::string& platformName);
std::string& platformName);
static void myStepWithOpenMM(MyOpenMMData*, int numSteps);
static void myStepWithOpenMM(MyOpenMMData*, int numSteps);
static void myGetOpenMMState(MyOpenMMData*, bool
static void myGetOpenMMState(MyOpenMMData*,
wantEnergy,double& time, double& energy,
bool wantEnergy,
MyAtomInfo atoms[]);
double& time,
double& energy,
MyAtomInfo atoms[]);
static void myTerminateOpenMM(MyOpenMMData*);
static void myTerminateOpenMM(MyOpenMMData*);
...
@@ -3544,7 +3553,7 @@ Hamiltonian is given by
...
@@ -3544,7 +3553,7 @@ Hamiltonian is given by
.. math::
.. math::
H=\sum _{k=1}^{n}\left(\frac{{p}_{{k}^{2}}}{2m}+E({q}_{k})+\frac{m({k}_{B}Tn)^{2}}{2
h
^{2}}({q}_{k}-{q}_{k-1})^{2}\right)
H=\sum _{k=1}^{n}\left(\frac{{p}_{{k}^{2}}}{2m}+E({q}_{k})+\frac{m({k}_{B}Tn)^{2}}{2
\hbar
^{2}}({q}_{k}-{q}_{k-1})^{2}\right)
This Hamiltonian resembles that of a system of classical ring polymers where
This Hamiltonian resembles that of a system of classical ring polymers where
...
@@ -3560,7 +3569,7 @@ needed to converge a calculation can be estimated using\ :cite:`Markland2008`\
...
@@ -3560,7 +3569,7 @@ needed to converge a calculation can be estimated using\ :cite:`Markland2008`\
.. math::
.. math::
n>\frac{
h
\omega_{max}}{{k}_{B}T}
n>\frac{
\hbar
\omega_{max}}{{k}_{B}T}
where :math:`\omega_{max}` is the highest frequency in the problem. For example, for
where :math:`\omega_{max}` is the highest frequency in the problem. For example, for
...
...
docs-source/usersguide/theory.rst
View file @
63203651
This diff is collapsed.
Click to expand it.
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