Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/builder.cpp

    r482373 ra8eb4a  
    6565#include "molecule.hpp"
    6666#include "periodentafel.hpp"
     67#include "version.h"
    6768
    6869/********************************************* Subsubmenu routine ************************************/
     
    12471248  ofstream output;
    12481249  molecule *mol = new molecule(periode);
     1250  mol->SetNameFromFilename(ConfigFileName);
    12491251
    12501252  if (!strcmp(configuration->configpath, configuration->GetDefaultPath())) {
     
    13851387  int argptr;
    13861388  molecule *mol = NULL;
    1387   string BondGraphFileName("");
     1389  string BondGraphFileName("\n");
    13881390  int verbosity = 0;
    13891391  strncpy(configuration.databasepath, LocalPath, MAXSTRINGSIZE-1);
     
    15391541       mol = new molecule(periode);
    15401542       mol->ActiveFlag = true;
     1543       if (ConfigFileName != NULL)
     1544         mol->SetNameFromFilename(ConfigFileName);
    15411545       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       }
    15421554     }
    15431555
     
    15631575                else {
    15641576                  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//                  }
    15651589                  configPresent = present;
    15661590                }
     
    17811805                start = clock();
    17821806                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;
    17841809                //FindDistributionOfEllipsoids(T, &LCList, N, number, filename.c_str());
    17851810                end = clock();
    17861811                Log() << Verbose(0) << "Clocks for this operation: " << (end-start) << ", time: " << ((double)(end-start)/CLOCKS_PER_SEC) << "s." << endl;
    17871812                delete(LCList);
     1813                delete(T);
    17881814                argptr+=2;
    17891815              }
     
    20812107                if (volume != -1)
    20822108                  ExitFlag = 255;
    2083                   eLog() << Verbose(0) << "Not enough or invalid arguments given for suspension: -u <density>" << endl;
     2109                  eLog() << Verbose(0) << "Not enough arguments given for suspension: -u <density>" << endl;
    20842110                  performCriticalExit();
    20852111              } else {
     
    21972223  int j;
    21982224
     2225  cout << ESPACKVersion << endl;
     2226
    21992227  setVerbosity(0);
    22002228
Note: See TracChangeset for help on using the changeset viewer.