Changeset ad0929
- Timestamp:
- Mar 4, 2024, 9:34:12 PM (20 months ago)
- Branches:
- Candidate_v1.7.0, stable
- Children:
- 9782e20
- Parents:
- 02f14d
- File:
-
- 1 edited
-
src/Graph/BondGraph.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/Graph/BondGraph.cpp
r02f14d rad0929 125 125 int secondZ) const 126 126 { 127 int firstIndex = firstZ-1; 128 int secondIndex = secondZ-1; 127 129 double return_length; 128 if ((first Z < 0) || (firstZ>= (int)BondLengthMatrix->Matrix[0].size()))130 if ((firstIndex < 0) || (firstIndex >= (int)BondLengthMatrix->Matrix[0].size())) 129 131 return -1.; 130 if ((second Z < 0) || (secondZ >= (int)BondLengthMatrix->Matrix[0][firstZ].size()))132 if ((secondIndex < 0) || (secondIndex >= (int)BondLengthMatrix->Matrix[0][firstIndex].size())) 131 133 return -1.; 132 134 if (BondLengthMatrix == NULL) { 133 135 return_length = -1.; 134 136 } else { 135 return_length = BondLengthMatrix->Matrix[0][first Z][secondZ];137 return_length = BondLengthMatrix->Matrix[0][firstIndex][secondIndex]; 136 138 } 137 139 LOG(4, "INFO: Request for length between " << firstZ << " and "
Note:
See TracChangeset
for help on using the changeset viewer.
