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
0e9144d4
Commit
0e9144d4
authored
Sep 25, 2013
by
Robert McGibbon
Browse files
Fix bug in gromacs top file parser where #else preprocessor directives were not being followed
parent
02adeefa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
wrappers/python/simtk/openmm/app/gromacstopfile.py
wrappers/python/simtk/openmm/app/gromacstopfile.py
+3
-0
No files found.
wrappers/python/simtk/openmm/app/gromacstopfile.py
View file @
0e9144d4
...
...
@@ -127,6 +127,9 @@ class GromacsTopFile(object):
if
len
(
self
.
_ifStack
)
==
0
:
raise
ValueError
(
'Unexpected line in .top file: '
+
line
)
del
(
self
.
_ifStack
[
-
1
])
elif
command
==
'#else'
:
# Reverse the last entry on the if stack
self
.
_ifStack
[
-
1
]
=
(
not
self
.
_ifStack
[
-
1
])
elif
not
ignore
:
# A line of data for the current category
...
...
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