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
4d363346
"platforms/vscode:/vscode.git/clone" did not exist on "ba9f6b0a33ba72965d62998d46ef98b2a167d640"
Commit
4d363346
authored
Oct 26, 2013
by
Robert McGibbon
Browse files
Fix for #151
parent
bf8db55f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
wrappers/python/simtk/openmm/app/gromacstopfile.py
wrappers/python/simtk/openmm/app/gromacstopfile.py
+9
-3
No files found.
wrappers/python/simtk/openmm/app/gromacstopfile.py
View file @
4d363346
...
...
@@ -358,7 +358,7 @@ class GromacsTopFile(object):
raise
ValueError
(
'Unsupported function type in [ cmaptypes ] line: '
+
line
);
self
.
_cmapTypes
[
tuple
(
fields
[:
5
])]
=
fields
def
__init__
(
self
,
file
,
unitCellDimensions
=
None
,
includeDir
=
None
,
defines
=
{}
):
def
__init__
(
self
,
file
,
unitCellDimensions
=
None
,
includeDir
=
None
,
defines
=
None
):
"""Load a top file.
Parameters:
...
...
@@ -368,12 +368,18 @@ class GromacsTopFile(object):
included from the top file. If not specified, we will attempt to locate a gromacs
installation on your system. When gromacs is installed in /usr/local, this will resolve
to /usr/local/gromacs/share/gromacs/top
- defines (
map
={}) preprocessor definitions that should be predefined when parsing the file
- defines (
dict
={}) preprocessor definitions that should be predefined when parsing the file
"""
if
includeDir
is
None
:
includeDir
=
_defaultGromacsIncludeDir
()
self
.
_includeDirs
=
(
os
.
path
.
dirname
(
file
),
includeDir
)
self
.
_defines
=
defines
# Most of the gromacs water itp files for different forcefields,
# unless the preprocessor #define FLEXIBLE is given, don't define
# bonds between the water hydrogen and oxygens, but only give the
# constraint distances and exclusions.
self
.
_defines
=
{
'FLEXIBLE'
:
True
}
if
defines
is
not
None
:
self
.
_defines
.
update
(
defines
)
# Parse the file.
...
...
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