Changeset cca9ef for src/Actions
- Timestamp:
- Dec 4, 2010, 11:54:32 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:
- 0d4424
- Parents:
- 3bc926
- git-author:
- Frederik Heber <heber@…> (11/15/10 12:58:27)
- git-committer:
- Frederik Heber <heber@…> (12/04/10 23:54:32)
- Location:
- src/Actions
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Actions/AnalysisAction/PrincipalAxisSystemAction.cpp
r3bc926 rcca9ef 22 22 #include "Helpers/Log.hpp" 23 23 #include "Helpers/Verbose.hpp" 24 #include "LinearAlgebra/ Matrix.hpp"24 #include "LinearAlgebra/RealSpaceMatrix.hpp" 25 25 #include "LinearAlgebra/Vector.hpp" 26 26 #include "element.hpp" … … 40 40 /** =========== define the function ====================== */ 41 41 Action::state_ptr AnalysisPrincipalAxisSystemAction::performCall() { 42 Matrix InertiaTensor;42 RealSpaceMatrix InertiaTensor; 43 43 44 44 DoLog(0) && (Log() << Verbose(0) << "Evaluating prinicipal axis." << endl); -
src/Actions/MoleculeAction/RotateToPrincipalAxisSystemAction.cpp
r3bc926 rcca9ef 23 23 #include "Helpers/Verbose.hpp" 24 24 #include "LinearAlgebra/Line.hpp" 25 #include "LinearAlgebra/ Matrix.hpp"25 #include "LinearAlgebra/RealSpaceMatrix.hpp" 26 26 #include "LinearAlgebra/Vector.hpp" 27 27 #include "element.hpp" … … 50 50 mol = iter->second; 51 51 DoLog(0) && (Log() << Verbose(0) << "Converting to prinicipal axis system." << endl); 52 Matrix InertiaTensor;52 RealSpaceMatrix InertiaTensor; 53 53 Vector *CenterOfGravity = mol->DetermineCenterOfGravity(); 54 54 -
src/Actions/SelectionAction/AllAtomsInsideCuboidAction.cpp
r3bc926 rcca9ef 25 25 #include "Helpers/Log.hpp" 26 26 #include "Helpers/Verbose.hpp" 27 #include "LinearAlgebra/ Matrix.hpp"27 #include "LinearAlgebra/RealSpaceMatrix.hpp" 28 28 #include "LinearAlgebra/Vector.hpp" 29 29 #include "Shapes/BaseShapes.hpp" … … 45 45 Action::state_ptr SelectionAllAtomsInsideCuboidAction::performCall() { 46 46 std::vector<atom *> selectedAtoms = World::getInstance().getSelectedAtoms(); 47 Matrix RotationMatrix;47 RealSpaceMatrix RotationMatrix; 48 48 49 49 // obtain information … … 70 70 Action::state_ptr SelectionAllAtomsInsideCuboidAction::performRedo(Action::state_ptr _state){ 71 71 SelectionAllAtomsInsideCuboidState *state = assert_cast<SelectionAllAtomsInsideCuboidState*>(_state.get()); 72 Matrix RotationMatrix;72 RealSpaceMatrix RotationMatrix; 73 73 74 74 RotationMatrix.setRotation(state->params.Xangle, state->params.Yangle, state->params.Zangle); -
src/Actions/SelectionAction/NotAllAtomsInsideCuboidAction.cpp
r3bc926 rcca9ef 25 25 #include "Helpers/Log.hpp" 26 26 #include "Helpers/Verbose.hpp" 27 #include "LinearAlgebra/ Matrix.hpp"27 #include "LinearAlgebra/RealSpaceMatrix.hpp" 28 28 #include "LinearAlgebra/Vector.hpp" 29 29 #include "Shapes/BaseShapes.hpp" … … 45 45 Action::state_ptr SelectionNotAllAtomsInsideCuboidAction::performCall() { 46 46 std::vector<atom *> selectedAtoms = World::getInstance().getSelectedAtoms(); 47 Matrix RotationMatrix;47 RealSpaceMatrix RotationMatrix; 48 48 49 49 // obtain information … … 70 70 Action::state_ptr SelectionNotAllAtomsInsideCuboidAction::performRedo(Action::state_ptr _state){ 71 71 SelectionNotAllAtomsInsideCuboidState *state = assert_cast<SelectionNotAllAtomsInsideCuboidState*>(_state.get()); 72 Matrix RotationMatrix;72 RealSpaceMatrix RotationMatrix; 73 73 74 74 RotationMatrix.setRotation(state->params.Xangle, state->params.Yangle, state->params.Zangle); -
src/Actions/ValueStorage.cpp
r3bc926 rcca9ef 31 31 #include "Helpers/Verbose.hpp" 32 32 #include "LinearAlgebra/BoxVector.hpp" 33 #include "LinearAlgebra/ Matrix.hpp"33 #include "LinearAlgebra/RealSpaceMatrix.hpp" 34 34 #include "LinearAlgebra/Vector.hpp" 35 35 #include "atom.hpp" … … 95 95 96 96 void ValueStorage::queryCurrentValue(const char * name, class Box &_T) { 97 Matrix M;97 RealSpaceMatrix M; 98 98 double tmp; 99 99 if (typeid( Box ) == *(OptionRegistry_instance.getOptionByName(name)->getType())) { … … 254 254 void ValueStorage::setCurrentValue(const char * name, class Box &_T) 255 255 { 256 const Matrix &M = _T.getM();256 const RealSpaceMatrix &M = _T.getM(); 257 257 if (typeid( Box ) == *(OptionRegistry_instance.getOptionByName(name)->getType())) { 258 258 std::ostringstream stream; -
src/Actions/WorldAction/CenterOnEdgeAction.cpp
r3bc926 rcca9ef 24 24 #include "LinearAlgebra/Vector.hpp" 25 25 #include "World.hpp" 26 #include "LinearAlgebra/ Matrix.hpp"26 #include "LinearAlgebra/RealSpaceMatrix.hpp" 27 27 28 28 #include <iostream> … … 59 59 } 60 60 // set new box size 61 Matrix domain;61 RealSpaceMatrix domain; 62 62 for (int i=0;i<NDIM;i++) { 63 63 double tmp = Max[i]-Min[i]; -
src/Actions/WorldAction/ChangeBoxAction.cpp
r3bc926 rcca9ef 24 24 #include "World.hpp" 25 25 #include "Box.hpp" 26 #include "LinearAlgebra/ Matrix.hpp"26 #include "LinearAlgebra/RealSpaceMatrix.hpp" 27 27 28 28 #include <iostream> -
src/Actions/WorldAction/RepeatBoxAction.cpp
r3bc926 rcca9ef 25 25 #include "molecule.hpp" 26 26 #include "LinearAlgebra/Vector.hpp" 27 #include "LinearAlgebra/ Matrix.hpp"27 #include "LinearAlgebra/RealSpaceMatrix.hpp" 28 28 #include "Helpers/Verbose.hpp" 29 29 #include "World.hpp" … … 63 63 64 64 (cout << "Repeating box " << params.Repeater << " times for (x,y,z) axis." << endl); 65 Matrix M = World::getInstance().getDomain().getM();66 Matrix newM = M;65 RealSpaceMatrix M = World::getInstance().getDomain().getM(); 66 RealSpaceMatrix newM = M; 67 67 Vector x,y; 68 68 int n[NDIM]; 69 Matrix repMat;69 RealSpaceMatrix repMat; 70 70 for (int axis = 0; axis < NDIM; axis++) { 71 71 params.Repeater[axis] = floor(params.Repeater[axis]); -
src/Actions/WorldAction/ScaleBoxAction.cpp
r3bc926 rcca9ef 26 26 #include "World.hpp" 27 27 #include "Box.hpp" 28 #include "LinearAlgebra/ Matrix.hpp"28 #include "LinearAlgebra/RealSpaceMatrix.hpp" 29 29 30 30 #include <iostream> … … 53 53 } 54 54 55 Matrix M = World::getInstance().getDomain().getM();56 Matrix scale;55 RealSpaceMatrix M = World::getInstance().getDomain().getM(); 56 RealSpaceMatrix scale; 57 57 58 58 for (int i=0;i<NDIM;i++) {
Note:
See TracChangeset
for help on using the changeset viewer.