Changes in src/bondgraph.cpp [83f176:97b825]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/bondgraph.cpp
r83f176 r97b825 1 /*2 * Project: MoleCuilder3 * Description: creates and alters molecular systems4 * 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 8 1 /* 9 2 * bondgraph.cpp … … 12 5 * Author: heber 13 6 */ 14 15 // include config.h16 #ifdef HAVE_CONFIG_H17 #include <config.h>18 #endif19 7 20 8 #include "Helpers/MemDebug.hpp" … … 144 132 145 133 for (molecule::const_iterator iter = mol->begin(); iter != mol->end(); ++iter) { 146 if ((*iter)->getType()-> getCovalentRadius()> max_distance)147 max_distance = (*iter)->getType()-> getCovalentRadius();134 if ((*iter)->getType()->CovalentRadius > max_distance) 135 max_distance = (*iter)->getType()->CovalentRadius; 148 136 } 149 137 max_distance *= 2.; … … 161 149 void BondGraph::CovalentMinMaxDistance(BondedParticle * const Walker, BondedParticle * const OtherWalker, double &MinDistance, double &MaxDistance, bool IsAngstroem) 162 150 { 163 MinDistance = OtherWalker->getType()-> getCovalentRadius() + Walker->getType()->getCovalentRadius();151 MinDistance = OtherWalker->getType()->CovalentRadius + Walker->getType()->CovalentRadius; 164 152 MinDistance *= (IsAngstroem) ? 1. : 1. / AtomicLengthToAngstroem; 165 153 MaxDistance = MinDistance + BondThreshold; … … 182 170 CovalentMinMaxDistance(Walker, OtherWalker, MinDistance, MaxDistance, IsAngstroem); 183 171 } else { 184 MinDistance = GetBondLength(Walker->getType()-> getAtomicNumber()-1, OtherWalker->getType()->getAtomicNumber()-1);172 MinDistance = GetBondLength(Walker->getType()->Z-1, OtherWalker->getType()->Z-1); 185 173 MinDistance *= (IsAngstroem) ? 1. : 1. / AtomicLengthToAngstroem; 186 174 MaxDistance = MinDistance + BondThreshold;
Note:
See TracChangeset
for help on using the changeset viewer.