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

Molecule/apply link #241

Closed
wants to merge 17 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add natoms of missing interaction for GROMACS
  • Loading branch information
fgrunewald committed Mar 19, 2020
commit 1dd5d4c368101442ddf8f9738a4f92d802380886
11 changes: 10 additions & 1 deletion vermouth/gmx/itp_read.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,16 @@ class ITPDirector(SectionLineParser):
'impropers': 4,
'constraints': 2,
'virtual_sites2': 3,
'virtual_sites3': 4,
'virtual_sites4': 5,
'pairs': 2,
'position_restraints':1
'pairs_nb':2,
'position_restraints':1,
'distance_restraints':2,
'dihedral_restraints':4,
'orientation_restraints':2,
'angle_restraints':4,
'angle_restraints_z':2
}

def __init__(self, force_field):
Expand Down Expand Up @@ -475,6 +483,7 @@ def _base_parser(tokens, context, context_type, section, current_meta, natoms=No
parameters = _parse_interaction_parameters(tokens)

apply_to_all_interactions = context._apply_to_all_interactions[section]

if current_meta:
meta = {current_meta['condition']:current_meta['tag']}
else:
Expand Down