Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/builder_init.cpp

    r4e855e r1d5a871  
    1919
    2020#include "CodePatterns/MemDebug.hpp"
    21 
    22 #include <iostream>
    2321
    2422#include "bondgraph.hpp"
     
    109107    World::getInstance().getConfig()->BG = new BondGraph(World::getInstance().getConfig()->GetIsAngstroem());
    110108    if (boost::filesystem::exists(BondGraphFileName)) {
    111       std::ifstream input(BondGraphFileName.c_str());
    112       if ((input.good()) && (World::getInstance().getConfig()->BG->LoadBondLengthTable(input))) {
     109      if (World::getInstance().getConfig()->BG->LoadBondLengthTable(BondGraphFileName)) {
    113110        DoLog(0) && (Log() << Verbose(0) << "Bond length table loaded successfully." << endl);
    114111      } else {
    115112        DoeLog(1) && (eLog()<< Verbose(1) << "Bond length table loading failed." << endl);
    116113      }
    117       input.close();
    118114    }
    119115  }
Note: See TracChangeset for help on using the changeset viewer.