Skip to content

Commit

Permalink
Merge pull request #500 from leeping/master
Browse files Browse the repository at this point in the history
GromacsTopFile parses define value with one extra leading character
  • Loading branch information
peastman committed Jun 30, 2014
2 parents 5184d1d + 26ec4ed commit c79a29b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wrappers/python/simtk/openmm/app/gromacstopfile.py
Expand Up @@ -111,7 +111,7 @@ def _processLine(self, line, file):
if len(fields) < 2:
raise ValueError('Illegal line in .top file: '+line)
name = fields[1]
valueStart = stripped.find(name, len(command))+len(name)
valueStart = stripped.find(name, len(command))+len(name)+1
value = line[valueStart:].strip()
self._defines[name] = value
elif command == '#ifdef':
Expand Down

0 comments on commit c79a29b

Please sign in to comment.