Changes in src/builder.cpp [481601:3930eb]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/builder.cpp
r481601 r3930eb 49 49 50 50 using namespace std; 51 52 #include <cstring>53 51 54 52 #include "analysis_correlation.hpp" … … 1417 1415 Log() << Verbose(0) << "\t-e <file>\tSets the databases path to be parsed (default: ./)." << endl; 1418 1416 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; 1421 1419 Log() << Verbose(0) << "\t-g <file>\tParses a bond length table from the given file." << endl; 1422 1420 Log() << Verbose(0) << "\t-h/-H/-?\tGive this help screen." << endl; … … 1551 1549 if (configuration.BG == NULL) { 1552 1550 configuration.BG = new BondGraph(configuration.GetIsAngstroem()); 1553 if (( !BondGraphFileName.empty()) && (configuration.BG->LoadBondLengthTable(BondGraphFileName))) {1551 if ((BondGraphFileName.empty()) && (configuration.BG->LoadBondLengthTable(BondGraphFileName))) { 1554 1552 Log() << Verbose(0) << "Bond length table loaded successfully." << endl; 1555 1553 } else { … … 1660 1658 Log() << Verbose(1) << "Dissecting molecular system into a set of disconnected subgraphs ... " << endl; 1661 1659 // @TODO rather do the dissection afterwards 1662 molecules->DissectMoleculeIntoConnectedSubgraphs( periode,&configuration);1660 molecules->DissectMoleculeIntoConnectedSubgraphs(mol,&configuration); 1663 1661 mol = NULL; 1664 1662 if (molecules->ListOfMolecules.size() != 0) { … … 1708 1706 int ranges[NDIM] = {1,1,1}; 1709 1707 CorrelationToSurfaceMap *surfacemap = PeriodicCorrelationToSurface( molecules, elemental, TesselStruct, LCList, ranges ); 1710 OutputCorrelationToSurface(&output, surfacemap);1711 1708 BinPairMap *binmap = BinData( surfacemap, 0.5, 0., 0. ); 1712 1709 OutputCorrelation ( &binoutput, binmap ); … … 1739 1736 if (argptr+6 >=argc) { 1740 1737 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; 1742 1739 performCriticalExit(); 1743 1740 } else { … … 1745 1742 Log() << Verbose(1) << "Filling Box with water molecules." << endl; 1746 1743 // construct water molecule 1747 molecule *filler = new molecule(periode); 1744 molecule *filler = new molecule(periode);; 1748 1745 molecule *Filling = NULL; 1749 1746 atom *second = NULL, *third = NULL; 1747 first = new atom(); 1748 first->type = periode->FindElement(5); 1749 first->x.Zero(); 1750 filler->AddAtom(first); 1750 1751 // 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.); 1753 1754 // 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); 1768 1765 // call routine 1769 1766 double distance[NDIM];
Note:
See TracChangeset
for help on using the changeset viewer.