Changes in src/bondgraph.cpp [bf3817:83f176]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/bondgraph.cpp
rbf3817 r83f176 1 /* 2 * Project: MoleCuilder 3 * Description: creates and alters molecular systems 4 * Copyright (C) 2010 University of Bonn. All rights reserved. 5 * Please see the LICENSE file or "Copyright notice" in builder.cpp for details. 6 */ 7 1 8 /* 2 9 * bondgraph.cpp … … 137 144 138 145 for (molecule::const_iterator iter = mol->begin(); iter != mol->end(); ++iter) { 139 if ((*iter)->getType()-> CovalentRadius> max_distance)140 max_distance = (*iter)->getType()-> CovalentRadius;146 if ((*iter)->getType()->getCovalentRadius() > max_distance) 147 max_distance = (*iter)->getType()->getCovalentRadius(); 141 148 } 142 149 max_distance *= 2.; … … 154 161 void BondGraph::CovalentMinMaxDistance(BondedParticle * const Walker, BondedParticle * const OtherWalker, double &MinDistance, double &MaxDistance, bool IsAngstroem) 155 162 { 156 MinDistance = OtherWalker->getType()-> CovalentRadius + Walker->getType()->CovalentRadius;163 MinDistance = OtherWalker->getType()->getCovalentRadius() + Walker->getType()->getCovalentRadius(); 157 164 MinDistance *= (IsAngstroem) ? 1. : 1. / AtomicLengthToAngstroem; 158 165 MaxDistance = MinDistance + BondThreshold; … … 175 182 CovalentMinMaxDistance(Walker, OtherWalker, MinDistance, MaxDistance, IsAngstroem); 176 183 } else { 177 MinDistance = GetBondLength(Walker->getType()-> Z-1, OtherWalker->getType()->Z-1);184 MinDistance = GetBondLength(Walker->getType()->getAtomicNumber()-1, OtherWalker->getType()->getAtomicNumber()-1); 178 185 MinDistance *= (IsAngstroem) ? 1. : 1. / AtomicLengthToAngstroem; 179 186 MaxDistance = MinDistance + BondThreshold;
Note:
See TracChangeset
for help on using the changeset viewer.