Changes in src/Legacy/oldmenu.cpp [35b698:bdc91e]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Legacy/oldmenu.cpp
r35b698 rbdc91e 10 10 11 11 #include "Legacy/oldmenu.hpp" 12 #include "analysis_bonds.hpp" 12 13 #include "analysis_correlation.hpp" 13 14 #include "World.hpp" … … 509 510 Log() << Verbose(0) << " f - calculate temperature from current velocity" << endl; 510 511 Log() << Verbose(0) << " g - output all temperatures per step from velocities" << endl; 512 Log() << Verbose(0) << " h - count the number of hydrogen bonds" << endl; 511 513 Log() << Verbose(0) << "all else - go back" << endl; 512 514 Log() << Verbose(0) << "===============================================" << endl; … … 574 576 const LinkedCell *LCList = NULL; 575 577 LCList = new LinkedCell(mol, 10.); 576 FindConvexBorder(mol, TesselStruct, LCList, NULL); 578 Boundaries *BoundaryPoints = NULL; 579 FindConvexBorder(mol, BoundaryPoints TesselStruct, LCList, NULL); 577 580 double clustervolume = VolumeOfConvexEnvelope(TesselStruct, configuration); 578 581 Log() << Verbose(0) << "The tesselated surface area is " << clustervolume << "." << endl;\ … … 597 600 output->close(); 598 601 delete(output); 602 } 603 break; 604 case 'h': 605 { 606 int Z1; 607 cout << "Please enter first interface element: "; 608 cin >> Z1; 609 const element * InterfaceElement = World::getInstance().getPeriode()->FindElement(Z1); 610 int Z2; 611 cout << "Please enter second interface element: "; 612 cin >> Z2; 613 const element * InterfaceElement2 = World::getInstance().getPeriode()->FindElement(Z2); 614 cout << endl << "There are " << CountHydrogenBridgeBonds(World::getInstance().getMolecules(), InterfaceElement, InterfaceElement2) << " hydrogen bridges with connections to " << (InterfaceElement != 0 ? InterfaceElement->name : "None") << " and " << (InterfaceElement2 != 0 ? InterfaceElement2->name : "None") << "." << endl; 599 615 } 600 616 break;
Note:
See TracChangeset
for help on using the changeset viewer.