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
2b2c98c0
"vscode:/vscode.git/clone" did not exist on "7e8acdf753007483097ae807eef691fcffe88dee"
Commit
2b2c98c0
authored
Mar 06, 2018
by
Sunhwan Jo
Browse files
provide error description
parent
0db10f6c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
8 deletions
+2
-8
wrappers/python/simtk/openmm/app/gromacstopfile.py
wrappers/python/simtk/openmm/app/gromacstopfile.py
+2
-8
No files found.
wrappers/python/simtk/openmm/app/gromacstopfile.py
View file @
2b2c98c0
...
@@ -889,11 +889,8 @@ class GromacsTopFile(object):
...
@@ -889,11 +889,8 @@ class GromacsTopFile(object):
q
=
float
(
params
[
4
])
q
=
float
(
params
[
4
])
if
has_nbfix_terms
:
if
has_nbfix_terms
:
# when NBFIX term is found, add all possible nonbond atom pairs explicitly
if
self
.
_defaults
[
1
]
!=
'2'
:
if
self
.
_defaults
[
1
]
!=
'2'
:
# CHARMM parameters are compatible with the Lorentz-Berthelot combination
raise
NotImplemented
(
'NBFIX terms with LB combination rule is not yet supported'
)
# rule (type 2) and we will stick with that for simplicity.
raise
NotImplemented
nb
.
addParticle
(
q
,
1.0
,
0.0
)
nb
.
addParticle
(
q
,
1.0
,
0.0
)
atom_charges
.
append
(
q
)
atom_charges
.
append
(
q
)
else
:
else
:
...
@@ -1056,11 +1053,8 @@ class GromacsTopFile(object):
...
@@ -1056,11 +1053,8 @@ class GromacsTopFile(object):
lj
.
setCutoffDistance
(
nonbondedCutoff
)
lj
.
setCutoffDistance
(
nonbondedCutoff
)
if
has_nbfix_terms
:
if
has_nbfix_terms
:
# when NBFIX term is found, add all possible nonbond atom pairs explicitly
if
self
.
_defaults
[
1
]
!=
'2'
:
if
self
.
_defaults
[
1
]
!=
'2'
:
# CHARMM parameters are compatible with the Lorentz-Berthelot combination
raise
NotImplemented
(
'NBFIX terms with LB combination rule is not yet supported'
)
# rule (type 2) and we will stick with that for simplicity.
raise
NotImplemented
atom_nbfix_types
=
set
([])
atom_nbfix_types
=
set
([])
for
pair
in
self
.
_nonbondTypes
:
for
pair
in
self
.
_nonbondTypes
:
...
...
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