Changeset f23d7d


Ignore:
Timestamp:
Feb 9, 2009, 11:17:38 PM (17 years ago)
Author:
Frederik Heber <heber@…>
Children:
2218dca
Parents:
97c751
Message:

Basis for MPQC can now be specified via command line switch

  • -B is ParseCommandLineOptions added
  • configuration::basis added, set to 3-21G in constructor
  • used in configuration::SaveMPQC()
Location:
molecuilder/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/builder.cpp

    r97c751 rf23d7d  
    697697  char filename[MAXSTRINGSIZE];
    698698  ofstream output;
     699  string basis("3-21G");
    699700
    700701  cout << Verbose(0) << "Storing configuration ... " << endl;
     
    806807            cout << "\t-A <source>\tCreate adjacency list from bonds parsed from 'dbond'-style file." <<endl;
    807808            cout << "\t-b x1 x2 x3\tCenter atoms in domain with given edge lengths of (x1,x2,x3)." << endl;
     809            cout << "\t-B <basis>\tgive gaussian basis for MPQC output." << endl;
    808810            cout << "\t-c x1 x2 x3\tCenter atoms in domain with a minimum distance to boundary of (x1,x2,x3)." << endl;
    809811            cout << "\t-D <bond distance>\tDepth-First-Search Analysis of the molecule, giving cycles and tree/back edges." << endl;
     
    961963        if (config_present == present) {
    962964          switch(argv[argptr-1][1]) {
     965            case 'B':
     966              if ((argptr >= argc) || (!IsValidNumber(argv[argptr])) || (argv[argptr][0] == '-')) {
     967                ExitFlag = 255;
     968                cerr << "Not enough or invalid arguments given for giving gaussian basis: -B <basis>" << endl;
     969              } else {
     970                cout << Verbose(1) << "Setting gaussian basis to " << argv[argptr] << "." << endl;
     971                configuration.basis.copy(argv[argptr],strlen(argv[argptr]));
     972                argptr+=1;
     973              }
     974              break;
    963975            case 'D':
    964976              ExitFlag = 1;
  • molecuilder/src/config.cpp

    r97c751 rf23d7d  
    2323  configpath[0]='\0';
    2424  configname[0]='\0';
     25  basis="3-21G";
    2526 
    2627  FastParsing = false;
     
    11311132  *output << ")" << endl;
    11321133  *output << "basis<GaussianBasisSet>: (" << endl;
    1133   *output << "\tname = \"3-21G\"" << endl;
     1134  *output << "\tname = \"" << basis << "\"" << endl;
    11341135  *output << "\tmolecule = $:molecule" << endl;
    11351136  *output << ")" << endl;
  • molecuilder/src/moleculelist.cpp

    r97c751 rf23d7d  
    393393  int FragmentCounter = 0;
    394394  ofstream output;
     395  string basis("3-21G");
    395396 
    396397  // store the fragments as config and as xyz
     
    404405
    405406    // correct periodic
    406     ListOfMolecules[i]->ScanForPeriodicCorrection(out);
     407    //ListOfMolecules[i]->ScanForPeriodicCorrection(out);
    407408
    408409    // output xyz file
  • molecuilder/src/molecules.hpp

    r97c751 rf23d7d  
    387387    bool FastParsing;
    388388    double Deltat;
     389    string basis;
    389390
    390391    private:
Note: See TracChangeset for help on using the changeset viewer.