Changeset cc9225 for molecuilder/src/builder.cpp
- Timestamp:
- Nov 24, 2009, 3:34:49 PM (16 years ago)
- Children:
- 1a3354
- Parents:
- 7d1ad9
- File:
-
- 1 edited
-
molecuilder/src/builder.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/builder.cpp
r7d1ad9 rcc9225 1247 1247 ofstream output; 1248 1248 molecule *mol = new molecule(periode); 1249 mol->SetNameFromFilename(ConfigFileName); 1249 1250 1250 1251 if (!strcmp(configuration->configpath, configuration->GetDefaultPath())) { … … 1385 1386 int argptr; 1386 1387 molecule *mol = NULL; 1387 string BondGraphFileName(" ");1388 string BondGraphFileName("\n"); 1388 1389 int verbosity = 0; 1389 1390 strncpy(configuration.databasepath, LocalPath, MAXSTRINGSIZE-1); … … 1539 1540 mol = new molecule(periode); 1540 1541 mol->ActiveFlag = true; 1542 if (ConfigFileName != NULL) 1543 mol->SetNameFromFilename(ConfigFileName); 1541 1544 molecules->insert(mol); 1545 } 1546 if (configuration.BG == NULL) { 1547 configuration.BG = new BondGraph(configuration.GetIsAngstroem()); 1548 if ((BondGraphFileName.empty()) && (configuration.BG->LoadBondLengthTable(BondGraphFileName))) { 1549 Log() << Verbose(0) << "Bond length table loaded successfully." << endl; 1550 } else { 1551 eLog() << Verbose(1) << "Bond length table loading failed." << endl; 1552 } 1542 1553 } 1543 1554 … … 1563 1574 else { 1564 1575 Log() << Verbose(2) << "File found and parsed." << endl; 1576 mol->SetNameFromFilename(argv[argptr]); 1577 molecules->ListOfMolecules.remove(mol); 1578 molecules->DissectMoleculeIntoConnectedSubgraphs(mol,&configuration); 1579 if (molecules->ListOfMolecules.size() != 0) { 1580 for (MoleculeList::iterator ListRunner = molecules->ListOfMolecules.begin(); ListRunner != molecules->ListOfMolecules.end(); ListRunner++) 1581 if ((*ListRunner)->ActiveFlag) { 1582 mol = *ListRunner; 1583 break; 1584 } 1585 } 1565 1586 configPresent = present; 1566 1587 }
Note:
See TracChangeset
for help on using the changeset viewer.
