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