Changeset e65de8 for src/Actions/MapOfActions.cpp
- Timestamp:
- Jul 25, 2010, 9:43:56 PM (14 years ago)
- 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:
- a8a010
- Parents:
- 521bbf
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Actions/MapOfActions.cpp
r521bbf re65de8 196 196 DescriptionMap["output"] = "write output files"; 197 197 DescriptionMap["set-output"] = "specify output formats"; 198 DescriptionMap["pair-correlation"] = "pair correlation analysis between two elements , element and point or element and surface";198 DescriptionMap["pair-correlation"] = "pair correlation analysis between two elements"; 199 199 DescriptionMap["parse-xyz"] = "parse xyz file into World"; 200 DescriptionMap["point-correlation"] = "pair correlation analysis between element and point"; 200 201 DescriptionMap["principal-axis-system"] = "calculate the principal axis system of the specified molecule"; 201 202 DescriptionMap["remove-atom"] = "remove a specified atom"; … … 211 212 DescriptionMap["set-output"] = "specify output formats"; 212 213 DescriptionMap["subgraph-dissect"] = "dissect the molecular system into molecules representing disconnected subgraphs"; 214 DescriptionMap["surface-correlation"] = "pair correlation analysis between element and surface"; 213 215 DescriptionMap["suspend-in-water"] = "suspend the given molecule in water such that in the domain the mean density is as specified"; 214 216 DescriptionMap["translate-mol"] = "translate molecule by given vector"; … … 234 236 DescriptionMap["MaxDistance"] = "maximum distance in space"; 235 237 DescriptionMap["molecule-by-id"] = "index of a molecule"; 236 DescriptionMap["molecule-by-name"] = "name of a molecule";237 238 DescriptionMap["nonconvex-file"] = "filename of the non-convex envelope"; 238 239 DescriptionMap["order"] = "order of a discretization, dissection, ..."; … … 271 272 ShortFormMap["nonconvex-envelope"] = "N"; 272 273 // ShortFormMap["output"] = "o"; 273 ShortFormMap["pair-correlation"] = "C";274 // ShortFormMap["pair-correlation"] = "C"; 274 275 ShortFormMap["parse-xyz"] = "p"; 275 276 ShortFormMap["remove-atom"] = "r"; … … 312 313 TypeMap["output"] = &typeid(void); 313 314 TypeMap["parse-xyz"] = &typeid(std::string); 314 TypeMap["pair-correlation"] = &typeid(std::string); 315 TypeMap["pair-correlation"] = &typeid(void); 316 TypeMap["point-correlation"] = &typeid(void); 315 317 TypeMap["principal-axis-system"] = &typeid(molecule); 316 318 TypeMap["remove-atom"] = &typeid(void); … … 325 327 TypeMap["set-output"] = &typeid(std::vector<std::string>); 326 328 TypeMap["subgraph-dissect"] = &typeid(void); 329 TypeMap["surface-correlation"] = &typeid(void); 327 330 TypeMap["suspend-in-water"] = &typeid(double); 328 331 TypeMap["translate-mol"] = &typeid(VectorValue); … … 346 349 TypeMap["lengths"] = &typeid(VectorValue); 347 350 TypeMap["MaxDistance"] = &typeid(double); 351 TypeMap["molecule-by-id"] = &typeid(molecule); 348 352 TypeMap["nonconvex-file"] = &typeid(std::string); 349 353 TypeMap["order"] = &typeid(int); … … 382 386 CurrentValue["bin-width"] = "0.5"; 383 387 CurrentValue["fastparsing"] = "0"; 384 CurrentValue["atom-by-id"] = "-1";385 CurrentValue["molecule-by-id"] = "-1";386 388 CurrentValue["periodic"] = "0"; 387 389 … … 399 401 MenuContainsActionMap.insert( pair<std::string, std::string> ("analysis", "molecular-volume") ); 400 402 MenuContainsActionMap.insert( pair<std::string, std::string> ("analysis", "pair-correlation") ); 403 MenuContainsActionMap.insert( pair<std::string, std::string> ("analysis", "point-correlation") ); 404 MenuContainsActionMap.insert( pair<std::string, std::string> ("analysis", "surface-correlation") ); 401 405 MenuContainsActionMap.insert( pair<std::string, std::string> ("analysis", "principal-axis-system") ); 402 406 … … 478 482 generic.insert("pair-correlation"); 479 483 generic.insert("parse-xyz"); 484 generic.insert("point-correlation"); 480 485 // generic.insert("principal-axis-system"); 481 486 generic.insert("remove-atom"); … … 494 499 generic.insert("set-output"); 495 500 generic.insert("subgraph-dissect"); 501 generic.insert("surface-correlation"); 496 502 generic.insert("suspend-in-water"); 497 503 generic.insert("translate-mol"); … … 522 528 hidden.insert("lengths"); 523 529 hidden.insert("MaxDistance"); 530 hidden.insert("molecule-by-id"); 524 531 hidden.insert("nonconvex-file"); 525 532 hidden.insert("order"); … … 624 631 CurrentValue.erase(name); 625 632 while (!stream.fail()) { 626 stream >> atomID ;633 stream >> atomID >> ws; 627 634 Walker = World::getInstance().getAtom(AtomById(atomID)); 628 635 if (Walker != NULL) 629 636 _T.push_back(Walker); 637 atomID = -1; 638 Walker = NULL; 630 639 } 631 640 } else … … 643 652 CurrentValue.erase(name); 644 653 while (!stream.fail()) { 645 stream >> Z ;654 stream >> Z >> ws; 646 655 elemental = World::getInstance().getPeriode()->FindElement(Z); 647 656 if (elemental != NULL) 648 657 _T.push_back(elemental); 658 Z = -1; 649 659 } 650 660 } else … … 662 672 CurrentValue.erase(name); 663 673 while (!stream.fail()) { 664 stream >> molID ;674 stream >> molID >> ws; 665 675 mol = World::getInstance().getMolecule(MoleculeById(molID)); 666 676 if (mol != NULL) 667 677 _T.push_back(mol); 678 molID = -1; 679 mol = NULL; 668 680 } 669 681 } else … … 842 854 for (set<string>::iterator OptionRunner = ListRunner->first->begin(); OptionRunner != ListRunner->first->end(); ++OptionRunner) { 843 855 if (hasValue(*OptionRunner)) { 844 DoLog( 0) && (Log() << Verbose(0) << "Adding option " << *OptionRunner << " with type " << TypeMap[*OptionRunner]->name() << " to CommandLineParser." << endl);856 DoLog(1) && (Log() << Verbose(1) << "Adding option " << *OptionRunner << " with type " << TypeMap[*OptionRunner]->name() << " to CommandLineParser." << endl); 845 857 switch(TypeEnumMap[TypeMap[*OptionRunner]]) { 846 858 default:
Note:
See TracChangeset
for help on using the changeset viewer.