- Timestamp:
- Mar 16, 2024, 10:22:50 AM (20 months ago)
- Branches:
- Candidate_v1.7.0, stable
- Children:
- c099dc
- Parents:
- 9782e20
- git-author:
- Frederik Heber <frederik.heber@…> (03/16/24 09:40:05)
- git-committer:
- Frederik Heber <frederik.heber@…> (03/16/24 10:22:50)
- Location:
- src/Graph
- Files:
-
- 2 edited
-
BondGraph.cpp (modified) (1 diff)
-
BondGraph.hpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/Graph/BondGraph.cpp
r9782e20 r19832d 125 125 int secondZ) const 126 126 { 127 // returns 1. as an at least useful length 127 128 int firstIndex = firstZ-1; 128 129 int secondIndex = secondZ-1; 129 130 double return_length; 130 131 if ((firstIndex < 0) || (firstIndex >= (int)BondLengthMatrix->Matrix[0].size())) 131 return -1.;132 return 1.; 132 133 if ((secondIndex < 0) || (secondIndex >= (int)BondLengthMatrix->Matrix[0][firstIndex].size())) 133 return -1.;134 return 1.; 134 135 if (BondLengthMatrix == NULL) { 135 return_length = -1.;136 return_length = 1.; 136 137 } else { 137 138 return_length = BondLengthMatrix->Matrix[0][firstIndex][secondIndex]; -
src/Graph/BondGraph.hpp
r9782e20 r19832d 415 415 416 416 /** Returns the BondLengthMatrix entry for a given index pair. 417 * 418 * \note This will return a bond length of 1. if we cannot find an entry. 419 * 417 420 * \param firstelement index/atom number of first element (row index) 418 421 * \param secondelement index/atom number of second element (column index)
Note:
See TracChangeset
for help on using the changeset viewer.
