Changeset 503acc1
- Timestamp:
- Apr 15, 2013, 10:30:31 AM (12 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:
- 0cd8cf
- Parents:
- bae7bc
- git-author:
- Frederik Heber <heber@…> (03/06/13 19:51:06)
- git-committer:
- Frederik Heber <heber@…> (04/15/13 10:30:31)
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
configure.ac
rbae7bc r503acc1 156 156 BOOST_ARRAY 157 157 BOOST_BIND 158 BOOST_CAST 158 159 BOOST_CONVERSION 159 160 BOOST_EXCEPTION -
m4/boost.m4
rbae7bc r503acc1 490 490 [BOOST_FIND_HEADER([boost/bind.hpp])]) 491 491 492 # BOOST_CAST() 493 # ------------ 494 # Look for Boost.Cast 495 BOOST_DEFUN([Cast], 496 [BOOST_FIND_HEADER([boost/cast.hpp])]) 492 497 493 498 # BOOST_CONVERSION() -
src/Actions/FragmentationAction/FragmentationAutomationAction.cpp
rbae7bc r503acc1 545 545 546 546 // Phase Two: add MPQCJobs and send 547 mpqccontroller.addJobsFromQueue(); 547 const size_t NoJobs = mpqccontroller.addJobsFromQueue( 548 params.DoLongrange.get() ? MPQCData::DoSampleDensity : MPQCData::DontSampleDensity); 549 LOG(1, "INFO: Added " << NoJobs << " from FragmentJobsQueue."); 548 550 mpqccontroller.run(); 549 551 -
src/Fragmentation/Automation/MPQCFragmentController.cpp
rbae7bc r503acc1 41 41 #include "MPQCFragmentController.hpp" 42 42 43 #include <boost/cast.hpp> 43 44 #include <boost/filesystem/operations.hpp> 44 45 … … 50 51 #include "World.hpp" 51 52 52 bool MPQCFragmentController::addJobsFromQueue( )53 bool MPQCFragmentController::addJobsFromQueue(const MPQCData::DoLongrange_t _DoLongrange) 53 54 { 54 55 // give them all valid ids … … 57 58 jobiter != newjobs.end(); 58 59 ++jobiter) { 60 MPQCJob *job = boost::polymorphic_downcast<MPQCJob *>(jobiter->get()); 61 job->DoLongrange = _DoLongrange; 59 62 changeJobId((*jobiter), getAvailableId()); 60 63 } -
src/Fragmentation/Automation/MPQCFragmentController.hpp
rbae7bc r503acc1 41 41 /** Command Controller to fill its hold of jobs from FragmentJobQueue. 42 42 * 43 * \param _DoSampleDensity whether to actually sample the resulting electronic density 43 44 * \return true - jobs obtained, false - queue empty 44 45 */ 45 bool addJobsFromQueue( );46 bool addJobsFromQueue(const MPQCData::DoLongrange_t _DoLongrange); 46 47 47 48 /** Get results map of calculated jobs. -
src/Jobs/MPQCData.cpp
rbae7bc r503acc1 44 44 45 45 MPQCData::MPQCData(const SamplingGridProperties &_props) : 46 DoLongrange(DontSampleDensity), 46 47 sampled_grid(_props) 47 48 {} 48 49 49 MPQCData::MPQCData() 50 MPQCData::MPQCData() : 51 DoLongrange(DontSampleDensity) 50 52 {} 51 53 -
src/Jobs/MPQCData.hpp
rbae7bc r503acc1 79 79 std::vector< vector_type > forces; 80 80 81 //!> whether to actually sample the density 82 enum DoLongrange_t { 83 DontSampleDensity=0, 84 DoSampleDensity=1 85 }; 86 DoLongrange_t DoLongrange; 87 81 88 /// Density 82 89 SamplingGrid sampled_grid; … … 118 125 ar & forces; 119 126 ar & sampled_grid; 127 ar & DoLongrange; 120 128 ar & positions; 121 129 ar & charges; -
src/Jobs/MPQCJob.cpp
rbae7bc r503acc1 46 46 47 47 #include "CodePatterns/Assert.hpp" 48 #include "Jobs/MPQCData.hpp"49 48 50 49 … … 56 55 const int _level) : 57 56 FragmentJob(_JobId), 57 DoLongrange(MPQCData::DontSampleDensity), 58 58 inputfile(_inputfile), 59 59 grid(_begin, _end, _level) … … 64 64 65 65 MPQCJob::MPQCJob() : 66 FragmentJob(JobId::IllegalJob) 66 FragmentJob(JobId::IllegalJob), 67 DoLongrange(MPQCData::DontSampleDensity) 67 68 {} 68 69 -
src/Jobs/MPQCJob.hpp
rbae7bc r503acc1 20 20 21 21 #include "Jobs/Grid/SamplingGridProperties.hpp" 22 #include "Jobs/MPQCData.hpp" 22 23 23 24 #include <string> … … 39 40 FragmentResult::ptr Work(); 40 41 42 //!> whether to actually sample the density 43 MPQCData::DoLongrange_t DoLongrange; 44 41 45 private: 42 46 //!> contents of inputfile … … 56 60 { 57 61 ar & boost::serialization::base_object<FragmentJob>(*this); 62 ar & DoLongrange; 58 63 ar & const_cast<std::string &>(inputfile); 59 64 ar & const_cast<SamplingGridProperties &>(grid);
Note:
See TracChangeset
for help on using the changeset viewer.