Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GromacsTopFile parses define value with one extra leading character #500

Merged
merged 1 commit into from Jun 30, 2014

Conversation

leeping
Copy link
Contributor

@leeping leeping commented Jun 29, 2014

When GromacsTopFile reads the #define lines, the last character of the variable name got read into the value.

For instance, the following line:

#define tor_ARG_N_CA_CB_CG_m1 0.0 0.0 1 ; PRM 2 3

got read in as the following:

top._defines['tor_ARG_N_CA_CB_CG_m1'] = '1 0.0 0.0 1'.

The leading 1 is not part of the value. Simply shifting the parser by one character fixes the issue.

peastman added a commit that referenced this pull request Jun 30, 2014
GromacsTopFile parses define value with one extra leading character
@peastman peastman merged commit c79a29b into openmm:master Jun 30, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants