thread_loop_partitioner = v.thread_loop_partitioner;
dealii::internal::VectorOperations::Vector_copy<Number,Number> copier(v.val, val);
- internal::VectorOperations::parallel_for(copier, partitioner->local_size(),
+ internal::VectorOperations::parallel_for(copier, 0, partitioner->local_size(),
thread_loop_partitioner);
zero_out_ghosts();
thread_loop_partitioner = c.thread_loop_partitioner;
dealii::internal::VectorOperations::Vector_copy<Number,Number2> copier(c.val, val);
- internal::VectorOperations::parallel_for(copier, partitioner->local_size(),
+ internal::VectorOperations::parallel_for(copier, 0, partitioner->local_size(),
thread_loop_partitioner);
if (must_update_ghost_values)
{
internal::VectorOperations::Vector_set<Number> setter(s, val);
- internal::VectorOperations::parallel_for(setter, partitioner->local_size(),
+ internal::VectorOperations::parallel_for(setter, 0, partitioner->local_size(),
thread_loop_partitioner);
// if we call Vector::operator=0, we want to zero out all the entries
AssertDimension (local_size(), v.local_size());
internal::VectorOperations::Vectorization_add_v<Number> vector_add(val, v.val);
- internal::VectorOperations::parallel_for(vector_add, partitioner->local_size(),
+ internal::VectorOperations::parallel_for(vector_add, 0, partitioner->local_size(),
thread_loop_partitioner);
if (vector_is_ghosted)
AssertDimension (local_size(), v.local_size());
internal::VectorOperations::Vectorization_subtract_v<Number> vector_subtract(val, v.val);
- internal::VectorOperations::parallel_for(vector_subtract, partitioner->local_size(),
+ internal::VectorOperations::parallel_for(vector_subtract, 0, partitioner->local_size(),
thread_loop_partitioner);
if (vector_is_ghosted)
AssertIsFinite(a);
internal::VectorOperations::Vectorization_add_factor<Number> vector_add(val, a);
- internal::VectorOperations::parallel_for(vector_add, partitioner->local_size(),
+ internal::VectorOperations::parallel_for(vector_add, 0, partitioner->local_size(),
thread_loop_partitioner);
if (vector_is_ghosted)
AssertDimension (local_size(), v.local_size());
internal::VectorOperations::Vectorization_add_av<Number> vector_add(val, v.val, a);
- internal::VectorOperations::parallel_for(vector_add, partitioner->local_size(),
+ internal::VectorOperations::parallel_for(vector_add, 0, partitioner->local_size(),
thread_loop_partitioner);
if (vector_is_ghosted)
internal::VectorOperations::Vectorization_add_avpbw<Number> vector_add(val, v.val,
w.val, a, b);
- internal::VectorOperations::parallel_for(vector_add, partitioner->local_size(),
+ internal::VectorOperations::parallel_for(vector_add, 0, partitioner->local_size(),
thread_loop_partitioner);
if (vector_is_ghosted)
AssertDimension (local_size(), v.local_size());
internal::VectorOperations::Vectorization_sadd_xv<Number> vector_sadd(val, v.val, x);
- internal::VectorOperations::parallel_for(vector_sadd, partitioner->local_size(),
+ internal::VectorOperations::parallel_for(vector_sadd, 0, partitioner->local_size(),
thread_loop_partitioner);
if (vector_is_ghosted)
AssertDimension (local_size(), v.local_size());
internal::VectorOperations::Vectorization_sadd_xav<Number> vector_sadd(val, v.val, a, x);
- internal::VectorOperations::parallel_for(vector_sadd, partitioner->local_size(),
+ internal::VectorOperations::parallel_for(vector_sadd, 0, partitioner->local_size(),
thread_loop_partitioner);
if (vector_is_ghosted)
internal::VectorOperations::Vectorization_sadd_xavbw<Number> vector_sadd(val, v.val, w.val,
x, a, b);
- internal::VectorOperations::parallel_for(vector_sadd, partitioner->local_size(),
+ internal::VectorOperations::parallel_for(vector_sadd, 0, partitioner->local_size(),
thread_loop_partitioner);
if (vector_is_ghosted)
internal::VectorOperations::Vectorization_multiply_factor<Number> vector_multiply(val,
factor);
- internal::VectorOperations::parallel_for(vector_multiply, partitioner->local_size(),
+ internal::VectorOperations::parallel_for(vector_multiply, 0, partitioner->local_size(),
thread_loop_partitioner);
if (vector_is_ghosted)
AssertDimension (local_size(), v.local_size());
internal::VectorOperations::Vectorization_scale<Number> vector_scale(val, v.val);
- internal::VectorOperations::parallel_for(vector_scale, partitioner->local_size(),
+ internal::VectorOperations::parallel_for(vector_scale, 0, partitioner->local_size(),
thread_loop_partitioner);
if (vector_is_ghosted)
AssertDimension (local_size(), v.local_size());
internal::VectorOperations::Vectorization_equ_au<Number> vector_equ(val, v.val, a);
- internal::VectorOperations::parallel_for(vector_equ, partitioner->local_size(),
+ internal::VectorOperations::parallel_for(vector_equ, 0, partitioner->local_size(),
thread_loop_partitioner);
if (vector_is_ghosted)
internal::VectorOperations::Vectorization_equ_aubv<Number> vector_equ(val, v.val,
w.val, a, b);
- internal::VectorOperations::parallel_for(vector_equ, partitioner->local_size(),
+ internal::VectorOperations::parallel_for(vector_equ, 0, partitioner->local_size(),
thread_loop_partitioner);
if (vector_is_ghosted)
Number sum;
internal::VectorOperations::Dot<Number,Number2> dot(val, v.val);
- internal::VectorOperations::parallel_reduce (dot, partitioner->local_size(), sum,
+ internal::VectorOperations::parallel_reduce (dot, 0, partitioner->local_size(), sum,
thread_loop_partitioner);
AssertIsFinite(sum);
{
real_type sum;
internal::VectorOperations::Norm2<Number,real_type> norm2(val);
- internal::VectorOperations::parallel_reduce (norm2, partitioner->local_size(), sum,
+ internal::VectorOperations::parallel_reduce (norm2, 0, partitioner->local_size(), sum,
thread_loop_partitioner);
AssertIsFinite(sum);
Number sum;
internal::VectorOperations::MeanValue<Number> mean(val);
- internal::VectorOperations::parallel_reduce (mean, partitioner->local_size(), sum,
+ internal::VectorOperations::parallel_reduce (mean, 0, partitioner->local_size(), sum,
thread_loop_partitioner);
return sum / real_type(partitioner->local_size());
{
real_type sum;
internal::VectorOperations::Norm1<Number, real_type> norm1(val);
- internal::VectorOperations::parallel_reduce (norm1, partitioner->local_size(), sum,
+ internal::VectorOperations::parallel_reduce (norm1, 0, partitioner->local_size(), sum,
thread_loop_partitioner);
return sum;
{
real_type sum;
internal::VectorOperations::NormP<Number, real_type> normp(val, p);
- internal::VectorOperations::parallel_reduce (normp, partitioner->local_size(), sum,
+ internal::VectorOperations::parallel_reduce (normp, 0, partitioner->local_size(), sum,
thread_loop_partitioner);
return std::pow(sum, 1./p);
}
Number sum;
internal::VectorOperations::AddAndDot<Number> adder(this->val, v.val, w.val, a);
- internal::VectorOperations::parallel_reduce (adder, vec_size, sum, thread_loop_partitioner);
+ internal::VectorOperations::parallel_reduce (adder, 0, vec_size, sum, thread_loop_partitioner);
AssertIsFinite(sum);
return sum;
}
this->reinit(in_vector, true);
dealii::internal::VectorOperations::Vector_copy<Number, Number> copier(in_vector.val, this->val);
- internal::VectorOperations::parallel_for(copier, this->size(), this->thread_loop_partitioner);
+ internal::VectorOperations::parallel_for(copier, 0, this->size(), this->thread_loop_partitioner);
return *this;
}
this->reinit(in_vector, true);
dealii::internal::VectorOperations::Vector_copy<Number, Number2> copier(in_vector.val, this->val);
- internal::VectorOperations::parallel_for(copier, this->size(), this->thread_loop_partitioner);
+ internal::VectorOperations::parallel_for(copier, 0, this->size(), this->thread_loop_partitioner);
return *this;
}
(void) s;
internal::VectorOperations::Vector_set<Number> setter(Number(), this->val);
- internal::VectorOperations::parallel_for(setter, this->size(), this->thread_loop_partitioner);
+ internal::VectorOperations::parallel_for(setter, 0, this->size(), this->thread_loop_partitioner);
return *this;
}
AssertIsFinite(factor);
internal::VectorOperations::Vectorization_multiply_factor<Number> vector_multiply(this->val, factor);
- internal::VectorOperations::parallel_for(vector_multiply, this->size(), this->thread_loop_partitioner);
+ internal::VectorOperations::parallel_for(vector_multiply, 0, this->size(), this->thread_loop_partitioner);
return *this;
}
ExcMessage("Cannot add two vectors with different numbers of elements"));
internal::VectorOperations::Vectorization_add_v<Number> vector_add(this->val, down_V.val);
- internal::VectorOperations::parallel_for(vector_add, this->size(), this->thread_loop_partitioner);
+ internal::VectorOperations::parallel_for(vector_add, 0, this->size(), this->thread_loop_partitioner);
return *this;
}
Assert(down_V.size()==this->size(),
ExcMessage("Cannot subtract two vectors with different numbers of elements"));
internal::VectorOperations::Vectorization_subtract_v<Number> vector_subtract(this->val, down_V.val);
- internal::VectorOperations::parallel_for(vector_subtract, this->size(), this->thread_loop_partitioner);
+ internal::VectorOperations::parallel_for(vector_subtract, 0, this->size(), this->thread_loop_partitioner);
return *this;
}
"of two vectors with different numbers of elements"));
Number sum;
internal::VectorOperations::Dot<Number, Number> dot(this->val, down_V.val);
- internal::VectorOperations::parallel_reduce(dot, this->size(), sum, this->thread_loop_partitioner);
+ internal::VectorOperations::parallel_reduce(dot, 0, this->size(), sum, this->thread_loop_partitioner);
return sum;
}
AssertIsFinite(a);
internal::VectorOperations::Vectorization_add_factor<Number> vector_add(this->val, a);
- internal::VectorOperations::parallel_for(vector_add, this->size(), this->thread_loop_partitioner);
+ internal::VectorOperations::parallel_for(vector_add, 0, this->size(), this->thread_loop_partitioner);
}
ExcMessage("Cannot add two vectors with different numbers of elements"));
internal::VectorOperations::Vectorization_add_av<Number> vector_add_av(this->val, down_V.val, a);
- internal::VectorOperations::parallel_for(vector_add_av, this->size(), this->thread_loop_partitioner);
+ internal::VectorOperations::parallel_for(vector_add_av, 0, this->size(), this->thread_loop_partitioner);
}
internal::VectorOperations::Vectorization_add_avpbw<Number> vector_add(this->val, down_V.val,
down_W.val, a, b);
- internal::VectorOperations::parallel_for(vector_add, this->size(), this->thread_loop_partitioner);
+ internal::VectorOperations::parallel_for(vector_add, 0, this->size(), this->thread_loop_partitioner);
}
const Vector<Number> &down_V = dynamic_cast<const Vector<Number>&>(V);
internal::VectorOperations::Vectorization_sadd_xav<Number> vector_sadd_xav(this->val, down_V.val,
a, s);
- internal::VectorOperations::parallel_for(vector_sadd_xav, this->size(), this->thread_loop_partitioner);
+ internal::VectorOperations::parallel_for(vector_sadd_xav, 0, this->size(), this->thread_loop_partitioner);
}
ExcMessage("Cannot add two vectors with different numbers of elements"));
internal::VectorOperations::Vectorization_scale<Number> vector_scale(this->val, down_scaling_factors.val);
- internal::VectorOperations::parallel_for(vector_scale, this->size(), this->thread_loop_partitioner);
+ internal::VectorOperations::parallel_for(vector_scale, 0, this->size(), this->thread_loop_partitioner);
}
// Downcast V. If fails, throws an exception.
const Vector<Number> &down_V = dynamic_cast<const Vector<Number>&>(V);
internal::VectorOperations::Vectorization_equ_au<Number> vector_equ(this->val, down_V.val, a);
- internal::VectorOperations::parallel_for(vector_equ, this->size(), this->thread_loop_partitioner);
+ internal::VectorOperations::parallel_for(vector_equ, 0, this->size(), this->thread_loop_partitioner);
}
typedef typename VectorSpaceVector<Number>::real_type real_type;
value_type sum;
internal::VectorOperations::MeanValue<Number> mean_value(this->val);
- internal::VectorOperations::parallel_reduce(mean_value, this->size(), sum, this->thread_loop_partitioner);
+ internal::VectorOperations::parallel_reduce(mean_value, 0, this->size(), sum, this->thread_loop_partitioner);
return sum/static_cast<real_type>(this->size());
}
typedef typename VectorSpaceVector<Number>::real_type real_type;
real_type sum;
internal::VectorOperations::Norm1<Number, real_type> norm1(this->val);
- internal::VectorOperations::parallel_reduce(norm1, this->size(), sum, this->thread_loop_partitioner);
+ internal::VectorOperations::parallel_reduce(norm1, 0, this->size(), sum, this->thread_loop_partitioner);
return sum;
}
typedef typename VectorSpaceVector<Number>::real_type real_type;
real_type norm_square;
internal::VectorOperations::Norm2<Number, real_type> norm2(this->val);
- internal::VectorOperations::parallel_reduce(norm2, this->size(), norm_square,
+ internal::VectorOperations::parallel_reduce(norm2, 0, this->size(), norm_square,
this->thread_loop_partitioner);
if (numbers::is_finite(norm_square) &&
norm_square>=std::numeric_limits<real_type>::min())
Number sum;
internal::VectorOperations::AddAndDot<Number> adder(this->val, down_V.val, down_W.val, a);
- internal::VectorOperations::parallel_reduce(adder, this->size(), sum, this->thread_loop_partitioner);
+ internal::VectorOperations::parallel_reduce(adder, 0, this->size(), sum, this->thread_loop_partitioner);
AssertIsFinite(sum);
return sum;
ReadWriteVector<Number>::apply(const Functor &func)
{
FunctorTemplate<Functor> functor(*this, func);
- internal::VectorOperations::parallel_for(functor, n_elements(), thread_loop_partitioner);
+ internal::VectorOperations::parallel_for(functor, 0, n_elements(), thread_loop_partitioner);
}
#endif
reinit(in_vector, true);
dealii::internal::VectorOperations::Vector_copy<Number,Number> copier(in_vector.val, val);
- dealii::internal::VectorOperations::parallel_for(copier, n_elements(), thread_loop_partitioner);
+ dealii::internal::VectorOperations::parallel_for(copier, 0, n_elements(), thread_loop_partitioner);
return *this;
}
reinit(in_vector, true);
dealii::internal::VectorOperations::Vector_copy<Number,Number2> copier(in_vector.val, val);
- dealii::internal::VectorOperations::parallel_for(copier, n_elements(), thread_loop_partitioner);
+ dealii::internal::VectorOperations::parallel_for(copier, 0, n_elements(), thread_loop_partitioner);
return *this;
}
(void)s;
dealii::internal::VectorOperations::Vector_set<Number> setter(Number(), val);
- dealii::internal::VectorOperations::parallel_for(setter, n_elements(), thread_loop_partitioner);
+ dealii::internal::VectorOperations::parallel_for(setter, 0, n_elements(), thread_loop_partitioner);
return *this;
}
reinit (v, true);
dealii::internal::VectorOperations::Vector_copy<Number,Number> copier(v.val, val);
- internal::VectorOperations::parallel_for(copier,vec_size,thread_loop_partitioner);
+ internal::VectorOperations::parallel_for(copier,0,vec_size,thread_loop_partitioner);
return *this;
}
reinit (v, true);
dealii::internal::VectorOperations::Vector_copy<Number,Number2> copier(v.val, val);
- internal::VectorOperations::parallel_for(copier,vec_size,thread_loop_partitioner);
+ internal::VectorOperations::parallel_for(copier,0,vec_size,thread_loop_partitioner);
return *this;
}
internal::VectorOperations::Vector_set<Number> setter(s, val);
- internal::VectorOperations::parallel_for(setter,vec_size,thread_loop_partitioner);
+ internal::VectorOperations::parallel_for(setter,0,vec_size,thread_loop_partitioner);
return *this;
}
internal::VectorOperations::Vectorization_multiply_factor<Number> vector_multiply(val, factor);
- internal::VectorOperations::parallel_for(vector_multiply,vec_size,thread_loop_partitioner);
+ internal::VectorOperations::parallel_for(vector_multiply,0,vec_size,thread_loop_partitioner);
return *this;
}
Assert (vec_size == v.vec_size, ExcDimensionMismatch(vec_size, v.vec_size));
internal::VectorOperations::Vectorization_add_av<Number> vector_add_av(val, v.val, a);
- internal::VectorOperations::parallel_for(vector_add_av,vec_size,thread_loop_partitioner);
+ internal::VectorOperations::parallel_for(vector_add_av,0,vec_size,thread_loop_partitioner);
}
Assert (vec_size == v.vec_size, ExcDimensionMismatch(vec_size, v.vec_size));
internal::VectorOperations::Vectorization_sadd_xav<Number> vector_sadd_xav(val, v.val, a, x);
- internal::VectorOperations::parallel_for(vector_sadd_xav,vec_size,thread_loop_partitioner);
+ internal::VectorOperations::parallel_for(vector_sadd_xav,0,vec_size,thread_loop_partitioner);
}
Number sum;
internal::VectorOperations::Dot<Number,Number2> dot(val, v.val);
- internal::VectorOperations::parallel_reduce (dot, vec_size, sum, thread_loop_partitioner);
+ internal::VectorOperations::parallel_reduce (dot, 0, vec_size, sum, thread_loop_partitioner);
AssertIsFinite(sum);
return sum;
real_type sum;
internal::VectorOperations::Norm2<Number,real_type> norm2(val);
- internal::VectorOperations::parallel_reduce (norm2, vec_size, sum, thread_loop_partitioner);
+ internal::VectorOperations::parallel_reduce (norm2, 0, vec_size, sum, thread_loop_partitioner);
AssertIsFinite(sum);
Number sum;
internal::VectorOperations::MeanValue<Number> mean(val);
- internal::VectorOperations::parallel_reduce (mean, vec_size, sum, thread_loop_partitioner);
+ internal::VectorOperations::parallel_reduce (mean, 0, vec_size, sum, thread_loop_partitioner);
return sum / real_type(size());
}
real_type sum;
internal::VectorOperations::Norm1<Number, real_type> norm1(val);
- internal::VectorOperations::parallel_reduce (norm1, vec_size, sum, thread_loop_partitioner);
+ internal::VectorOperations::parallel_reduce (norm1, 0, vec_size, sum, thread_loop_partitioner);
return sum;
}
real_type norm_square;
internal::VectorOperations::Norm2<Number, real_type> norm2(val);
- internal::VectorOperations::parallel_reduce (norm2, vec_size, norm_square,
+ internal::VectorOperations::parallel_reduce (norm2, 0, vec_size, norm_square,
thread_loop_partitioner);
if (numbers::is_finite(norm_square) &&
norm_square >= std::numeric_limits<real_type>::min())
real_type sum;
internal::VectorOperations::NormP<Number, real_type> normp(val, p);
- internal::VectorOperations::parallel_reduce (normp, vec_size, sum, thread_loop_partitioner);
+ internal::VectorOperations::parallel_reduce (normp, 0, vec_size, sum, thread_loop_partitioner);
if (numbers::is_finite(sum) && sum >= std::numeric_limits<real_type>::min())
return std::pow(sum, static_cast<real_type>(1./p));
Number sum;
internal::VectorOperations::AddAndDot<Number> adder(this->val, V.val, W.val, a);
- internal::VectorOperations::parallel_reduce (adder, vec_size, sum, thread_loop_partitioner);
+ internal::VectorOperations::parallel_reduce (adder, 0, vec_size, sum, thread_loop_partitioner);
AssertIsFinite(sum);
return sum;
Assert (vec_size == v.vec_size, ExcDimensionMismatch(vec_size, v.vec_size));
internal::VectorOperations::Vectorization_subtract_v<Number> vector_subtract(val, v.val);
- internal::VectorOperations::parallel_for(vector_subtract,vec_size,thread_loop_partitioner);
+ internal::VectorOperations::parallel_for(vector_subtract,0,vec_size,thread_loop_partitioner);
return *this;
}
Assert (vec_size!=0, ExcEmptyObject());
internal::VectorOperations::Vectorization_add_factor<Number> vector_add(val, v);
- internal::VectorOperations::parallel_for(vector_add,vec_size,thread_loop_partitioner);
+ internal::VectorOperations::parallel_for(vector_add,0,vec_size,thread_loop_partitioner);
}
Assert (vec_size == v.vec_size, ExcDimensionMismatch(vec_size, v.vec_size));
internal::VectorOperations::Vectorization_add_v<Number> vector_add(val, v.val);
- internal::VectorOperations::parallel_for(vector_add,vec_size,thread_loop_partitioner);
+ internal::VectorOperations::parallel_for(vector_add,0,vec_size,thread_loop_partitioner);
}
Assert (vec_size == w.vec_size, ExcDimensionMismatch(vec_size, w.vec_size));
internal::VectorOperations::Vectorization_add_avpbw<Number> vector_add(val, v.val, w.val, a, b);
- internal::VectorOperations::parallel_for(vector_add,vec_size,thread_loop_partitioner);
+ internal::VectorOperations::parallel_for(vector_add,0,vec_size,thread_loop_partitioner);
}
Assert (vec_size == v.vec_size, ExcDimensionMismatch(vec_size, v.vec_size));
internal::VectorOperations::Vectorization_sadd_xv<Number> vector_sadd(val, v.val, x);
- internal::VectorOperations::parallel_for(vector_sadd,vec_size,thread_loop_partitioner);
+ internal::VectorOperations::parallel_for(vector_sadd,0,vec_size,thread_loop_partitioner);
}
internal::VectorOperations::Vectorization_sadd_xavbw<Number> vector_sadd(val, v.val, w.val, x,
a, b);
- internal::VectorOperations::parallel_for(vector_sadd,vec_size,thread_loop_partitioner);
+ internal::VectorOperations::parallel_for(vector_sadd,0,vec_size,thread_loop_partitioner);
}
Assert (vec_size == s.vec_size, ExcDimensionMismatch(vec_size, s.vec_size));
internal::VectorOperations::Vectorization_scale<Number> vector_scale(val, s.val);
- internal::VectorOperations::parallel_for(vector_scale,vec_size,thread_loop_partitioner);
+ internal::VectorOperations::parallel_for(vector_scale,0,vec_size,thread_loop_partitioner);
}
Assert (vec_size == u.vec_size, ExcDimensionMismatch(vec_size, u.vec_size));
internal::VectorOperations::Vectorization_equ_au<Number> vector_equ(val, u.val, a);
- internal::VectorOperations::parallel_for(vector_equ,vec_size,thread_loop_partitioner);
+ internal::VectorOperations::parallel_for(vector_equ,0,vec_size,thread_loop_partitioner);
}
Assert (vec_size == v.vec_size, ExcDimensionMismatch(vec_size, v.vec_size));
internal::VectorOperations::Vectorization_equ_aubv<Number> vector_equ(val, u.val, v.val, a, b);
- internal::VectorOperations::parallel_for(vector_equ,vec_size,thread_loop_partitioner);
+ internal::VectorOperations::parallel_for(vector_equ,0,vec_size,thread_loop_partitioner);
}
internal::VectorOperations::Vectorization_equ_aubvcw<Number> vector_equ(val, u.val, v.val, w.val,
a, b, c);
- internal::VectorOperations::parallel_for(vector_equ,vec_size,thread_loop_partitioner);
+ internal::VectorOperations::parallel_for(vector_equ,0,vec_size,thread_loop_partitioner);
}
reinit (a.size(), true);
internal::VectorOperations::Vectorization_ratio<Number> vector_ratio(val, a.val, b.val);
- internal::VectorOperations::parallel_for(vector_ratio,vec_size,thread_loop_partitioner);
+ internal::VectorOperations::parallel_for(vector_ratio,0,vec_size,thread_loop_partitioner);
}
template <typename Functor>
void parallel_for(Functor &functor,
+ size_type start,
size_type end,
- std_cxx11::shared_ptr<parallel::internal::TBBPartitioner> &partitioner,
- size_type start = 0)
+ std_cxx11::shared_ptr<parallel::internal::TBBPartitioner> &partitioner)
{
#ifdef DEAL_II_WITH_THREADS
size_type vec_size = end-start;
*/
template <typename Operation, typename ResultType>
void parallel_reduce (const Operation &op,
+ const size_type start,
const size_type end,
ResultType &result,
- std_cxx11::shared_ptr<parallel::internal::TBBPartitioner> &partitioner,
- const size_type start = 0)
+ std_cxx11::shared_ptr<parallel::internal::TBBPartitioner> &partitioner)
{
#ifdef DEAL_II_WITH_THREADS
size_type vec_size = end-start;
{
const unsigned int begin = i*chunk_size;
const unsigned int end = std::min((i+1)*chunk_size, size);
- internal::VectorOperations::parallel_for(setter, end,
- thread_loop_partitioner,
- begin);
+ internal::VectorOperations::parallel_for(setter, begin, end,
+ thread_loop_partitioner);
}
// check values:
internal::VectorOperations::MeanValue<Number> mean(val);
Number sum_direct = 0.;
- internal::VectorOperations::parallel_reduce (mean, size, sum_direct,
+ internal::VectorOperations::parallel_reduce (mean, 0, size, sum_direct,
thread_loop_partitioner);
Number sum = 0.;
const unsigned int end = std::min((i+1)*chunk_size, size);
Number sum_i = 0.;
- internal::VectorOperations::parallel_reduce (mean, end, sum_i,
- thread_loop_partitioner,
- begin);
+ internal::VectorOperations::parallel_reduce (mean, begin, end, sum_i,
+ thread_loop_partitioner);
sum+= sum_i;
}