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
5a8a8aa9
Commit
5a8a8aa9
authored
Aug 10, 2016
by
peastman
Committed by
GitHub
Aug 10, 2016
Browse files
Merge pull request #1555 from peastman/gbbugs
Fixed bugs related to CustomGBForce
parents
a468fa3a
77c00e41
Changes
3
Show 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 @
5a8a8aa9
...
...
@@ -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 @
5a8a8aa9
...
...
@@ -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 @
5a8a8aa9
...
...
@@ -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