- Timestamp:
- May 17, 2012, 3:21:54 PM (13 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:
- 7ca772
- Parents:
- 3a1346
- git-author:
- Frederik Heber <heber@…> (12/11/11 17:43:13)
- git-committer:
- Frederik Heber <heber@…> (05/17/12 15:21:54)
- Location:
- src/Fragmentation/Automation/Controller
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Fragmentation/Automation/Controller/FragmentController.hpp
r3a1346 r50f418 68 68 } 69 69 70 /// place number of jobs into this controller71 void addJobs(const std::vector<FragmentJob> &jobs)72 {73 recjobs.addJobs(jobs);74 }75 76 /// get the results for the current jobs77 std::vector<FragmentResult> getResults()78 {79 return sendres.getResults();80 }81 82 /// Getter for doneJobs83 size_t getDoneJobs() const84 {85 return checkres.getDoneJobs();86 }87 88 /// Getter for number of jobs in the queue89 size_t getPresentJobs() const90 {91 return recjobs.getPresentJobs();92 }93 94 private:95 /// host name of server96 const std::string host;97 98 // service to connect to to99 const std::string service;100 70 }; 101 71 -
src/Fragmentation/Automation/Controller/JobAdder.cpp
r3a1346 r50f418 66 66 jobs.push_back(testJob); 67 67 } 68 controller. addJobs(jobs);68 controller.recjobs.addJobs(jobs); 69 69 controller.recjobs(argv[1], argv[2]); 70 70 { -
src/Fragmentation/Automation/Controller/ResultChecker.cpp
r3a1346 r50f418 64 64 io_service.run(); 65 65 } 66 size_t doneJobs = controller. getDoneJobs();66 size_t doneJobs = controller.checkres.getDoneJobs(); 67 67 LOG(1, "INFO: " << doneJobs << " jobs are calculated so far."); 68 68 Exitflag = controller.getExitflag(); -
src/Fragmentation/Automation/Controller/ResultGetter.cpp
r3a1346 r50f418 72 72 io_service.run(); 73 73 } 74 std::vector<FragmentResult> results = controller. getResults();74 std::vector<FragmentResult> results = controller.sendres.getResults(); 75 75 for (std::vector<FragmentResult>::const_iterator iter = results.begin(); 76 76 iter != results.end(); ++iter)
Note:
See TracChangeset
for help on using the changeset viewer.