Changeset 38bcbe for src/Bond/StretchBond.cpp
- Timestamp:
- Apr 23, 2021, 8:43:27 PM (5 years ago)
- Branches:
- Candidate_v1.7.0, stable
- Children:
- ea30e6
- Parents:
- 4de4f6
- git-author:
- Frederik Heber <frederik.heber@…> (10/04/20 21:45:25)
- git-committer:
- Frederik Heber <frederik.heber@…> (04/23/21 20:43:27)
- File:
-
- 1 edited
-
src/Bond/StretchBond.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Bond/StretchBond.cpp
r4de4f6 r38bcbe 51 51 #include "Descriptors/AtomIdDescriptor.hpp" 52 52 #include "Descriptors/MoleculeIdDescriptor.hpp" 53 #include "Element/element.hpp" 54 #include "Graph/BondGraph.hpp" 53 55 #include "Graph/BoostGraphCreator.hpp" 54 56 #include "Graph/BreadthFirstSearchGatherer.hpp" … … 93 95 } 94 96 95 bool StretchBondUtil::operator()( constdouble newdistance)97 bool StretchBondUtil::operator()(double newdistance) 96 98 { 99 if (newdistance <= 0.) { 100 // get typical distance from table 101 BondGraph *&BG = World::getInstance().getBondGraph(); 102 newdistance = BG->GetBondLength( 103 atoms[0]->getElementNo(), 104 atoms[1]->getElementNo()); 105 LOG(1, "INFO: Using typical bond distance of " << newdistance 106 << " between " << atoms[0]->getElement().getSymbol() << " and " 107 << atoms[1]->getElement().getSymbol() << "."); 108 } 109 97 110 const Vector NormalVector = (atoms[0]->getPosition() - atoms[1]->getPosition())* (1./olddistance); 98 111 const double shift = 0.5*(newdistance - olddistance);
Note:
See TracChangeset
for help on using the changeset viewer.
