Changeset 456f19 for src/Fragmentation
- Timestamp:
- Apr 5, 2018, 9:03:48 PM (7 years ago)
- Branches:
- AutomationFragmentation_failures, Candidate_v1.6.1, ChemicalSpaceEvaluator, Enhanced_StructuralOptimization_continued, Exclude_Hydrogens_annealWithBondGraph, ForceAnnealing_with_BondGraph, ForceAnnealing_with_BondGraph_contraction-expansion, Gui_displays_atomic_force_velocity, JobMarket_RobustOnKillsSegFaults, JobMarket_StableWorkerPool, PythonUI_with_named_parameters, StoppableMakroAction, TremoloParser_IncreasedPrecision
- Children:
- 1e58bb
- Parents:
- 0542e2
- git-author:
- Frederik Heber <frederik.heber@…> (04/05/18 12:36:19)
- git-committer:
- Frederik Heber <frederik.heber@…> (04/05/18 21:03:48)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Fragmentation/Automation/SpecificFragmentController_ReceiveResultContainer_impl.hpp
r0542e2 r456f19 20 20 #include "CodePatterns/toString.hpp" 21 21 22 #include <numeric> 22 23 23 24 template <typename T> … … 72 73 LOG(1, "INFO: #" << JobStatus.first << " are waiting in the queue and #" << NoReceivedResults << " of " << NoExpectedResults << " jobs are calculated so far."); 73 74 } 74 } 75 76 // if not all jobs are done yet, check number of present workers 77 if (NoReceivedResults != NoExpectedResults) { 78 callback.checkEnrolledWorkers(callback.host, callback.port); 79 callback.RunService("Checking on number of workers"); 80 if (callback.getExitflag() != 0) 81 break; 82 const std::vector<size_t>& NumberWorkers = callback.getNumberOfWorkers(); 83 const int TotalNumberWorkers = std::accumulate( 84 NumberWorkers.begin(), NumberWorkers.end(), 0); 85 if (TotalNumberWorkers == 0) { 86 ELOG(0, "Not all jobs are finished, but no workers are present working on it?!"); 87 callback.setExitflag(ExitflagContainer::ErrorFlag); 88 break; 89 } else { 90 LOG(4, "There are " << NumberWorkers << " workers enrolled."); 91 } 92 } 93 } 75 94 } 76 95
Note:
See TracChangeset
for help on using the changeset viewer.