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
77c00e41
Commit
77c00e41
authored
Aug 10, 2016
by
peastman
Browse files
Fixed bugs related to CustomGBForce
parent
a468fa3a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
2 deletions
+4
-2
platforms/cpu/src/CpuKernels.cpp
platforms/cpu/src/CpuKernels.cpp
+1
-1
platforms/cpu/src/CpuPlatform.cpp
platforms/cpu/src/CpuPlatform.cpp
+2
-0
wrappers/python/simtk/openmm/app/internal/customgbforces.py
wrappers/python/simtk/openmm/app/internal/customgbforces.py
+1
-1
No files found.
platforms/cpu/src/CpuKernels.cpp
View file @
77c00e41
...
...
@@ -1033,7 +1033,7 @@ void CpuCalcCustomGBForceKernel::initialize(const System& system, const CustomGB
nonbondedMethod
=
CalcCustomGBForceKernel
::
NonbondedMethod
(
force
.
getNonbondedMethod
());
nonbondedCutoff
=
(
RealOpenMM
)
force
.
getCutoffDistance
();
if
(
nonbondedMethod
!=
NoCutoff
)
data
.
requestNeighborList
(
nonbondedCutoff
,
0.25
*
nonbondedCutoff
,
true
,
exclusions
);
data
.
requestNeighborList
(
nonbondedCutoff
,
0.25
*
nonbondedCutoff
,
force
.
getNumExclusions
()
>
0
,
exclusions
);
// Create custom functions for the tabulated functions.
...
...
platforms/cpu/src/CpuPlatform.cpp
View file @
77c00e41
...
...
@@ -171,4 +171,6 @@ void CpuPlatform::PlatformData::requestNeighborList(double cutoffDistance, doubl
anyExclusions
=
true
;
}
}
else
if
(
!
anyExclusions
)
exclusions
=
exclusionList
;
}
wrappers/python/simtk/openmm/app/internal/customgbforces.py
View file @
77c00e41
...
...
@@ -267,7 +267,7 @@ def _mbondi_radii(topology):
bondeds
=
all_bonds
[
atom
]
if
bondeds
[
0
].
element
in
(
E
.
carbon
,
E
.
nitrogen
):
radii
[
i
]
=
1.3
elif
bondeds
[
0
].
type
.
atomic_number
in
(
E
.
oxygen
,
E
.
sulfur
):
elif
bondeds
[
0
].
element
in
(
E
.
oxygen
,
E
.
sulfur
):
radii
[
i
]
=
0.8
else
:
radii
[
i
]
=
1.2
...
...
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