Changes in src/molecule_graph.cpp [952f38:83f176]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/molecule_graph.cpp
r952f38 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 * molecule_graph.cpp … … 6 13 */ 7 14 15 // include config.h 8 16 #ifdef HAVE_CONFIG_H 9 17 #include <config.h> … … 184 192 //Log() << Verbose(1) << "Checking distance " << OtherWalker->x.PeriodicDistanceSquared(&(Walker->x), cell_size) << " against typical bond length of " << bonddistance*bonddistance << "." << endl; 185 193 (BG->*minmaxdistance)(Walker, OtherWalker, MinDistance, MaxDistance, IsAngstroem); 186 const double distance = domain.periodicDistanceSquared(OtherWalker-> x,Walker->x);194 const double distance = domain.periodicDistanceSquared(OtherWalker->getPosition(),Walker->getPosition()); 187 195 const bool status = (distance <= MaxDistance * MaxDistance) && (distance >= MinDistance * MinDistance); 188 196 // Log() << Verbose(1) << "MinDistance is " << MinDistance << " and MaxDistance is " << MaxDistance << "." << endl; … … 737 745 OtherAtom = (*Runner)->GetOtherAtom(Walker); 738 746 #ifdef ADDHYDROGEN 739 if (OtherAtom-> type->Z!= 1) {747 if (OtherAtom->getType()->getAtomicNumber() != 1) { 740 748 #endif 741 749 DoLog(2) && (Log() << Verbose(2) << "Current OtherAtom is: " << OtherAtom->getName() << " for bond " << *(*Runner) << "." << endl);
Note:
See TracChangeset
for help on using the changeset viewer.