Changeset d8b94a for src


Ignore:
Timestamp:
Feb 10, 2009, 12:04:37 PM (16 years ago)
Author:
Frederik Heber <heber@…>
Branches:
Action_Thermostats, Add_AtomRandomPerturbation, Add_FitFragmentPartialChargesAction, Add_RotateAroundBondAction, Add_SelectAtomByNameAction, Added_ParseSaveFragmentResults, AddingActions_SaveParseParticleParameters, Adding_Graph_to_ChangeBondActions, Adding_MD_integration_tests, Adding_ParticleName_to_Atom, Adding_StructOpt_integration_tests, AtomFragments, Automaking_mpqc_open, AutomationFragmentation_failures, Candidate_v1.5.4, Candidate_v1.6.0, Candidate_v1.6.1, ChangeBugEmailaddress, ChangingTestPorts, ChemicalSpaceEvaluator, CombiningParticlePotentialParsing, Combining_Subpackages, Debian_Package_split, Debian_package_split_molecuildergui_only, Disabling_MemDebug, Docu_Python_wait, EmpiricalPotential_contain_HomologyGraph, EmpiricalPotential_contain_HomologyGraph_documentation, Enable_parallel_make_install, Enhance_userguide, Enhanced_StructuralOptimization, Enhanced_StructuralOptimization_continued, Example_ManyWaysToTranslateAtom, Exclude_Hydrogens_annealWithBondGraph, FitPartialCharges_GlobalError, Fix_BoundInBox_CenterInBox_MoleculeActions, Fix_ChargeSampling_PBC, Fix_ChronosMutex, Fix_FitPartialCharges, Fix_FitPotential_needs_atomicnumbers, Fix_ForceAnnealing, Fix_IndependentFragmentGrids, Fix_ParseParticles, Fix_ParseParticles_split_forward_backward_Actions, Fix_PopActions, Fix_QtFragmentList_sorted_selection, Fix_Restrictedkeyset_FragmentMolecule, Fix_StatusMsg, Fix_StepWorldTime_single_argument, Fix_Verbose_Codepatterns, Fix_fitting_potentials, Fixes, ForceAnnealing_goodresults, ForceAnnealing_oldresults, ForceAnnealing_tocheck, ForceAnnealing_with_BondGraph, ForceAnnealing_with_BondGraph_continued, ForceAnnealing_with_BondGraph_continued_betteresults, ForceAnnealing_with_BondGraph_contraction-expansion, FragmentAction_writes_AtomFragments, FragmentMolecule_checks_bonddegrees, GeometryObjects, Gui_Fixes, Gui_displays_atomic_force_velocity, ImplicitCharges, IndependentFragmentGrids, IndependentFragmentGrids_IndividualZeroInstances, IndependentFragmentGrids_IntegrationTest, IndependentFragmentGrids_Sole_NN_Calculation, JobMarket_RobustOnKillsSegFaults, JobMarket_StableWorkerPool, JobMarket_unresolvable_hostname_fix, MoreRobust_FragmentAutomation, ODR_violation_mpqc_open, PartialCharges_OrthogonalSummation, PdbParser_setsAtomName, PythonUI_with_named_parameters, QtGui_reactivate_TimeChanged_changes, Recreated_GuiChecks, Rewrite_FitPartialCharges, RotateToPrincipalAxisSystem_UndoRedo, SaturateAtoms_findBestMatching, SaturateAtoms_singleDegree, StoppableMakroAction, Subpackage_CodePatterns, Subpackage_JobMarket, Subpackage_LinearAlgebra, Subpackage_levmar, Subpackage_mpqc_open, Subpackage_vmg, Switchable_LogView, ThirdParty_MPQC_rebuilt_buildsystem, TrajectoryDependenant_MaxOrder, TremoloParser_IncreasedPrecision, TremoloParser_MultipleTimesteps, TremoloParser_setsAtomName, Ubuntu_1604_changes, stable
Children:
1907a7
Parents:
6ac7ee
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:
src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/builder.cpp

    r6ac7ee rd8b94a  
    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;
  • src/config.cpp

    r6ac7ee rd8b94a  
    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;
  • src/molecules.hpp

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