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