Skip to content

Commit

Permalink
topo: ignore gap link in apply_restraints_from_link()
Browse files Browse the repository at this point in the history
  • Loading branch information
keitaroyam committed Aug 1, 2024
1 parent 0b21552 commit f50df17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/topo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ std::vector<Topo::Rule> Topo::apply_restraints(const Restraints& rt,
}

void Topo::apply_restraints_from_link(Link& link, const MonLib& monlib) {
if (link.link_id.empty())
if (link.link_id.empty() || link.link_id == "gap")
return;
const ChemLink* chem_link = monlib.get_link(link.link_id);
if (!chem_link) {
Expand Down

0 comments on commit f50df17

Please sign in to comment.