Changes in src/bondgraph.cpp [244a84:a67d19]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/bondgraph.cpp
r244a84 ra67d19 9 9 10 10 #include "atom.hpp" 11 #include "bond.hpp" 11 12 #include "bondgraph.hpp" 12 13 #include "element.hpp" … … 49 50 // allocate MatrixContainer 50 51 if (BondLengthMatrix != NULL) { 51 Log() << Verbose(1) << "MatrixContainer for Bond length already present, removing." << endl;52 DoLog(1) && (Log() << Verbose(1) << "MatrixContainer for Bond length already present, removing." << endl); 52 53 delete(BondLengthMatrix); 53 54 } … … 55 56 56 57 // parse in matrix 57 if ( status = TempContainer->ParseMatrix(filename.c_str(), 0, 1, 0)) {58 Log() << Verbose(1) << "Parsing bond length matrix successful." << endl;58 if ((status = TempContainer->ParseMatrix(filename.c_str(), 0, 1, 0))) { 59 DoLog(1) && (Log() << Verbose(1) << "Parsing bond length matrix successful." << endl); 59 60 } else { 60 eLog() << Verbose(1) << "Parsing bond length matrix failed." << endl;61 DoeLog(1) && (eLog()<< Verbose(1) << "Parsing bond length matrix failed." << endl); 61 62 } 62 63 … … 86 87 bool BondGraph::ConstructBondGraph(molecule * const mol) 87 88 { 88 bool status = true; 89 Info FunctionInfo(__func__); 90 bool status = true; 89 91 90 92 if (mol->start->next == mol->end) // only construct if molecule is not empty … … 119 121 double BondGraph::SetMaxDistanceToMaxOfCovalentRadii(const molecule * const mol) 120 122 { 123 Info FunctionInfo(__func__); 121 124 max_distance = 0.; 122 125 … … 159 162 { 160 163 if (BondLengthMatrix == NULL) {// safety measure if no matrix has been parsed yet 161 eLog() << Verbose(2) << "BondLengthMatrixMinMaxDistance() called without having parsed the bond length matrix yet!" << endl;164 DoeLog(2) && (eLog()<< Verbose(2) << "BondLengthMatrixMinMaxDistance() called without having parsed the bond length matrix yet!" << endl); 162 165 CovalentMinMaxDistance(Walker, OtherWalker, MinDistance, MaxDistance, IsAngstroem); 163 166 } else { … … 168 171 } 169 172 }; 170
Note:
See TracChangeset
for help on using the changeset viewer.