Changes in src/bondgraph.cpp [a67d19:717e0c]
- File:
-
- 1 edited
-
src/bondgraph.cpp (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/bondgraph.cpp
ra67d19 r717e0c 9 9 10 10 #include "atom.hpp" 11 #include "bond.hpp"12 11 #include "bondgraph.hpp" 13 12 #include "element.hpp" 14 #include "info.hpp"15 13 #include "log.hpp" 16 14 #include "molecule.hpp" … … 37 35 /** Parses the bond lengths in a given file and puts them int a matrix form. 38 36 * Allocates \a MatrixContainer for BondGraph::BondLengthMatrix, using MatrixContainer::ParseMatrix(), 39 * but only if parsing is successful . Otherwise variable is left as NULL.37 * but only if parsing is successfull. Otherwise variable is left as NULL. 40 38 * \param *out output stream for debugging 41 39 * \param filename file with bond lengths to parse … … 44 42 bool BondGraph::LoadBondLengthTable(const string &filename) 45 43 { 46 Info FunctionInfo(__func__);47 44 bool status = true; 48 45 MatrixContainer *TempContainer = NULL; … … 50 47 // allocate MatrixContainer 51 48 if (BondLengthMatrix != NULL) { 52 DoLog(1) && (Log() << Verbose(1) << "MatrixContainer for Bond length already present, removing." << endl);49 Log() << Verbose(1) << "MatrixContainer for Bond length already present, removing." << endl; 53 50 delete(BondLengthMatrix); 54 51 } … … 56 53 57 54 // parse in matrix 58 if ((status = TempContainer->ParseMatrix(filename.c_str(), 0, 1, 0))) { 59 DoLog(1) && (Log() << Verbose(1) << "Parsing bond length matrix successful." << endl); 60 } else { 61 DoeLog(1) && (eLog()<< Verbose(1) << "Parsing bond length matrix failed." << endl); 62 } 55 status = TempContainer->ParseMatrix(filename.c_str(), 0, 1, 0); 63 56 64 57 // find greatest distance … … 87 80 bool BondGraph::ConstructBondGraph(molecule * const mol) 88 81 { 89 Info FunctionInfo(__func__); 90 bool status = true; 82 bool status = true; 91 83 92 84 if (mol->start->next == mol->end) // only construct if molecule is not empty … … 121 113 double BondGraph::SetMaxDistanceToMaxOfCovalentRadii(const molecule * const mol) 122 114 { 123 Info FunctionInfo(__func__);124 115 max_distance = 0.; 125 116 … … 162 153 { 163 154 if (BondLengthMatrix == NULL) {// safety measure if no matrix has been parsed yet 164 DoeLog(2) && (eLog()<< Verbose(2) << "BondLengthMatrixMinMaxDistance() called without having parsed the bond length matrix yet!" << endl);155 eLog() << Verbose(2) << "BondLengthMatrixMinMaxDistance() called without having parsed the bond length matrix yet!" << endl; 165 156 CovalentMinMaxDistance(Walker, OtherWalker, MinDistance, MaxDistance, IsAngstroem); 166 157 } else { … … 171 162 } 172 163 }; 164
Note:
See TracChangeset
for help on using the changeset viewer.
