Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/builder.cpp

    r481601 r3930eb  
    4949
    5050using namespace std;
    51 
    52 #include <cstring>
    5351
    5452#include "analysis_correlation.hpp"
     
    14171415            Log() << Verbose(0) << "\t-e <file>\tSets the databases path to be parsed (default: ./)." << endl;
    14181416            Log() << Verbose(0) << "\t-E <id> <Z>\tChange atom <id>'s element to <Z>, <id> begins at 0." << endl;
    1419             Log() << Verbose(0) << "\t-f <dist> <order>\tFragments the molecule in BOSSANOVA manner (with/out rings compressed) and stores config files in same dir as config (return code 0 - fragmented, 2 - no fragmentation necessary)." << endl;
    1420             Log() << Verbose(0) << "\t-F <dist_x> <dist_y> <dist_z> <epsilon> <randatom> <randmol> <DoRotate>\tFilling Box with water molecules." << endl;
     1417            Log() << Verbose(0) << "\t-f/F <dist> <order>\tFragments the molecule in BOSSANOVA manner (with/out rings compressed) and stores config files in same dir as config (return code 0 - fragmented, 2 - no fragmentation necessary)." << endl;
     1418            Log() << Verbose(0) << "\t-F\tFilling Box with water molecules." << endl;
    14211419            Log() << Verbose(0) << "\t-g <file>\tParses a bond length table from the given file." << endl;
    14221420            Log() << Verbose(0) << "\t-h/-H/-?\tGive this help screen." << endl;
     
    15511549     if (configuration.BG == NULL) {
    15521550       configuration.BG = new BondGraph(configuration.GetIsAngstroem());
    1553        if ((!BondGraphFileName.empty()) && (configuration.BG->LoadBondLengthTable(BondGraphFileName))) {
     1551       if ((BondGraphFileName.empty()) && (configuration.BG->LoadBondLengthTable(BondGraphFileName))) {
    15541552         Log() << Verbose(0) << "Bond length table loaded successfully." << endl;
    15551553       } else {
     
    16601658              Log() << Verbose(1) << "Dissecting molecular system into a set of disconnected subgraphs ... " << endl;
    16611659              // @TODO rather do the dissection afterwards
    1662               molecules->DissectMoleculeIntoConnectedSubgraphs(periode, &configuration);
     1660              molecules->DissectMoleculeIntoConnectedSubgraphs(mol,&configuration);
    16631661              mol = NULL;
    16641662              if (molecules->ListOfMolecules.size() != 0) {
     
    17081706                int ranges[NDIM] = {1,1,1};
    17091707                CorrelationToSurfaceMap *surfacemap = PeriodicCorrelationToSurface( molecules, elemental, TesselStruct, LCList, ranges );
    1710                 OutputCorrelationToSurface(&output, surfacemap);
    17111708                BinPairMap *binmap = BinData( surfacemap, 0.5, 0., 0. );
    17121709                OutputCorrelation ( &binoutput, binmap );
     
    17391736              if (argptr+6 >=argc) {
    17401737                ExitFlag = 255;
    1741                 eLog() << Verbose(0) << "Not enough or invalid arguments given for filling box with water: -F <dist_x> <dist_y> <dist_z> <boundary> <randatom> <randmol> <DoRotate>" << endl;
     1738                eLog() << Verbose(0) << "Not enough or invalid arguments given for filling box with water: -F <dist_x> <dist_y> <dist_z> <epsilon> <randatom> <randmol> <DoRotate>" << endl;
    17421739                performCriticalExit();
    17431740              } else {
     
    17451742                Log() << Verbose(1) << "Filling Box with water molecules." << endl;
    17461743                // construct water molecule
    1747                 molecule *filler = new molecule(periode);
     1744                molecule *filler = new molecule(periode);;
    17481745                molecule *Filling = NULL;
    17491746                atom *second = NULL, *third = NULL;
     1747                first = new atom();
     1748                first->type = periode->FindElement(5);
     1749                first->x.Zero();
     1750                filler->AddAtom(first);
    17501751//                first = new atom();
    1751 //                first->type = periode->FindElement(5);
    1752 //                first->x.Zero();
     1752//                first->type = periode->FindElement(1);
     1753//                first->x.Init(0.441, -0.143, 0.);
    17531754//                filler->AddAtom(first);
    1754                 first = new atom();
    1755                 first->type = periode->FindElement(1);
    1756                 first->x.Init(0.441, -0.143, 0.);
    1757                 filler->AddAtom(first);
    1758                 second = new atom();
    1759                 second->type = periode->FindElement(1);
    1760                 second->x.Init(-0.464, 1.137, 0.0);
    1761                 filler->AddAtom(second);
    1762                 third = new atom();
    1763                 third->type = periode->FindElement(8);
    1764                 third->x.Init(-0.464, 0.177, 0.);
    1765                 filler->AddAtom(third);
    1766                 filler->AddBond(first, third, 1);
    1767                 filler->AddBond(second, third, 1);
     1755//                second = new atom();
     1756//                second->type = periode->FindElement(1);
     1757//                second->x.Init(-0.464, 1.137, 0.0);
     1758//                filler->AddAtom(second);
     1759//                third = new atom();
     1760//                third->type = periode->FindElement(8);
     1761//                third->x.Init(-0.464, 0.177, 0.);
     1762//                filler->AddAtom(third);
     1763//                filler->AddBond(first, third, 1);
     1764//                filler->AddBond(second, third, 1);
    17681765                // call routine
    17691766                double distance[NDIM];
Note: See TracChangeset for help on using the changeset viewer.