Changeset 451d7a for molecuilder/src


Ignore:
Timestamp:
Feb 10, 2009, 12:04:37 PM (17 years ago)
Author:
Frederik Heber <heber@…>
Children:
c830e8e
Parents:
e08f45
Message:

Gaussian basis for MPQC input files can now be specified with -B switch

builder.cpp: -B in ParseCommandLineOptions
molecules.hpp: configuration::basis added
config.cpp: SaveMPQC() takes configuration::basis as name

Location:
molecuilder/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/builder.cpp

    re08f45 r451d7a  
    807807                                                cout << "\t-A <source>\tCreate adjacency list from bonds parsed from 'dbond'-style file." <<endl;
    808808                                                cout << "\t-b x1 x2 x3\tCenter atoms in domain with given edge lengths of (x1,x2,x3)." << endl;
     809                                                cout << "\t-B <basis>\tSetting basis to store to MPQC config files." << endl;
    809810                                                cout << "\t-c x1 x2 x3\tCenter atoms in domain with a minimum distance to boundary of (x1,x2,x3)." << endl;
    810811                                                cout << "\t-D <bond distance>\tDepth-First-Search Analysis of the molecule, giving cycles and tree/back edges." << endl;
     
    960961                                if (config_present == present) {
    961962                                        switch(argv[argptr-1][1]) {
     963                                                case 'B':
     964                                                        if ((argptr >= argc) || (argv[argptr][0] == '-')) {
     965                                                                ExitFlag = 255;
     966                                                                cerr << "Not enough or invalid arguments given for setting MPQC basis: -B <basis name>" << endl;
     967                                                        } else {
     968                                                                configuration.basis = argv[argptr];
     969                                                                cout << Verbose(1) << "Setting MPQC basis to " << configuration.basis << "." << endl;
     970                                                                argptr+=1;
     971                                                        }
     972                                                        break;
    962973                                                case 'D':
    963974                                                        ExitFlag = 1;
  • molecuilder/src/config.cpp

    re08f45 r451d7a  
    2323        configpath[0]='\0';
    2424        configname[0]='\0';
     25        basis = "3-21G";
    2526       
    2627        FastParsing = false;
     
    11351136        *output << ")" << endl;
    11361137        *output << "basis<GaussianBasisSet>: (" << endl;
    1137         *output << "\tname = \"3-21G\"" << endl;
     1138        *output << "\tname = \""<< basis << "\"" << endl;
    11381139        *output << "\tmolecule = $:molecule" << endl;
    11391140        *output << ")" << endl;
  • molecuilder/src/molecules.hpp

    re08f45 r451d7a  
    385385                bool FastParsing;
    386386                double Deltat;
     387                string basis;
    387388
    388389                private:
Note: See TracChangeset for help on using the changeset viewer.