Changeset 08b88b for molecuilder/src/bondgraph.cpp
- Timestamp:
- Nov 3, 2009, 2:34:02 PM (16 years ago)
- Children:
- c1b4a4
- Parents:
- 5f9f8b
- git-author:
- Frederik Heber <heber@…> (11/03/09 14:27:15)
- git-committer:
- Frederik Heber <heber@…> (11/03/09 14:34:02)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/bondgraph.cpp
r5f9f8b r08b88b 13 13 #include "molecule.hpp" 14 14 #include "parser.hpp" 15 #include "periodentafel.hpp" 15 16 #include "vector.hpp" 16 17 … … 18 19 * This classes contains typical bond lengths and thus may be used to construct a bond graph for a given molecule. 19 20 */ 20 BondGraph::BondGraph(bool IsA) : BondLengthMatrix(NULL), IsAngstroem(IsA)21 BondGraph::BondGraph(bool IsA) : BondLengthMatrix(NULL), max_distance(0), IsAngstroem(IsA) 21 22 { 22 23 }; … … 104 105 }; 105 106 107 /** Determines the maximum of all element::CovalentRadius. 108 * \param *out output stream for debugging 109 * \param *periode periodentafel with all elements. 110 */ 111 double BondGraph::SetMaxDistanceToMaxOfCovalentRadii(ofstream * const out, const periodentafel * const periode) 112 { 113 max_distance = 0.; 114 115 element * Runner = periode->start; 116 while (Runner->next != periode->end) { 117 Runner = Runner->next; 118 if (Runner->CovalentRadius > max_distance) 119 max_distance = Runner->CovalentRadius; 120 } 121 max_distance *= 2.; 122 123 return max_distance; 124 }; 125 106 126 /** Returns bond criterion for given pair based on covalent radius. 107 127 * \param *Walker first BondedParticle
Note:
See TracChangeset
for help on using the changeset viewer.