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
3862202e
Commit
3862202e
authored
Jul 12, 2013
by
Justin MacCallum
Browse files
Merge branch 'upstream' into fork
parents
e1a4e015
73882ac5
Changes
249
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
27 additions
and
7 deletions
+27
-7
plugins/rpmd/platforms/reference/src/ReferenceRpmdKernels.h
plugins/rpmd/platforms/reference/src/ReferenceRpmdKernels.h
+2
-2
plugins/rpmd/platforms/reference/tests/TestReferenceRpmd.cpp
plugins/rpmd/platforms/reference/tests/TestReferenceRpmd.cpp
+1
-1
tests/TestParser.cpp
tests/TestParser.cpp
+1
-0
wrappers/python/simtk/openmm/app/data/hydrogens.xml
wrappers/python/simtk/openmm/app/data/hydrogens.xml
+2
-2
wrappers/python/simtk/openmm/app/forcefield.py
wrappers/python/simtk/openmm/app/forcefield.py
+7
-0
wrappers/python/simtk/openmm/app/gromacstopfile.py
wrappers/python/simtk/openmm/app/gromacstopfile.py
+1
-0
wrappers/python/simtk/openmm/app/internal/amber_file_parser.py
...ers/python/simtk/openmm/app/internal/amber_file_parser.py
+1
-0
wrappers/python/src/swig_doxygen/OpenMM.i
wrappers/python/src/swig_doxygen/OpenMM.i
+8
-0
wrappers/python/src/swig_doxygen/swig_lib/python/pythoncode.i
...pers/python/src/swig_doxygen/swig_lib/python/pythoncode.i
+4
-2
No files found.
plugins/rpmd/platforms/reference/src/ReferenceRpmdKernels.h
View file @
3862202e
...
...
@@ -34,8 +34,8 @@
#include "ReferencePlatform.h"
#include "openmm/RpmdKernels.h"
#include "
SimTKUtilities/
RealVec.h"
#include "
SimTKReference/
fftpack.h"
#include "RealVec.h"
#include "fftpack.h"
namespace
OpenMM
{
...
...
plugins/rpmd/platforms/reference/tests/TestReferenceRpmd.cpp
View file @
3862202e
...
...
@@ -42,7 +42,7 @@
#include "openmm/System.h"
#include "openmm/RPMDIntegrator.h"
#include "openmm/VirtualSite.h"
#include "
SimTKUtilities/
SimTKOpenMMUtilities.h"
#include "SimTKOpenMMUtilities.h"
#include "sfmt/SFMT.h"
#include <iostream>
#include <vector>
...
...
tests/TestParser.cpp
View file @
3862202e
...
...
@@ -175,6 +175,7 @@ int main() {
verifyEvaluation
(
"5*2"
,
10.0
);
verifyEvaluation
(
"2*3+4*5"
,
26.0
);
verifyEvaluation
(
"2^-3"
,
0.125
);
verifyEvaluation
(
"1e+2"
,
100.0
);
verifyEvaluation
(
"-x"
,
2.0
,
3.0
,
-
2.0
);
verifyEvaluation
(
"y^-x"
,
3.0
,
2.0
,
0.125
);
verifyEvaluation
(
"1/-x"
,
3.0
,
2.0
,
-
1.0
/
3.0
);
...
...
wrappers/python/simtk/openmm/app/data/hydrogens.xml
View file @
3862202e
...
...
@@ -16,7 +16,7 @@
<H
name=
"HOP3"
parent=
"OP3"
/>
</Residue>
<Residue
name=
"ACE"
>
<H
name=
"H"
parent=
"C"
/>
<H
name=
"H"
parent=
"C"
terminal=
"C"
/>
<H
name=
"H1"
parent=
"CH3"
/>
<H
name=
"H2"
parent=
"CH3"
/>
<H
name=
"H3"
parent=
"CH3"
/>
...
...
@@ -313,7 +313,7 @@
<H
name=
"H1"
parent=
"C"
/>
<H
name=
"H2"
parent=
"C"
/>
<H
name=
"H3"
parent=
"C"
/>
<H
name=
"HN2"
parent=
"N"
/>
<H
name=
"HN2"
parent=
"N"
terminal=
"N"
/>
</Residue>
<Residue
name=
"ORN"
>
<H
name=
"H"
parent=
"N"
/>
...
...
wrappers/python/simtk/openmm/app/forcefield.py
View file @
3862202e
...
...
@@ -1046,6 +1046,13 @@ class GBSAOBCGenerator:
force
.
setSolventDielectric
(
float
(
args
[
'solventDielectric'
]))
sys
.
addForce
(
force
)
def
postprocessSystem
(
self
,
sys
,
data
,
args
):
# Disable the reaction field approximation, since it produces bad results when combined with GB.
for
force
in
sys
.
getForces
():
if
isinstance
(
force
,
mm
.
NonbondedForce
):
force
.
setReactionFieldDielectric
(
1.0
)
parsers
[
"GBSAOBCForce"
]
=
GBSAOBCGenerator
.
parseElement
...
...
wrappers/python/simtk/openmm/app/gromacstopfile.py
View file @
3862202e
...
...
@@ -448,6 +448,7 @@ class GromacsTopFile(object):
gb
.
setSoluteDielectric
(
soluteDielectric
)
gb
.
setSolventDielectric
(
solventDielectric
)
sys
.
addForce
(
gb
)
nb
.
setReactionFieldDielectric
(
1.0
)
elif
implicitSolvent
is
not
None
:
raise
ValueError
(
'Illegal value for implicitSolvent'
)
bonds
=
None
...
...
wrappers/python/simtk/openmm/app/internal/amber_file_parser.py
View file @
3862202e
...
...
@@ -824,6 +824,7 @@ def readAmberSystem(prmtop_filename=None, prmtop_loader=None, shake=None, gbmode
gb
.
setCutoffDistance
(
nonbondedCutoff
)
else
:
raise
Exception
(
"Illegal nonbonded method for use with GBSA"
)
force
.
setReactionFieldDielectric
(
1.0
)
# TODO: Add GBVI terms?
...
...
wrappers/python/src/swig_doxygen/OpenMM.i
View file @
3862202e
...
...
@@ -64,6 +64,14 @@ using namespace OpenMM;
%
include
OpenMM_headers
.
i
%
pythoncode
%
{
#
when
we
import
*
from
the
python
module
,
we
only
want
to
import
the
#
actual
classes
,
and
not
the
swigregistration
methods
,
which
have
already
#
been
called
,
and
are
now
unneeded
by
the
user
code
,
and
only
pollute
the
#
namespace
__all__
=
[
k
for
k
in
locals
()
.
keys
()
if
not
k
.
endswith
(
'
_swigregister
'
)]
%
}
/*
%extend OpenMM::XmlSerializer {
%template(XmlSerializer_serialize_AndersenThermostat) XmlSerializer::serialize<AndersenThermostat>;
...
...
wrappers/python/src/swig_doxygen/swig_lib/python/pythoncode.i
View file @
3862202e
...
...
@@ -5,6 +5,7 @@ try:
except
:
pass
import
sys
import
math
RMIN_PER_SIGMA
=
math
.
pow
(
2
,
1
/
6.0
)
RVDW_PER_SIGMA
=
math
.
pow
(
2
,
1
/
6.0
)
/
2.0
...
...
@@ -273,14 +274,15 @@ def stripUnits(args):
"""
newArgList
=
[]
for
arg
in
args
:
if
unit
.
is_quantity
(
arg
)
:
if
'
numpy
'
in
sys
.
modules
and
isinstance
(
arg
,
numpy
.
ndarray
)
:
arg
=
arg
.
tolist
()
elif
unit
.
is_quantity
(
arg
)
:
#
JDC
:
Ugly
workaround
for
OpenMM
using
'
bar
'
for
fundamental
pressure
unit
.
if
arg
.
unit
.
is_compatible
(
unit
.
bar
)
:
arg
=
arg
/
unit
.
bar
else
:
arg
=
arg
.
value_in_unit_system
(
unit
.
md_unit_system
)
#
JDC
:
End
workaround
.
#
arg
=
arg
.
value_in_unit_system
(
unit
.
md_unit_system
)
elif
isinstance
(
arg
,
dict
)
:
newKeys
=
stripUnits
(
arg
.
keys
())
newValues
=
stripUnits
(
arg
.
values
())
...
...
Prev
1
…
9
10
11
12
13
Next
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