Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/builder.cpp

    ra8eb4a r482373  
    6565#include "molecule.hpp"
    6666#include "periodentafel.hpp"
    67 #include "version.h"
    6867
    6968/********************************************* Subsubmenu routine ************************************/
     
    12481247  ofstream output;
    12491248  molecule *mol = new molecule(periode);
    1250   mol->SetNameFromFilename(ConfigFileName);
    12511249
    12521250  if (!strcmp(configuration->configpath, configuration->GetDefaultPath())) {
     
    13871385  int argptr;
    13881386  molecule *mol = NULL;
    1389   string BondGraphFileName("\n");
     1387  string BondGraphFileName("");
    13901388  int verbosity = 0;
    13911389  strncpy(configuration.databasepath, LocalPath, MAXSTRINGSIZE-1);
     
    15411539       mol = new molecule(periode);
    15421540       mol->ActiveFlag = true;
    1543        if (ConfigFileName != NULL)
    1544          mol->SetNameFromFilename(ConfigFileName);
    15451541       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        }
    15541542     }
    15551543
     
    15751563                else {
    15761564                  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 //                  }
    15891565                  configPresent = present;
    15901566                }
     
    18051781                start = clock();
    18061782                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]);
    18091784                //FindDistributionOfEllipsoids(T, &LCList, N, number, filename.c_str());
    18101785                end = clock();
    18111786                Log() << Verbose(0) << "Clocks for this operation: " << (end-start) << ", time: " << ((double)(end-start)/CLOCKS_PER_SEC) << "s." << endl;
    18121787                delete(LCList);
    1813                 delete(T);
    18141788                argptr+=2;
    18151789              }
     
    21072081                if (volume != -1)
    21082082                  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;
    21102084                  performCriticalExit();
    21112085              } else {
     
    22232197  int j;
    22242198
    2225   cout << ESPACKVersion << endl;
    2226 
    22272199  setVerbosity(0);
    22282200
Note: See TracChangeset for help on using the changeset viewer.