Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified src/builder_init.cpp

    r1d5a871 r4e855e  
    1919
    2020#include "CodePatterns/MemDebug.hpp"
     21
     22#include <iostream>
    2123
    2224#include "bondgraph.hpp"
     
    107109    World::getInstance().getConfig()->BG = new BondGraph(World::getInstance().getConfig()->GetIsAngstroem());
    108110    if (boost::filesystem::exists(BondGraphFileName)) {
    109       if (World::getInstance().getConfig()->BG->LoadBondLengthTable(BondGraphFileName)) {
     111      std::ifstream input(BondGraphFileName.c_str());
     112      if ((input.good()) && (World::getInstance().getConfig()->BG->LoadBondLengthTable(input))) {
    110113        DoLog(0) && (Log() << Verbose(0) << "Bond length table loaded successfully." << endl);
    111114      } else {
    112115        DoeLog(1) && (eLog()<< Verbose(1) << "Bond length table loading failed." << endl);
    113116      }
     117      input.close();
    114118    }
    115119  }
Note: See TracChangeset for help on using the changeset viewer.