Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/bondgraph.cpp

    ra67d19 r717e0c  
    99
    1010#include "atom.hpp"
    11 #include "bond.hpp"
    1211#include "bondgraph.hpp"
    1312#include "element.hpp"
    14 #include "info.hpp"
    1513#include "log.hpp"
    1614#include "molecule.hpp"
     
    3735/** Parses the bond lengths in a given file and puts them int a matrix form.
    3836 * 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.
    4038 * \param *out output stream for debugging
    4139 * \param filename file with bond lengths to parse
     
    4442bool BondGraph::LoadBondLengthTable(const string &filename)
    4543{
    46   Info FunctionInfo(__func__);
    4744  bool status = true;
    4845  MatrixContainer *TempContainer = NULL;
     
    5047  // allocate MatrixContainer
    5148  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;
    5350    delete(BondLengthMatrix);
    5451  }
     
    5653
    5754  // 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);
    6356
    6457  // find greatest distance
     
    8780bool BondGraph::ConstructBondGraph(molecule * const mol)
    8881{
    89   Info FunctionInfo(__func__);
    90 bool status = true;
     82  bool status = true;
    9183
    9284  if (mol->start->next == mol->end) // only construct if molecule is not empty
     
    121113double BondGraph::SetMaxDistanceToMaxOfCovalentRadii(const molecule * const mol)
    122114{
    123   Info FunctionInfo(__func__);
    124115  max_distance = 0.;
    125116
     
    162153{
    163154  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;
    165156    CovalentMinMaxDistance(Walker, OtherWalker, MinDistance, MaxDistance, IsAngstroem);
    166157  } else {
     
    171162  }
    172163};
     164
Note: See TracChangeset for help on using the changeset viewer.