Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/builder.cpp

    r3930eb r481601  
    4949
    5050using namespace std;
     51
     52#include <cstring>
    5153
    5254#include "analysis_correlation.hpp"
     
    14151417            Log() << Verbose(0) << "\t-e <file>\tSets the databases path to be parsed (default: ./)." << endl;
    14161418            Log() << Verbose(0) << "\t-E <id> <Z>\tChange atom <id>'s element to <Z>, <id> begins at 0." << 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;
     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;
    14191421            Log() << Verbose(0) << "\t-g <file>\tParses a bond length table from the given file." << endl;
    14201422            Log() << Verbose(0) << "\t-h/-H/-?\tGive this help screen." << endl;
     
    15491551     if (configuration.BG == NULL) {
    15501552       configuration.BG = new BondGraph(configuration.GetIsAngstroem());
    1551        if ((BondGraphFileName.empty()) && (configuration.BG->LoadBondLengthTable(BondGraphFileName))) {
     1553       if ((!BondGraphFileName.empty()) && (configuration.BG->LoadBondLengthTable(BondGraphFileName))) {
    15521554         Log() << Verbose(0) << "Bond length table loaded successfully." << endl;
    15531555       } else {
     
    16581660              Log() << Verbose(1) << "Dissecting molecular system into a set of disconnected subgraphs ... " << endl;
    16591661              // @TODO rather do the dissection afterwards
    1660               molecules->DissectMoleculeIntoConnectedSubgraphs(mol,&configuration);
     1662              molecules->DissectMoleculeIntoConnectedSubgraphs(periode, &configuration);
    16611663              mol = NULL;
    16621664              if (molecules->ListOfMolecules.size() != 0) {
     
    17061708                int ranges[NDIM] = {1,1,1};
    17071709                CorrelationToSurfaceMap *surfacemap = PeriodicCorrelationToSurface( molecules, elemental, TesselStruct, LCList, ranges );
     1710                OutputCorrelationToSurface(&output, surfacemap);
    17081711                BinPairMap *binmap = BinData( surfacemap, 0.5, 0., 0. );
    17091712                OutputCorrelation ( &binoutput, binmap );
     
    17361739              if (argptr+6 >=argc) {
    17371740                ExitFlag = 255;
    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;
     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;
    17391742                performCriticalExit();
    17401743              } else {
     
    17421745                Log() << Verbose(1) << "Filling Box with water molecules." << endl;
    17431746                // construct water molecule
    1744                 molecule *filler = new molecule(periode);;
     1747                molecule *filler = new molecule(periode);
    17451748                molecule *Filling = NULL;
    17461749                atom *second = NULL, *third = NULL;
     1750//                first = new atom();
     1751//                first->type = periode->FindElement(5);
     1752//                first->x.Zero();
     1753//                filler->AddAtom(first);
    17471754                first = new atom();
    1748                 first->type = periode->FindElement(5);
    1749                 first->x.Zero();
     1755                first->type = periode->FindElement(1);
     1756                first->x.Init(0.441, -0.143, 0.);
    17501757                filler->AddAtom(first);
    1751 //                first = new atom();
    1752 //                first->type = periode->FindElement(1);
    1753 //                first->x.Init(0.441, -0.143, 0.);
    1754 //                filler->AddAtom(first);
    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);
     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);
    17651768                // call routine
    17661769                double distance[NDIM];
Note: See TracChangeset for help on using the changeset viewer.