Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/builder.cpp

    rb32dbb r68f03d  
    7070#include "molecule.hpp"
    7171#include "periodentafel.hpp"
    72 #include "tesselationhelpers.hpp"
    7372#include "UIElements/UIFactory.hpp"
    7473#include "UIElements/MainWindow.hpp"
     
    15201519        switch(argv[argptr-1][1]) {
    15211520          case 'h':
     1521          case 'H':
    15221522          case '?':
    15231523            DoLog(0) && (Log() << Verbose(0) << "MoleCuilder suite" << endl << "==================" << endl << endl);
     
    15381538            DoLog(0) && (Log() << Verbose(0) << "\t-FF <MaxDistance> <xyz of filler> <dist_x> <dist_y> <dist_z> <epsilon> <randatom> <randmol> <DoRotate>\tFilling Box with water molecules." << endl);
    15391539            DoLog(0) && (Log() << Verbose(0) << "\t-g <file>\tParses a bond length table from the given file." << endl);
    1540             DoLog(0) && (Log() << Verbose(0) << "\t-h/-?\tGive this help screen." << endl);
    1541             DoLog(0) && (Log() << Verbose(0) << "\t-H\tCount Hydrogen bridge bonds." << endl);
     1540            DoLog(0) && (Log() << Verbose(0) << "\t-h/-H/-?\tGive this help screen." << endl);
    15421541            DoLog(0) && (Log() << Verbose(0) << "\t-I\t Dissect current system of molecules into a set of disconnected (subgraphs of) molecules." << endl);
    15431542            DoLog(0) && (Log() << Verbose(0) << "\t-j\t<path> Store all bonds to file." << endl);
     
    18201819              }
    18211820              break;
    1822             case 'H':
    1823               if ((argptr+1 >= argc) || (argv[argptr][0] == '-') || (argv[argptr+1][0] == '-')) {
    1824                 ExitFlag = 255;
    1825                 DoeLog(0) && (eLog()<< Verbose(0) << "Not enough or invalid arguments given for calculating hydrogen bridge bonds: -H <Z1> <Z2>" << endl);
    1826                 performCriticalExit();
    1827               } else {
    1828                 if (ExitFlag == 0) ExitFlag = 1;
    1829                 const element *elemental = periode->FindElement((const int) atoi(argv[argptr]));
    1830                 const element *elemental2 = periode->FindElement((const int) atoi(argv[argptr+1]));
    1831                 cout << endl << "There are " << CountHydrogenBridgeBonds(molecules, elemental, elemental2) << " hydrogen bridges with connections to " << (elemental != 0 ? elemental->name : "None") << " and " << (elemental2 != 0 ? elemental2->name : "None") << "." << endl;
    1832                 argptr+=1;
    1833               }
    1834               break;
    18351821            case 'C':
    18361822              {
     
    21032089              } else {
    21042090                class Tesselation *T = NULL;
    2105                 class Tesselation *Convex = NULL;
    21062091                const LinkedCell *LCList = NULL;
    2107                 const LinkedCell *LCListConvex = NULL;
    21082092                molecule * Boundary = NULL;
    21092093                //string filename(argv[argptr+1]);
     
    21252109                if (!FindNonConvexBorder(Boundary, T, LCList, atof(argv[argptr]), argv[argptr+1]))
    21262110                  ExitFlag = 255;
    2127                 const double ConvexRadius = 20.;
    2128                 LCListConvex = new LinkedCell(Boundary, 2.*ConvexRadius);
    2129 //                setVerbosity(3);
    2130                 if (!FindNonConvexBorder(Boundary, Convex, LCListConvex, ConvexRadius, "ConvexEnvelope"))
    2131                   ExitFlag = 255;
    2132                 CalculateConstrictionPerBoundaryPoint(T, Convex);
    2133                 StoreTrianglesinFile(mol, (const Tesselation *&)T, argv[argptr+1], "");
    21342111                //FindDistributionOfEllipsoids(T, &LCList, N, number, filename.c_str());
    21352112                end = clock();
Note: See TracChangeset for help on using the changeset viewer.