Changes in src/builder.cpp [482373:a8eb4a]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/builder.cpp
r482373 ra8eb4a 65 65 #include "molecule.hpp" 66 66 #include "periodentafel.hpp" 67 #include "version.h" 67 68 68 69 /********************************************* Subsubmenu routine ************************************/ … … 1247 1248 ofstream output; 1248 1249 molecule *mol = new molecule(periode); 1250 mol->SetNameFromFilename(ConfigFileName); 1249 1251 1250 1252 if (!strcmp(configuration->configpath, configuration->GetDefaultPath())) { … … 1385 1387 int argptr; 1386 1388 molecule *mol = NULL; 1387 string BondGraphFileName(" ");1389 string BondGraphFileName("\n"); 1388 1390 int verbosity = 0; 1389 1391 strncpy(configuration.databasepath, LocalPath, MAXSTRINGSIZE-1); … … 1539 1541 mol = new molecule(periode); 1540 1542 mol->ActiveFlag = true; 1543 if (ConfigFileName != NULL) 1544 mol->SetNameFromFilename(ConfigFileName); 1541 1545 molecules->insert(mol); 1546 } 1547 if (configuration.BG == NULL) { 1548 configuration.BG = new BondGraph(configuration.GetIsAngstroem()); 1549 if ((BondGraphFileName.empty()) && (configuration.BG->LoadBondLengthTable(BondGraphFileName))) { 1550 Log() << Verbose(0) << "Bond length table loaded successfully." << endl; 1551 } else { 1552 eLog() << Verbose(1) << "Bond length table loading failed." << endl; 1553 } 1542 1554 } 1543 1555 … … 1563 1575 else { 1564 1576 Log() << Verbose(2) << "File found and parsed." << endl; 1577 // @TODO rather do the dissection afterwards 1578 // mol->SetNameFromFilename(argv[argptr]); 1579 // molecules->ListOfMolecules.remove(mol); 1580 // molecules->DissectMoleculeIntoConnectedSubgraphs(mol,&configuration); 1581 // delete(mol); 1582 // if (molecules->ListOfMolecules.size() != 0) { 1583 // for (MoleculeList::iterator ListRunner = molecules->ListOfMolecules.begin(); ListRunner != molecules->ListOfMolecules.end(); ListRunner++) 1584 // if ((*ListRunner)->ActiveFlag) { 1585 // mol = *ListRunner; 1586 // break; 1587 // } 1588 // } 1565 1589 configPresent = present; 1566 1590 } … … 1781 1805 start = clock(); 1782 1806 LCList = new LinkedCell(Boundary, atof(argv[argptr])*2.); 1783 FindNonConvexBorder(Boundary, T, LCList, atof(argv[argptr]), argv[argptr+1]); 1807 if (!FindNonConvexBorder(Boundary, T, LCList, atof(argv[argptr]), argv[argptr+1])) 1808 ExitFlag = 255; 1784 1809 //FindDistributionOfEllipsoids(T, &LCList, N, number, filename.c_str()); 1785 1810 end = clock(); 1786 1811 Log() << Verbose(0) << "Clocks for this operation: " << (end-start) << ", time: " << ((double)(end-start)/CLOCKS_PER_SEC) << "s." << endl; 1787 1812 delete(LCList); 1813 delete(T); 1788 1814 argptr+=2; 1789 1815 } … … 2081 2107 if (volume != -1) 2082 2108 ExitFlag = 255; 2083 eLog() << Verbose(0) << "Not enough or invalidarguments given for suspension: -u <density>" << endl;2109 eLog() << Verbose(0) << "Not enough arguments given for suspension: -u <density>" << endl; 2084 2110 performCriticalExit(); 2085 2111 } else { … … 2197 2223 int j; 2198 2224 2225 cout << ESPACKVersion << endl; 2226 2199 2227 setVerbosity(0); 2200 2228
Note:
See TracChangeset
for help on using the changeset viewer.