Changeset c09f94 for src/Actions
- Timestamp:
- Apr 29, 2014, 12:42:44 PM (11 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:
- 0d4168
- Parents:
- d9f2b3
- git-author:
- Frederik Heber <heber@…> (08/26/13 22:19:31)
- git-committer:
- Frederik Heber <heber@…> (04/29/14 12:42:44)
- Location:
- src/Actions
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Actions/Action_impl_header.hpp
rd9f2b3 rc09f94 194 194 }; 195 195 196 #if defined BASECLASS 197 class ACTION : public BASECLASS { 198 #else 196 199 class ACTION : public Action { 200 #endif 197 201 #if defined paramtypes && defined paramreferences 198 202 friend void COMMAND( … … 271 275 #undef MENUPOSITION 272 276 #undef TOKEN 277 #undef BASECLASS 273 278 274 279 #undef DESCRIPTION -
src/Actions/Action_impl_pre.hpp
rd9f2b3 rc09f94 264 264 // =========== constructor =========== 265 265 ACTION::ACTION () : 266 #if defined BASECLASS 267 BASECLASS(ActionTraits< ACTION >()) 268 #else 266 269 Action(ActionTraits< ACTION >()) 270 #endif 267 271 {} 268 272 -
src/Actions/Calculation_impl.hpp
rd9f2b3 rc09f94 24 24 template<typename T> 25 25 Calculation<T>::Calculation(int _maxSteps, const ActionTrait &_trait) : 26 Process(_ maxSteps,_trait),26 Process(_trait), 27 27 result(0), 28 28 done(false) 29 {} 29 { 30 setMaxSteps(_maxSteps); 31 } 30 32 31 33 template<typename T> -
src/Actions/FragmentationAction/FragmentationAction.def
rd9f2b3 rc09f94 47 47 #define TOKEN "fragment-molecule" 48 48 49 50 49 // finally the information stored in the ActionTrait specialization 51 50 #define DESCRIPTION "create for a given molecule into fragments up to given order" -
src/Actions/FragmentationAction/FragmentationAutomationAction.cpp
rd9f2b3 rc09f94 73 73 #include "World.hpp" 74 74 75 #include <boost/bind.hpp> 76 #include <boost/thread.hpp> 75 77 #include <fstream> 76 78 #include <iostream> … … 95 97 { 96 98 return NULL; 99 } 100 101 static void updateSteps(Process &p, const size_t step, const size_t total) 102 { 103 LOG(1, "There are " << step << " steps out of " << total << " done."); 104 p.setCurrStep(step); 97 105 } 98 106 … … 126 134 127 135 // Phase Three: calculate result 128 mpqccontroller.waitforResults(NumberJobs); 136 setMaxSteps(NumberJobs); 137 mpqccontroller.setUpdateHandler( 138 boost::bind(&updateSteps, boost::ref(*this), _1, _2) 139 ); 140 start(); 141 boost::thread wait_thread( 142 boost::bind(&MPQCFragmentController::waitforResults, boost::ref(mpqccontroller), boost::cref(NumberJobs)) 143 ); 144 wait_thread.join(); 145 stop(); 129 146 mpqccontroller.getResults(shortrangedata); 130 147 -
src/Actions/FragmentationAction/FragmentationAutomationAction.def
rd9f2b3 rc09f94 45 45 #define TOKEN "fragment-automation" 46 46 47 // if base class is undefined, it defaults to Action 48 #define BASECLASS Process 47 49 48 50 // finally the information stored in the ActionTrait specialization -
src/Actions/FragmentationAction/FragmentationAutomationAction.hpp
rd9f2b3 rc09f94 15 15 16 16 17 #include "Actions/ Action.hpp"17 #include "Actions/Process.hpp" 18 18 19 19 #include "FragmentationAutomationAction.def" -
src/Actions/ManipulateAtomsProcess.cpp
rd9f2b3 rc09f94 48 48 AtomDescriptor _descr, 49 49 const ActionTrait &_trait) : 50 Process( 0,_trait),50 Process(_trait), 51 51 descr(_descr), 52 52 operation(_operation) -
src/Actions/Process.cpp
rd9f2b3 rc09f94 41 41 using namespace MoleCuilder; 42 42 43 Process::Process( int _maxSteps,const ActionTrait &_trait) :43 Process::Process(const ActionTrait &_trait) : 44 44 Action(_trait), 45 45 Observable("Process"), 46 maxSteps( _maxSteps),46 maxSteps(0), 47 47 active(false), 48 48 starts(false), -
src/Actions/Process.hpp
rd9f2b3 rc09f94 51 51 { 52 52 public: 53 Process( int _maxSteps,const ActionTrait &_trait);53 Process(const ActionTrait &_trait); 54 54 virtual ~Process(); 55 55
Note:
See TracChangeset
for help on using the changeset viewer.