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
992487c6
Commit
992487c6
authored
Sep 11, 2015
by
peastman
Browse files
Merge pull request #1133 from rafwiewiora/amberffconv
Resolve sigma = 0 problems from processAmberForceField
parents
b9b2b7a3
e060e7c4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
devtools/forcefield-scripts/processAmberForceField.py
devtools/forcefield-scripts/processAmberForceField.py
+3
-1
No files found.
devtools/forcefield-scripts/processAmberForceField.py
View file @
992487c6
...
@@ -405,8 +405,10 @@ for index, type in enumerate(types):
...
@@ -405,8 +405,10 @@ for index, type in enumerate(types):
sigma
=
(
params
[
0
]
/
params
[
1
])
**
(
1.0
/
6.0
)
sigma
=
(
params
[
0
]
/
params
[
1
])
**
(
1.0
/
6.0
)
epsilon
=
4.184
*
params
[
1
]
*
params
[
1
]
/
(
4
*
params
[
0
])
epsilon
=
4.184
*
params
[
1
]
*
params
[
1
]
/
(
4
*
params
[
0
])
else
:
else
:
sigma
=
0
sigma
=
1
epsilon
=
0
epsilon
=
0
if
sigma
==
0
or
epsilon
==
0
:
sigma
,
epsilon
=
1
,
0
if
q
!=
0
or
epsilon
!=
0
:
if
q
!=
0
or
epsilon
!=
0
:
print
""" <Atom type="%d" charge="%s" sigma="%s" epsilon="%s"/>"""
%
(
index
,
q
,
sigma
,
epsilon
)
print
""" <Atom type="%d" charge="%s" sigma="%s" epsilon="%s"/>"""
%
(
index
,
q
,
sigma
,
epsilon
)
print
" </NonbondedForce>"
print
" </NonbondedForce>"
...
...
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