Changeset 245826 for molecuilder/src/builder.cpp
- Timestamp:
- Oct 30, 2009, 4:09:29 PM (16 years ago)
- Children:
- df0520
- Parents:
- b84ab4
- File:
-
- 1 edited
-
molecuilder/src/builder.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/builder.cpp
rb84ab4 r245826 1451 1451 return 1; 1452 1452 } 1453 // 3b. Find config file name and parse if possible 1453 // 3b. Find config file name and parse if possible, also BondGraphFileName 1454 1454 if (argv[1][0] != '-') { 1455 1455 // simply create a new molecule, wherein the config file is loaded and the manipulation takes place … … 1479 1479 case 1: 1480 1480 cout << "new syntax." << endl; 1481 configuration.Load(ConfigFileName, periode, mol);1481 configuration.Load(ConfigFileName, BondGraphFileName, periode, mol); 1482 1482 configPresent = present; 1483 1483 break; 1484 1484 case 0: 1485 1485 cout << "old syntax." << endl; 1486 configuration.LoadOld(ConfigFileName, periode, mol);1486 configuration.LoadOld(ConfigFileName, BondGraphFileName, periode, mol); 1487 1487 configPresent = present; 1488 1488 break; … … 1494 1494 } else 1495 1495 configPresent = absent; 1496 // 3c. parse the bond graph file if given1497 configuration.BG = new BondGraph(configuration.GetIsAngstroem());1498 if (configuration.BG->LoadBondLengthTable((ofstream *)&cout, BondGraphFileName)) {1499 cout << Verbose(0) << "Bond length table loaded successfully." << endl;1500 } else {1501 cout << Verbose(0) << "Bond length table loading failed." << endl;1502 return 1;1503 }1504 1496 // 4. parse again through options, now for those depending on elements db and config presence 1505 1497 argptr = 1;
Note:
See TracChangeset
for help on using the changeset viewer.
