Changeset a02462 for src


Ignore:
Timestamp:
Jun 11, 2010, 3:48:32 PM (15 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:
a307af
Parents:
aacce8
Message:

Case 'L' is now handled by CommandLineUI.

Location:
src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/Actions/MapOfActions.cpp

    raacce8 ra02462  
    113113  DescriptionMap["element"] = "single element";
    114114  DescriptionMap["elements"] = "set of elements";
    115   DescriptionMap["end-mol"] = "last or end step";
     115  DescriptionMap["end-step"] = "last or end step";
     116  DescriptionMap["id-mapping"] = "whether the identity shall be used in mapping atoms onto atoms or some closest distance measure shall be used";
    116117  DescriptionMap["input"] = "name of input file";
    117118  DescriptionMap["length"] = "length in space";
     
    124125  DescriptionMap["periodic"] = "system is constraint to periodic boundary conditions (y/n)";
    125126  DescriptionMap["position"] = "position in R^3 space";
    126   DescriptionMap["start-mol"] = "first or start step";
     127  DescriptionMap["start-step"] = "first or start step";
    127128
    128129  // short forms for the actions
     
    177178  TypeMap["depth-first-search"] = Double;
    178179  TypeMap["element-db"] = String;
    179   TypeMap["end-mol"] = Molecule;
    180180  TypeMap["fastparsing"] = Boolean;
    181181  TypeMap["fill-molecule"] = String;
     
    197197  TypeMap["scale-box"] = Vector;
    198198  TypeMap["set-basis"] = String;
    199   TypeMap["start-mol"] = Molecule;
    200199  TypeMap["suspend-in-water"] = Double;
    201200  TypeMap["translate-mol"] = Vector;
     
    214213  TypeMap["element"] = Element;
    215214  TypeMap["elements"] = ListOfElements;
     215  TypeMap["end-step"] = Integer;
     216  TypeMap["id-mapping"] = Boolean;
    216217  TypeMap["length"] = Double;
    217218  TypeMap["lengths"] = Vector;
     
    223224  TypeMap["periodic"] = Boolean;
    224225  TypeMap["position"] = Vector;
     226  TypeMap["start-step"] = Integer;
    225227
    226228  // default values for any action that needs one (always string!)
     
    251253  generic.insert("fragment-mol");
    252254  generic.insert("help");
    253 //      generic.insert("linear-interpolate");
     255        generic.insert("linear-interpolate");
    254256//  generic.insert("molecular-volume");
    255257//  generic.insert("nonconvex-envelope");
     
    276278//  generic.insert("distances");
    277279//  generic.insert("element");
    278 //  generic.insert("end-mol");
    279280    generic.insert("input");
    280281//  generic.insert("length");
    281 //  generic.insert("start-mol");
    282282
    283283    // positional arguments
     
    295295  generic.insert("element");
    296296  generic.insert("elements");
     297  generic.insert("end-step");
     298  generic.insert("id-mapping");
    297299  generic.insert("lengths");
    298300  generic.insert("MaxDistance");
     
    303305  generic.insert("periodic");
    304306  generic.insert("position");
     307  generic.insert("start-step");
    305308}
    306309
  • src/Actions/MoleculeAction/LinearInterpolationofTrajectoriesAction.cpp

    raacce8 ra02462  
    5858
    5959  dialog->queryString(NAME, &filename, MapOfActions::getInstance().getDescription(NAME));
    60   dialog->queryInt("start-mol", &start, MapOfActions::getInstance().getDescription("start"));
    61   dialog->queryInt("end-mol", &start, MapOfActions::getInstance().getDescription("end"));
     60  dialog->queryInt("start-step", &start, MapOfActions::getInstance().getDescription("start-step"));
     61  dialog->queryInt("end-step", &end, MapOfActions::getInstance().getDescription("end-step"));
    6262  dialog->queryMolecule("molecule-by-id", &mol, MapOfActions::getInstance().getDescription("molecule-by-id"));
    6363  dialog->queryBoolean("id-mapping", &IdMapping, MapOfActions::getInstance().getDescription("id-mapping"));
  • src/builder.cpp

    raacce8 ra02462  
    19661966            case 'L':
    19671967              if (ExitFlag == 0) ExitFlag = 1;
    1968               if ((argptr >= argc) || (argv[argptr][0] == '-')) {
     1968              if ((argptr+8 >= argc) || (argv[argptr][0] == '-')) {
    19691969                ExitFlag = 255;
    1970                 DoeLog(0) && (eLog()<< Verbose(0) << "Not enough or invalid arguments given for linear interpolation: -L <step0> <step1> <prefix> <identity mapping?>" << endl);
     1970                DoeLog(0) && (eLog()<< Verbose(0) << "Not enough or invalid arguments given for linear interpolation: -L <prefix> --start-step <step0> --end-step <step1> --molecule-by-id 0 --id-mapping <0/1>" << endl);
    19711971                performCriticalExit();
    19721972              } else {
    1973                 SaveFlag = true;
    1974                 DoLog(1) && (Log() << Verbose(1) << "Linear interpolation between configuration " << argv[argptr] << " and " << argv[argptr+1] << "." << endl);
    1975                 if (atoi(argv[argptr+3]) == 1)
    1976                   DoLog(1) && (Log() << Verbose(1) << "Using Identity for the permutation map." << endl);
    1977                 if (!mol->LinearInterpolationBetweenConfiguration(atoi(argv[argptr]), atoi(argv[argptr+1]), argv[argptr+2], configuration, atoi(argv[argptr+3])) == 1 ? true : false)
    1978                   DoLog(2) && (Log() << Verbose(2) << "Could not store " << argv[argptr+2] << " files." << endl);
    1979                 else
    1980                   DoLog(2) && (Log() << Verbose(2) << "Steps created and " << argv[argptr+2] << " files stored." << endl);
    1981                 argptr+=4;
     1973                ArgcList.insert(argptr-1);
     1974                ArgcList.insert(argptr);
     1975                ArgcList.insert(argptr+1);
     1976                ArgcList.insert(argptr+2);
     1977                ArgcList.insert(argptr+3);
     1978                ArgcList.insert(argptr+4);
     1979                ArgcList.insert(argptr+5);
     1980                ArgcList.insert(argptr+6);
     1981                ArgcList.insert(argptr+7);
     1982                ArgcList.insert(argptr+8);
     1983                argptr+=9;
    19821984              }
    19831985              break;
Note: See TracChangeset for help on using the changeset viewer.