- Timestamp:
- Aug 11, 2025, 5:43:56 PM (3 months ago)
- Branches:
- Candidate_v1.7.0, stable
- Children:
- ce666c
- Parents:
- c41ce0
- git-author:
- Frederik Heber <frederik.heber@…> (05/07/24 20:05:47)
- git-committer:
- Frederik Heber <frederik.heber@…> (08/11/25 17:43:56)
- Location:
- src/Graph
- Files:
-
- 2 edited
-
BondGraph.cpp (modified) (1 diff)
-
unittests/BondGraphUnitTest.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/Graph/BondGraph.cpp
rc41ce0 r641550 163 163 ASSERT(OtherWalker, "BondGraph::BondLengthMatrixMinMaxDistance() - illegal other element given."); 164 164 range<double> MinMaxDistance(0.,0.); 165 MinMaxDistance.first = GetBondLength(Walker->getAtomicNumber() -1, OtherWalker->getAtomicNumber()-1);165 MinMaxDistance.first = GetBondLength(Walker->getAtomicNumber(), OtherWalker->getAtomicNumber()); 166 166 MinMaxDistance.first *= (IsAngstroem) ? 1. : 1. / AtomicLengthToAngstroem; 167 167 MinMaxDistance.last = MinMaxDistance.first + BondThreshold; -
src/Graph/unittests/BondGraphUnitTest.cpp
rc41ce0 r641550 153 153 { 154 154 CPPUNIT_ASSERT_EQUAL( true , BG->LoadBondLengthTable(test) ); 155 CPPUNIT_ASSERT_EQUAL( 1., BG->GetBondLength( 0,0) );156 CPPUNIT_ASSERT_EQUAL( 1.2, BG->GetBondLength( 0,5) );157 CPPUNIT_ASSERT_EQUAL( 1.5, BG->GetBondLength( 5,5) );155 CPPUNIT_ASSERT_EQUAL( 1., BG->GetBondLength(1,1) ); 156 CPPUNIT_ASSERT_EQUAL( 1.2, BG->GetBondLength(1,6) ); 157 CPPUNIT_ASSERT_EQUAL( 1.5, BG->GetBondLength(6,6) ); 158 158 }; 159 159
Note:
See TracChangeset
for help on using the changeset viewer.
