Ignore:
Timestamp:
Jul 25, 2010, 9:43:56 PM (14 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:
a8a010
Parents:
521bbf
Message:

Fixed all correlations for new selected sets of molecules.

  • MapOfActions: added missing action names point-correlation and surface-correlation.
  • BUGFIX: AnalysisPairCorrelationAction::createDialog() - needs to query for multiple element_s_.
  • BUGFIX: MapOfActions::queryCurrentValue() - added values twice, due to ..ID or Z was not set to -1 after push_back.
  • TESTFIX: Analysis/* all needed --select-all-molecules in front.
  • TESTFIX: Analysis/4 need additional --unselect-molecule-by-id 207 to avoid correlating againts itself.
  • TESTFIX: changed all correlation unit tests, i.e. replaced TestList by allMolecules from getSelectedMolecules().
  • analysis_correlation.[ch]pp:
    • Replaced MoleculeListClass by const std::vector<molecule *>
    • ActiveFlag check is removed, we hand over getSelectedMolecules() from World (or any other vector of molecules) instead.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Actions/MapOfActions.cpp

    r521bbf re65de8  
    196196  DescriptionMap["output"] = "write output files";
    197197  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";
    199199  DescriptionMap["parse-xyz"] = "parse xyz file into World";
     200  DescriptionMap["point-correlation"] = "pair correlation analysis between element and point";
    200201  DescriptionMap["principal-axis-system"] = "calculate the principal axis system of the specified molecule";
    201202  DescriptionMap["remove-atom"] = "remove a specified atom";
     
    211212  DescriptionMap["set-output"] = "specify output formats";
    212213  DescriptionMap["subgraph-dissect"] = "dissect the molecular system into molecules representing disconnected subgraphs";
     214  DescriptionMap["surface-correlation"] = "pair correlation analysis between element and surface";
    213215  DescriptionMap["suspend-in-water"] = "suspend the given molecule in water such that in the domain the mean density is as specified";
    214216  DescriptionMap["translate-mol"] = "translate molecule by given vector";
     
    234236  DescriptionMap["MaxDistance"] = "maximum distance in space";
    235237  DescriptionMap["molecule-by-id"] = "index of a molecule";
    236   DescriptionMap["molecule-by-name"] = "name of a molecule";
    237238  DescriptionMap["nonconvex-file"] = "filename of the non-convex envelope";
    238239  DescriptionMap["order"] = "order of a discretization, dissection, ...";
     
    271272  ShortFormMap["nonconvex-envelope"] = "N";
    272273//  ShortFormMap["output"] = "o";
    273   ShortFormMap["pair-correlation"] = "C";
     274//  ShortFormMap["pair-correlation"] = "C";
    274275  ShortFormMap["parse-xyz"] = "p";
    275276  ShortFormMap["remove-atom"] = "r";
     
    312313  TypeMap["output"] = &typeid(void);
    313314  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);
    315317  TypeMap["principal-axis-system"] = &typeid(molecule);
    316318  TypeMap["remove-atom"] = &typeid(void);
     
    325327  TypeMap["set-output"] = &typeid(std::vector<std::string>);
    326328  TypeMap["subgraph-dissect"] = &typeid(void);
     329  TypeMap["surface-correlation"] = &typeid(void);
    327330  TypeMap["suspend-in-water"] = &typeid(double);
    328331  TypeMap["translate-mol"] = &typeid(VectorValue);
     
    346349  TypeMap["lengths"] = &typeid(VectorValue);
    347350  TypeMap["MaxDistance"] = &typeid(double);
     351  TypeMap["molecule-by-id"] = &typeid(molecule);
    348352  TypeMap["nonconvex-file"] = &typeid(std::string);
    349353  TypeMap["order"] = &typeid(int);
     
    382386  CurrentValue["bin-width"] = "0.5";
    383387  CurrentValue["fastparsing"] = "0";
    384   CurrentValue["atom-by-id"] = "-1";
    385   CurrentValue["molecule-by-id"] = "-1";
    386388  CurrentValue["periodic"] = "0";
    387389
     
    399401  MenuContainsActionMap.insert( pair<std::string, std::string> ("analysis", "molecular-volume") );
    400402  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") );
    401405  MenuContainsActionMap.insert( pair<std::string, std::string> ("analysis", "principal-axis-system") );
    402406
     
    478482        generic.insert("pair-correlation");
    479483        generic.insert("parse-xyz");
     484  generic.insert("point-correlation");
    480485//  generic.insert("principal-axis-system");
    481486  generic.insert("remove-atom");
     
    494499  generic.insert("set-output");
    495500        generic.insert("subgraph-dissect");
     501  generic.insert("surface-correlation");
    496502  generic.insert("suspend-in-water");
    497503  generic.insert("translate-mol");
     
    522528  hidden.insert("lengths");
    523529  hidden.insert("MaxDistance");
     530  hidden.insert("molecule-by-id");
    524531  hidden.insert("nonconvex-file");
    525532  hidden.insert("order");
     
    624631    CurrentValue.erase(name);
    625632    while (!stream.fail()) {
    626       stream >> atomID;
     633      stream >> atomID >> ws;
    627634      Walker = World::getInstance().getAtom(AtomById(atomID));
    628635      if (Walker != NULL)
    629636        _T.push_back(Walker);
     637      atomID = -1;
     638      Walker = NULL;
    630639    }
    631640  } else
     
    643652    CurrentValue.erase(name);
    644653    while (!stream.fail()) {
    645       stream >> Z;
     654      stream >> Z >> ws;
    646655      elemental = World::getInstance().getPeriode()->FindElement(Z);
    647656      if (elemental != NULL)
    648657        _T.push_back(elemental);
     658      Z = -1;
    649659    }
    650660  } else
     
    662672    CurrentValue.erase(name);
    663673    while (!stream.fail()) {
    664       stream >> molID;
     674      stream >> molID >> ws;
    665675      mol = World::getInstance().getMolecule(MoleculeById(molID));
    666676      if (mol != NULL)
    667677        _T.push_back(mol);
     678      molID = -1;
     679      mol = NULL;
    668680    }
    669681  } else
     
    842854    for (set<string>::iterator OptionRunner = ListRunner->first->begin(); OptionRunner != ListRunner->first->end(); ++OptionRunner) {
    843855      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);
    845857           switch(TypeEnumMap[TypeMap[*OptionRunner]]) {
    846858          default:
Note: See TracChangeset for help on using the changeset viewer.