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