Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Legacy/oldmenu.cpp

    r35b698 rbdc91e  
    1010
    1111#include "Legacy/oldmenu.hpp"
     12#include "analysis_bonds.hpp"
    1213#include "analysis_correlation.hpp"
    1314#include "World.hpp"
     
    509510  Log() << Verbose(0) << " f - calculate temperature from current velocity" << endl;
    510511  Log() << Verbose(0) << " g - output all temperatures per step from velocities" << endl;
     512  Log() << Verbose(0) << " h - count the number of hydrogen bonds" << endl;
    511513  Log() << Verbose(0) << "all else - go back" << endl;
    512514  Log() << Verbose(0) << "===============================================" << endl;
     
    574576        const LinkedCell *LCList = NULL;
    575577        LCList = new LinkedCell(mol, 10.);
    576         FindConvexBorder(mol, TesselStruct, LCList, NULL);
     578        Boundaries *BoundaryPoints = NULL;
     579        FindConvexBorder(mol, BoundaryPoints TesselStruct, LCList, NULL);
    577580        double clustervolume = VolumeOfConvexEnvelope(TesselStruct, configuration);
    578581        Log() << Verbose(0) << "The tesselated surface area is " << clustervolume << "." << endl;\
     
    597600        output->close();
    598601        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;
    599615      }
    600616      break;
Note: See TracChangeset for help on using the changeset viewer.