Ignore:
Timestamp:
Feb 2, 2010, 9:43:52 AM (16 years ago)
Author:
Frederik Heber <heber@…>
Children:
2bc06b, 31ccb6, 4bb871a
Parents:
49faa8
Message:

Possibility to store all bonds to file added.

So far we only could store the adjacency (i.e. atom along with all bond partners per line) to file.
For plotting molecules with pgfplots (and maybe for other purposes too) we need to have single tupels of two per line.
Hence, the following additions were implemented:

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/builder.cpp

    r49faa8 r6d0fcaa  
    14221422            Log() << Verbose(0) << "\t-h/-H/-?\tGive this help screen." << endl;
    14231423            Log() << Verbose(0) << "\t-I\t Dissect current system of molecules into a set of disconnected (subgraphs of) molecules." << endl;
     1424            Log() << Verbose(0) << "\t-j\t<path> Store all bonds to file." << endl;
     1425            Log() << Verbose(0) << "\t-J\t<path> Store adjacency per atom to file." << endl;
    14241426            Log() << Verbose(0) << "\t-L <step0> <step1> <prefix>\tStore a linear interpolation between two configurations <step0> and <step1> into single config files with prefix <prefix> and as Trajectories into the current config file." << endl;
    14251427            Log() << Verbose(0) << "\t-m <0/1>\tCalculate (0)/ Align in(1) PAS with greatest EV along z axis." << endl;
     
    17091711                CorrelationToSurfaceMap *surfacemap = PeriodicCorrelationToSurface( molecules, elemental, TesselStruct, LCList, ranges );
    17101712                OutputCorrelationToSurface(&output, surfacemap);
    1711                 BinPairMap *binmap = BinData( surfacemap, 0.5, 0., 0. );
     1713                BinPairMap *binmap = BinData( surfacemap, 0.5, 0., 20. );
    17121714                OutputCorrelation ( &binoutput, binmap );
    17131715                output.close();
     
    17931795              }
    17941796              break;
     1797
     1798            case 'J':
     1799              if (ExitFlag == 0) ExitFlag = 1;
     1800              if ((argptr >= argc) || (argv[argptr][0] == '-')) {
     1801                ExitFlag =255;
     1802                eLog() << Verbose(0) << "Missing path of adjacency file: -j <path>" << endl;
     1803                performCriticalExit();
     1804              } else {
     1805                Log() << Verbose(0) << "Storing adjacency to path " << argv[argptr] << "." << endl;
     1806                configuration.BG->ConstructBondGraph(mol);
     1807                mol->StoreAdjacencyToFile(argv[argptr]);
     1808                argptr+=1;
     1809              }
     1810              break;
     1811
     1812            case 'j':
     1813              if (ExitFlag == 0) ExitFlag = 1;
     1814              if ((argptr >= argc) || (argv[argptr][0] == '-')) {
     1815                ExitFlag =255;
     1816                eLog() << Verbose(0) << "Missing path of bonds file: -j <path>" << endl;
     1817                performCriticalExit();
     1818              } else {
     1819                Log() << Verbose(0) << "Storing bonds to path " << argv[argptr] << "." << endl;
     1820                configuration.BG->ConstructBondGraph(mol);
     1821                mol->StoreBondsToFile(argv[argptr]);
     1822                argptr+=1;
     1823              }
     1824              break;
     1825
    17951826            case 'N':
    17961827              if (ExitFlag == 0) ExitFlag = 1;
Note: See TracChangeset for help on using the changeset viewer.