From 6e85032a2339ee846d1615df3afb8505526cd830 Mon Sep 17 00:00:00 2001 From: Mikael Lund Date: Mon, 1 Jul 2024 13:10:22 +0200 Subject: [PATCH] Output inter-particle bond info (#450) --- src/energy.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/energy.cpp b/src/energy.cpp index fb60afd2d..8c5423311 100644 --- a/src/energy.cpp +++ b/src/energy.cpp @@ -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(indices, " ")); + faunus_logger->info("{}: adding inter-particle bonds involving indices [ {}]", name, + indices.str()); bond->setEnergyFunction(spc.particles); } }