Skip to content

Commit

Permalink
cache smirks matching per residue
Browse files Browse the repository at this point in the history
  • Loading branch information
jkausrelay committed Nov 21, 2024
1 parent 9df5fec commit 043602b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions timemachine/ff/handlers/nonbonded.py
Original file line number Diff line number Diff line change
Expand Up @@ -754,6 +754,8 @@ def __init__(self, patterns, params, protein_ff_name, water_ff_name, topology):
proper_res_mol.UpdatePropertyCache()
omm_res_mol.UpdatePropertyCache()

# cache smirks patterns to speed up parameterize
compute_or_load_bond_smirks_matches(omm_res_mol, self.patterns)
self.all_res_mols_by_name[tfr.name] = omm_res_mol
# self.all_res_mols_by_name[tfr.name + "_proper"] = proper_res_mol

Expand Down

0 comments on commit 043602b

Please sign in to comment.