Changeset 7d9416 for src/Actions


Ignore:
Timestamp:
Jun 13, 2012, 5:39:06 PM (13 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:
d496fd
Parents:
a483e4
git-author:
Michael Ankele <ankele@…> (05/10/12 15:00:12)
git-committer:
Frederik Heber <heber@…> (06/13/12 17:39:06)
Message:

Turned query<Box> into query<RealSpaceMatrix>

Location:
src/Actions
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • src/Actions/Values.cpp

    ra483e4 r7d9416  
    4747}
    4848
    49 Box BoxValue::toBox() const
     49RealSpaceMatrix RealSpaceMatrixValue::toRealSpaceMatrix() const
    5050{
    51   Box returnBox(ReturnFullMatrixforSymmetric(matrix));
     51  RealSpaceMatrix returnMatrix(ReturnFullMatrixforSymmetric(matrix));
    5252
    53   return returnBox;
     53  return returnMatrix;
    5454}
  • src/Actions/Values.hpp

    ra483e4 r7d9416  
    1818class Box;
    1919class BoxVector;
     20class RealSpaceMatrix;
    2021class Vector;
    2122
     
    3738 * as BoxValue and lateron inside the CommandLineQuery placed into the real Box.
    3839 */
    39 struct BoxValue
     40struct RealSpaceMatrixValue
    4041{
    4142  double matrix[(NDIM*(NDIM+1))/2];
    4243
    43   Box toBox() const;
     44  RealSpaceMatrix toRealSpaceMatrix() const;
    4445};
    4546
  • src/Actions/WorldAction/CenterInBoxAction.cpp

    ra483e4 r7d9416  
    6969
    7070  // set new domain
    71   World::getInstance().setDomain(params.cell_size.get().getM());
     71  World::getInstance().setDomain(params.cell_size.get());
    7272
    7373  // center atoms
     
    125125
    126126  // set new domain
    127   World::getInstance().setDomain(state->params.cell_size.get().getM());
     127  World::getInstance().setDomain(state->params.cell_size.get());
    128128
    129129  // center atoms
  • src/Actions/WorldAction/CenterInBoxAction.def

    ra483e4 r7d9416  
    88// all includes and forward declarations necessary for non-integral types below
    99#include "Actions/Values.hpp"
    10 #include "Box.hpp"
     10#include "LinearAlgebra/RealSpaceMatrix.hpp"
    1111#include "LinearAlgebra/Vector.hpp"
    1212#include <boost/shared_ptr.hpp>
     
    1515// ValueStorage by the token "Z" -> first column: int, Z, "Z"
    1616// "undefine" if no parameters are required, use (NODEFAULT) for each (undefined) default value
    17 #define paramtypes (Box)
     17#define paramtypes (RealSpaceMatrix)
    1818#define paramtokens ("center-in-box")
    1919#define paramdescriptions ("symmetric matrix of new domain")
  • src/Actions/WorldAction/ChangeBoxAction.cpp

    ra483e4 r7d9416  
    5050  oa << matrix;
    5151
    52   World::getInstance().setDomain(params.cell_size.get().getM()); // this is needed as only this function is OBSERVEd.
     52  World::getInstance().setDomain(params.cell_size.get()); // this is needed as only this function is OBSERVEd.
    5353
    5454  // give final box size
     
    8282
    8383Action::state_ptr WorldChangeBoxAction::performRedo(Action::state_ptr _state){
    84   World::getInstance().setDomain(params.cell_size.get().getM()); // this is needed as only this function is OBSERVEd.
     84  World::getInstance().setDomain(params.cell_size.get()); // this is needed as only this function is OBSERVEd.
    8585
    8686  // give final box size
  • src/Actions/WorldAction/ChangeBoxAction.def

    ra483e4 r7d9416  
    88// all includes and forward declarations necessary for non-integral types below
    99#include "Actions/Values.hpp"
    10 #include "Box.hpp"
     10#include "LinearAlgebra/RealSpaceMatrix.hpp"
    1111
    1212// i.e. there is an integer with variable name Z that can be found in
    1313// ValueStorage by the token "Z" -> first column: int, Z, "Z"
    1414// "undefine" if no parameters are required, use (NODEFAULT) for each (undefined) default value
    15 #define paramtypes (Box)
     15#define paramtypes (RealSpaceMatrix)
    1616#define paramtokens ("change-box")
    1717#define paramdescriptions ("symmetrc matrix of the new simulation domain")
  • src/Actions/unittests/stubs/DummyUI.hpp

    ra483e4 r7d9416  
    4040  virtual void queryVector(Parameter<Vector> &, const char*,bool, std::string = ""){}
    4141  virtual void queryVectors(Parameter<std::vector<Vector> > &, const char*,bool, std::string = ""){}
    42   virtual void queryBox(Parameter<Box> &, const char*, std::string = ""){}
     42  virtual void queryRealSpaceMatrix(Parameter<RealSpaceMatrix> &, const char*, std::string = ""){}
    4343  virtual void queryElement(Parameter<const element *> &, const char*, std::string = ""){}
    4444  virtual void queryElements(Parameter<std::vector<const element *> > &, const char*, std::string = ""){}
Note: See TracChangeset for help on using the changeset viewer.