Changeset 543ce4 for molecuilder/src/bondgraph.cpp
- Timestamp:
- Nov 4, 2009, 7:56:04 PM (16 years ago)
- Children:
- 4ef101, aa8542
- Parents:
- ec70ec
- File:
-
- 1 edited
-
molecuilder/src/bondgraph.cpp (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/bondgraph.cpp
rec70ec r543ce4 11 11 #include "bondgraph.hpp" 12 12 #include "element.hpp" 13 #include "log.hpp" 13 14 #include "molecule.hpp" 14 15 #include "parser.hpp" … … 39 40 * \return true - success in parsing file, false - failed to parse the file 40 41 */ 41 bool BondGraph::LoadBondLengthTable( ofstream * const out,const string &filename)42 bool BondGraph::LoadBondLengthTable(const string &filename) 42 43 { 43 44 bool status = true; … … 46 47 // allocate MatrixContainer 47 48 if (BondLengthMatrix != NULL) { 48 *out<< "MatrixContainer for Bond length already present, removing." << endl;49 Log() << Verbose(1) << "MatrixContainer for Bond length already present, removing." << endl; 49 50 delete(BondLengthMatrix); 50 51 } … … 77 78 * \return true - success, false - failed to construct bond structure 78 79 */ 79 bool BondGraph::ConstructBondGraph( ofstream * const out,molecule * const mol)80 bool BondGraph::ConstructBondGraph(molecule * const mol) 80 81 { 81 82 bool status = true; … … 85 86 86 87 if (BondLengthMatrix == NULL) { // no bond length matrix parsed? 87 SetMaxDistanceToMaxOfCovalentRadii( out,mol);88 mol->CreateAdjacencyList( out,max_distance, IsAngstroem, &BondGraph::CovalentMinMaxDistance, this);88 SetMaxDistanceToMaxOfCovalentRadii(mol); 89 mol->CreateAdjacencyList(max_distance, IsAngstroem, &BondGraph::CovalentMinMaxDistance, this); 89 90 } else 90 mol->CreateAdjacencyList( out,max_distance, IsAngstroem, &BondGraph::BondLengthMatrixMinMaxDistance, this);91 mol->CreateAdjacencyList(max_distance, IsAngstroem, &BondGraph::BondLengthMatrixMinMaxDistance, this); 91 92 92 93 return status; … … 110 111 * \param *mol molecule with all atoms and their respective elements. 111 112 */ 112 double BondGraph::SetMaxDistanceToMaxOfCovalentRadii( ofstream * const out,const molecule * const mol)113 double BondGraph::SetMaxDistanceToMaxOfCovalentRadii(const molecule * const mol) 113 114 { 114 115 max_distance = 0.; … … 152 153 { 153 154 if (BondLengthMatrix == NULL) {// safety measure if no matrix has been parsed yet 154 cerr<< Verbose(1) << "WARNING: BondLengthMatrixMinMaxDistance() called without having parsed the bond length matrix yet!" << endl;155 eLog() << Verbose(1) << "WARNING: BondLengthMatrixMinMaxDistance() called without having parsed the bond length matrix yet!" << endl; 155 156 CovalentMinMaxDistance(Walker, OtherWalker, MinDistance, MaxDistance, IsAngstroem); 156 157 } else {
Note:
See TracChangeset
for help on using the changeset viewer.
