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()
File:
1 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;
Note: See TracChangeset for help on using the changeset viewer.