Changeset 1d9b7d2


Ignore:
Timestamp:
Jul 25, 2010, 7:39:22 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:
8d4aa1
Parents:
898e0a
git-author:
Frederik Heber <heber@…> (07/25/10 19:37:53)
git-committer:
Frederik Heber <heber@…> (07/25/10 19:39:22)
Message:

TESTFIX: Tesselation/* all needed replacement of option --molecule-by-id by action --select-molecule-by-id in front of, Action changes.

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/Actions/MapOfActions.cpp

    r898e0a r1d9b7d2  
    238238  DescriptionMap["select-atom-by-id"] = "select an atom by index";
    239239  DescriptionMap["select-molecule-by-id"] = "select a molecule by index";
    240   DescriptionMap["sphere-radius"] = "radius of tesselation sphere";
    241240  DescriptionMap["start-step"] = "first or start step";
    242241  DescriptionMap["unselect-atom-by-id"] = "unselect an atom by index";
     
    292291  TypeMap["change-element"] = &typeid(element);
    293292  TypeMap["change-molname"] = &typeid(std::string);
    294   TypeMap["convex-envelope"] = &typeid(molecule);
     293  TypeMap["convex-envelope"] = &typeid(void);
    295294  TypeMap["default-molname"] = &typeid(std::string);
    296295  TypeMap["depth-first-search"] = &typeid(double);
     
    302301  TypeMap["linear-interpolate"] = &typeid(std::string);
    303302  TypeMap["molecular-volume"] = &typeid(molecule);
    304   TypeMap["nonconvex-envelope"] = &typeid(molecule);
     303  TypeMap["nonconvex-envelope"] = &typeid(double);
    305304  TypeMap["output"] = &typeid(void);
    306305  TypeMap["parse-xyz"] = &typeid(std::string);
     
    346345  TypeMap["select-atom-by-id"] = &typeid(atom);
    347346  TypeMap["select-molecule-by-id"] = &typeid(molecule);
    348   TypeMap["sphere-radius"] = &typeid(double);
    349347  TypeMap["start-step"] = &typeid(int);
    350348  TypeMap["unselect-atom-by-id"] = &typeid(atom);
     
    511509  hidden.insert("select-atom-by-id");
    512510  hidden.insert("select-molecule-by-id");
    513   hidden.insert("sphere-radius");
    514511  hidden.insert("start-step");
    515512  hidden.insert("unselect-atom-by-id");
  • src/Actions/TesselationAction/NonConvexEnvelopeAction.cpp

    r898e0a r1d9b7d2  
    5252  Dialog *dialog = UIFactory::getInstance().makeDialog();
    5353
    54   dialog->queryEmpty(NAME, MapOfActions::getInstance().getDescription(NAME));
     54  dialog->queryDouble(NAME, MapOfActions::getInstance().getDescription(NAME));
    5555  dialog->queryString("nonconvex-file", MapOfActions::getInstance().getDescription("nonconvex-file"));
    56   dialog->queryDouble("sphere-radius", MapOfActions::getInstance().getDescription("sphere-radius"));
    5756
    5857  return dialog;
     
    6665  clock_t start,end;
    6766
     67  ValueStorage::getInstance().queryCurrentValue(NAME, SphereRadius);
    6868  ValueStorage::getInstance().queryCurrentValue("nonconvex-file", filename);
    69   ValueStorage::getInstance().queryCurrentValue("sphere-radius", SphereRadius);
    7069
    7170  for (World::MoleculeSelectionIterator iter = World::getInstance().beginMoleculeSelection(); iter != World::getInstance().endMoleculeSelection(); ++iter) {
  • tests/regression/testsuite-tesselation.at

    r898e0a r1d9b7d2  
    44AT_KEYWORDS([Tesselation])
    55AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Tesselation/1/pre/* .], 0)
    6 AT_CHECK([../../molecuilder -i test.conf -e ${abs_top_srcdir}/src/ -N 0 --sphere-radius 4. --nonconvex-file NonConvexEnvelope], 0, [stdout], [stderr])
     6AT_CHECK([../../molecuilder -i test.conf -e ${abs_top_srcdir}/src/ --select-molecule-by-id 0 -N 4. --nonconvex-file NonConvexEnvelope], 0, [stdout], [stderr])
    77AT_CHECK([file=NonConvexEnvelope.dat; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Tesselation/1/post/$file], 0, [ignore], [ignore])
    88#AT_CHECK([file=NonConvexEnvelope.r3d; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Tesselation/1/post/$file], 0, [ignore], [ignore])
     
    1212AT_SETUP([Tesselation - Convex Envelope])
    1313AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Tesselation/2/pre/* .], 0)
    14 AT_CHECK([../../molecuilder -i test.conf -e ${abs_top_srcdir}/src/ --convex-envelope 0 --convex-file ConvexEnvelope --nonconvex-file NonConvexEnvelope], 0, [stdout], [stderr])
     14AT_CHECK([../../molecuilder -i test.conf -e ${abs_top_srcdir}/src/ --select-molecule-by-id 0 --convex-envelope --convex-file ConvexEnvelope --nonconvex-file NonConvexEnvelope], 0, [stdout], [stderr])
    1515AT_CHECK([file=ConvexEnvelope.dat; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Tesselation/2/post/$file], 0, [ignore], [ignore])
    1616#AT_CHECK([file=ConvexEnvelope.r3d; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Tesselation/2/post/$file], 0, [ignore], [ignore])
     
    2222AT_SETUP([Tesselation - Big non-Convex Envelope])
    2323AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Tesselation/3/pre/* .], 0)
    24 AT_CHECK([../../molecuilder -i test.conf -e ${abs_top_srcdir}/src/ -N 0 --sphere-radius 4. --nonconvex-file NonConvexEnvelope], 0, [stdout], [stderr])
     24AT_CHECK([../../molecuilder -i test.conf -e ${abs_top_srcdir}/src/ --select-molecule-by-id 0 -N 4. --nonconvex-file NonConvexEnvelope], 0, [stdout], [stderr])
    2525AT_CHECK([file=NonConvexEnvelope.dat; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Tesselation/3/post/$file], 0, [ignore], [ignore])
    2626#AT_CHECK([file=NonConvexEnvelope.r3d; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Tesselation/3/post/$file], 0, [ignore], [ignore])
     
    3030#AT_SETUP([Tesselation - big convex Envelope])
    3131#AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Tesselation/4/pre/* .], 0)
    32 #AT_CHECK([../../molecuilder -i test.conf -e ${abs_top_srcdir}/src/ --convex-envelope ConvexEnvelope NonConvexEnvelope], 0, [stdout], [stderr])
     32#AT_CHECK([../../molecuilder -i test.conf -e ${abs_top_srcdir}/src/ --select-molecule-by-id 0 --convex-envelope ConvexEnvelope NonConvexEnvelope], 0, [stdout], [stderr])
    3333#AT_CHECK([file=ConvexEnvelope.dat; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Tesselation/4/post/$file], 0, [ignore], [ignore])
    3434#AT_CHECK([file=ConvexEnvelope.r3d; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Tesselation/4/post/$file], 0, [ignore], [ignore])
Note: See TracChangeset for help on using the changeset viewer.