Changeset 34c338
- Timestamp:
- Aug 9, 2010, 2:13:27 PM (15 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:
- 22c44bf
- Parents:
- 75a80f
- Files:
-
- 1 added
- 1 deleted
- 3 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
src/Actions/AtomAction/TranslateAction.hpp
r75a80f r34c338 14 14 class MoleculeListClass; 15 15 16 void MoleculeTranslate(Vector &x, bool periodic);16 void AtomTranslate(Vector &x, bool periodic); 17 17 18 class MoleculeTranslateAction : public Action {19 friend void MoleculeTranslate(Vector &x, bool periodic);18 class AtomTranslateAction : public Action { 19 friend void AtomTranslate(Vector &x); 20 20 21 21 public: 22 MoleculeTranslateAction();23 virtual ~ MoleculeTranslateAction();22 AtomTranslateAction(); 23 virtual ~AtomTranslateAction(); 24 24 25 25 bool canUndo(); -
src/Actions/Makefile.am
r75a80f r34c338 50 50 AtomAction/AddAction.cpp \ 51 51 AtomAction/ChangeElementAction.cpp \ 52 AtomAction/RemoveAction.cpp 52 AtomAction/RemoveAction.cpp \ 53 AtomAction/TranslateAction.cpp 53 54 ATOMACTIONHEADER = \ 54 55 AtomAction/AddAction.hpp \ 55 56 AtomAction/ChangeElementAction.hpp \ 56 AtomAction/RemoveAction.cpp 57 AtomAction/RemoveAction.cpp \ 58 AtomAction/TranslateAction.hpp 57 59 58 60 CMDACTIONSOURCE = \ … … 92 94 MoleculeAction/SaveTemperatureAction.cpp \ 93 95 MoleculeAction/SuspendInWaterAction.cpp \ 94 MoleculeAction/TranslateAction.cpp \95 96 MoleculeAction/VerletIntegrationAction.cpp 96 97 MOLECULEACTIONHEADER = \ … … 106 107 MoleculeAction/SaveTemperatureAction.hpp \ 107 108 MoleculeAction/SuspendInWaterAction.hpp \ 108 MoleculeAction/TranslateAction.hpp \109 109 MoleculeAction/VerletIntegrationAction.hpp 110 110 -
src/Actions/MapOfActions.cpp
r75a80f r34c338 42 42 #include "Actions/AtomAction/ChangeElementAction.hpp" 43 43 #include "Actions/AtomAction/RemoveAction.hpp" 44 #include "Actions/AtomAction/TranslateAction.hpp" 44 45 #include "Actions/CmdAction/BondLengthTableAction.hpp" 45 46 #include "Actions/CmdAction/ElementDbAction.hpp" … … 62 63 #include "Actions/MoleculeAction/SaveTemperatureAction.hpp" 63 64 #include "Actions/MoleculeAction/SuspendInWaterAction.hpp" 64 #include "Actions/MoleculeAction/TranslateAction.hpp"65 65 #include "Actions/MoleculeAction/VerletIntegrationAction.hpp" 66 66 #include "Actions/ParserAction/LoadXyzAction.hpp" … … 232 232 DescriptionMap["surface-correlation"] = "pair correlation analysis between element and surface"; 233 233 DescriptionMap["suspend-in-water"] = "suspend the given molecule in water such that in the domain the mean density is as specified"; 234 DescriptionMap["translate- mol"] = "translate moleculeby given vector";234 DescriptionMap["translate-atoms"] = "translate all selected atoms by given vector"; 235 235 DescriptionMap["unselect-all-atoms"] = "unselect all atoms"; 236 236 DescriptionMap["unselect-all-molecules"] = "unselect all molecules"; … … 302 302 ShortFormMap["subgraph-dissect"] = "I"; 303 303 ShortFormMap["suspend-in-water"] = "u"; 304 ShortFormMap["translate- mol"] = "t";304 ShortFormMap["translate-atoms"] = "t"; 305 305 ShortFormMap["verbose"] = "v"; 306 306 ShortFormMap["verlet-integrate"] = "P"; … … 355 355 TypeMap["surface-correlation"] = &typeid(void); 356 356 TypeMap["suspend-in-water"] = &typeid(double); 357 TypeMap["translate- mol"] = &typeid(VectorValue);357 TypeMap["translate-atoms"] = &typeid(VectorValue); 358 358 TypeMap["unselect-all-atoms"] = &typeid(void); 359 359 TypeMap["unselect-all-molecules"] = &typeid(void); … … 432 432 MenuContainsActionMap.insert( pair<std::string, std::string> ("atom", "change-element") ); 433 433 MenuContainsActionMap.insert( pair<std::string, std::string> ("atom", "remove-atom") ); 434 MenuContainsActionMap.insert( pair<std::string, std::string> ("atom", "translate-atoms") ); 434 435 435 436 MenuContainsActionMap.insert( pair<std::string, std::string> ("command", "bond-table") ); … … 454 455 MenuContainsActionMap.insert( pair<std::string, std::string> ("molecule", "save-temperature") ); 455 456 MenuContainsActionMap.insert( pair<std::string, std::string> ("molecule", "suspend-in-water") ); 456 MenuContainsActionMap.insert( pair<std::string, std::string> ("molecule", "translate-mol") );457 457 MenuContainsActionMap.insert( pair<std::string, std::string> ("molecule", "verlet-integrate") ); 458 458 … … 543 543 generic.insert("surface-correlation"); 544 544 generic.insert("suspend-in-water"); 545 generic.insert("translate- mol");545 generic.insert("translate-atoms"); 546 546 generic.insert("unselect-all-atoms"); 547 547 generic.insert("unselect-all-molecules"); … … 835 835 new AtomChangeElementAction(); 836 836 new AtomRemoveAction(); 837 new AtomTranslateAction(); 837 838 838 839 new CommandLineBondLengthTableAction(); … … 858 859 new MoleculeSaveTemperatureAction(); 859 860 new MoleculeSuspendInWaterAction(); 860 new MoleculeTranslateAction();861 861 new MoleculeVerletIntegrationAction(); 862 862 -
tests/regression/testsuite-molecules.at
r75a80f r34c338 45 45 AT_KEYWORDS([Molecules]) 46 46 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/6/pre/test.* .], 0) 47 AT_CHECK([../../molecuilder -i test.conf -e ${abs_top_srcdir}/src/ --select-molecule -by-id0 -t "1., 1., 1." --periodic 0], 0, [stdout], [stderr])47 AT_CHECK([../../molecuilder -i test.conf -e ${abs_top_srcdir}/src/ --select-molecules-atoms 0 -t "1., 1., 1." --periodic 0], 0, [stdout], [stderr]) 48 48 AT_CHECK([file=test.conf; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/6/post/$file], 0, [ignore], [ignore]) 49 49 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/6/pre/test2.* .], 0) 50 AT_CHECK([../../molecuilder -i test2.conf -e ${abs_top_srcdir}/src/ --select-molecule -by-id0 -t "-1., -1., -1." --periodic 0], 0, [stdout], [stderr])50 AT_CHECK([../../molecuilder -i test2.conf -e ${abs_top_srcdir}/src/ --select-molecules-atoms 0 -t "-1., -1., -1." --periodic 0], 0, [stdout], [stderr]) 51 51 AT_CHECK([file=test2.conf; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/6/post/$file], 0, [ignore], [ignore]) 52 AT_CLEANUP53 54 # 7. Periodic translation55 AT_SETUP([Molecules - Periodic translation])56 AT_KEYWORDS([Molecules])57 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/7/pre/test.* .], 0)58 AT_CHECK([../../molecuilder -i test.conf -e ${abs_top_srcdir}/src/ --select-molecule-by-id 0 -t "12., 12., 12." --periodic 1], 0, [stdout], [stderr])59 AT_CHECK([file=test.conf; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/7/post/$file], 0, [ignore], [ignore])60 52 AT_CLEANUP 61 53
Note:
See TracChangeset
for help on using the changeset viewer.