Changes in src/builder_init.cpp [1d5a871:4e855e]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified src/builder_init.cpp ¶
r1d5a871 r4e855e 19 19 20 20 #include "CodePatterns/MemDebug.hpp" 21 22 #include <iostream> 21 23 22 24 #include "bondgraph.hpp" … … 107 109 World::getInstance().getConfig()->BG = new BondGraph(World::getInstance().getConfig()->GetIsAngstroem()); 108 110 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))) { 110 113 DoLog(0) && (Log() << Verbose(0) << "Bond length table loaded successfully." << endl); 111 114 } else { 112 115 DoeLog(1) && (eLog()<< Verbose(1) << "Bond length table loading failed." << endl); 113 116 } 117 input.close(); 114 118 } 115 119 }
Note:
See TracChangeset
for help on using the changeset viewer.