Changes in src/builder.cpp [b32dbb:68f03d]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/builder.cpp
rb32dbb r68f03d 70 70 #include "molecule.hpp" 71 71 #include "periodentafel.hpp" 72 #include "tesselationhelpers.hpp"73 72 #include "UIElements/UIFactory.hpp" 74 73 #include "UIElements/MainWindow.hpp" … … 1520 1519 switch(argv[argptr-1][1]) { 1521 1520 case 'h': 1521 case 'H': 1522 1522 case '?': 1523 1523 DoLog(0) && (Log() << Verbose(0) << "MoleCuilder suite" << endl << "==================" << endl << endl); … … 1538 1538 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); 1539 1539 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); 1542 1541 DoLog(0) && (Log() << Verbose(0) << "\t-I\t Dissect current system of molecules into a set of disconnected (subgraphs of) molecules." << endl); 1543 1542 DoLog(0) && (Log() << Verbose(0) << "\t-j\t<path> Store all bonds to file." << endl); … … 1820 1819 } 1821 1820 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;1835 1821 case 'C': 1836 1822 { … … 2103 2089 } else { 2104 2090 class Tesselation *T = NULL; 2105 class Tesselation *Convex = NULL;2106 2091 const LinkedCell *LCList = NULL; 2107 const LinkedCell *LCListConvex = NULL;2108 2092 molecule * Boundary = NULL; 2109 2093 //string filename(argv[argptr+1]); … … 2125 2109 if (!FindNonConvexBorder(Boundary, T, LCList, atof(argv[argptr]), argv[argptr+1])) 2126 2110 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], "");2134 2111 //FindDistributionOfEllipsoids(T, &LCList, N, number, filename.c_str()); 2135 2112 end = clock();
Note:
See TracChangeset
for help on using the changeset viewer.