Skip to content

Commit

Permalink
Output inter-particle bond info (#450)
Browse files Browse the repository at this point in the history
  • Loading branch information
mlund authored Jul 1, 2024
1 parent 596eccc commit 6e85032
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/energy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1016,6 +1016,11 @@ Bonded::Bonded(const Space& spc, BondVector external_bonds = BondVector())
name = "bonded";
updateInternalBonds();
for (auto& bond : this->external_bonds) {
std::stringstream indices;
std::copy(bond->indices.begin(), bond->indices.end(),
std::ostream_iterator<int>(indices, " "));
faunus_logger->info("{}: adding inter-particle bonds involving indices [ {}]", name,
indices.str());
bond->setEnergyFunction(spc.particles);
}
}
Expand Down

0 comments on commit 6e85032

Please sign in to comment.