Code indexing in gitaly is broken and leads to code not being visible to the user. We work on the issue with highest priority.

Skip to content
Snippets Groups Projects
Commit bd61da1d authored by snuverink_j's avatar snuverink_j
Browse files

add protection check against 0 masters or workers; spelling

parent d29cb47c
No related branches found
No related tags found
No related merge requests found
...@@ -120,6 +120,12 @@ private: ...@@ -120,6 +120,12 @@ private:
MPI_Abort(getComm(), -1111); MPI_Abort(getComm(), -1111);
} }
if(num_masters_ == 0 || num_coworkers_worker_ == 0) {
std::cout << "\033[01;31m" << "Need at least"
<< " 1 master and 1 coworker to run.. Aborting." << "\e[0m" << std::endl;
MPI_Abort(getComm(), -1111);
}
if(static_cast<size_t>(num_procs_) < num_masters_ * if(static_cast<size_t>(num_procs_) < num_masters_ *
(2 + num_coworkers_worker_)) { (2 + num_coworkers_worker_)) {
std::cout << "\033[01;31m" << "Need at least " std::cout << "\033[01;31m" << "Need at least "
......
...@@ -28,7 +28,7 @@ public: ...@@ -28,7 +28,7 @@ public:
group_id_ = 0; group_id_ = 0;
if(num_procs_ < 3) if(num_procs_ < 3)
throw OptPilotException("SplitStrategy::SplitStartegy", throw OptPilotException("SplitStrategy::SplitStrategy",
"We need 3 or more cores to split!"); "We need 3 or more cores to split!");
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment