Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified src/builder.cpp

    r68f03d rb32dbb  
    7070#include "molecule.hpp"
    7171#include "periodentafel.hpp"
     72#include "tesselationhelpers.hpp"
    7273#include "UIElements/UIFactory.hpp"
    7374#include "UIElements/MainWindow.hpp"
     
    15191520        switch(argv[argptr-1][1]) {
    15201521          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/-H/-?\tGive this help screen." << 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);
    15411542            DoLog(0) && (Log() << Verbose(0) << "\t-I\t Dissect current system of molecules into a set of disconnected (subgraphs of) molecules." << endl);
    15421543            DoLog(0) && (Log() << Verbose(0) << "\t-j\t<path> Store all bonds to file." << endl);
     
    18191820              }
    18201821              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;
    18211835            case 'C':
    18221836              {
     
    20892103              } else {
    20902104                class Tesselation *T = NULL;
     2105                class Tesselation *Convex = NULL;
    20912106                const LinkedCell *LCList = NULL;
     2107                const LinkedCell *LCListConvex = NULL;
    20922108                molecule * Boundary = NULL;
    20932109                //string filename(argv[argptr+1]);
     
    21092125                if (!FindNonConvexBorder(Boundary, T, LCList, atof(argv[argptr]), argv[argptr+1]))
    21102126                  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], "");
    21112134                //FindDistributionOfEllipsoids(T, &LCList, N, number, filename.c_str());
    21122135                end = clock();
Note: See TracChangeset for help on using the changeset viewer.