45 for(
int i=0; i<len; i++) {
84 std::vector<int>::iterator
85 p_iter = std::lower_bound(
procs_.begin(),
procs_.end(), proc);
87 unsigned offset = p_iter -
procs_.begin();
89 if (p_iter ==
procs_.end() || proc != *p_iter) {
94 procs_.insert(p_iter, proc);
110 std::vector<int>::iterator pe_iter =
111 std::lower_bound(procEqnNums.begin(),procEqnNums.end(), eqnNumber);
113 unsigned offset2 = pe_iter - procEqnNums.begin();
115 if (pe_iter == procEqnNums.end() || eqnNumber != *pe_iter) {
129 if (len == 0)
return;
138 eqnNumbers, len, ins);
142 << eqn_j <<
" not found." <<
FEI_ENDL;
std::vector< int > eqnsPerProc_
void setProcEqnLengths(int *eqnNumbers, int *eqnLengths, int len)
void addEqn(int eqnNumber, int proc)
int binarySearch(const T &item, const T *list, int len)
std::vector< std::vector< int > * > procEqnNumbers_
std::vector< int > procs_
std::ostream & console_out()
void internalAddEqn(int eqnNumber, int eqnLength, int proc)
std::vector< std::vector< int > * > procEqnLengths_
int numProcs(MPI_Comm comm)