deallog.depth_console(0);
deallog.threshold_double(1.e-10);
- for (unsigned int i=0; i<multithread_info.n_cpus*2; ++i)
+ for (unsigned int i=0; i<MultithreadInfo::n_cpus*2; ++i)
Threads::new_task (outer);
deallog << "OK" << std::endl;
KellyErrorEstimator<dim>::estimate (mapping, dof, q_face, neumann_bc,
v, this_error,
std::vector<bool>(), 0,
- multithread_info.n_threads(),
+ MultithreadInfo::n_threads(),
subdomain);
this_error *= scaling_factor;
KellyErrorEstimator<dim>::estimate (mapping, dof, q_face, neumann_bc,
v, this_error,
std::vector<bool>(), 0,
- multithread_info.n_threads(),
+ MultithreadInfo::n_threads(),
numbers::invalid_unsigned_int,
material);
this_error *= scaling_factor;
typename DoFHandler<dim>::active_cell_iterator
active_cell_iterator;
- const unsigned int n_threads = multithread_info.n_threads();
+ const unsigned int n_threads = MultithreadInfo::n_threads();
std::vector<std::pair<active_cell_iterator,active_cell_iterator> >
thread_ranges
= Threads::split_range<active_cell_iterator> (dof_handler.begin_active (),
typename DoFHandler<dim>::active_cell_iterator
active_cell_iterator;
- const unsigned int n_threads = multithread_info.n_threads();
+ const unsigned int n_threads = MultithreadInfo::n_threads();
std::vector<std::pair<active_cell_iterator,active_cell_iterator> >
thread_ranges
= Threads::split_range<active_cell_iterator> (dof_handler.begin_active (),
error_indicators.reinit (dual_solver.dof_handler
.get_tria().n_active_cells());
- const unsigned int n_threads = multithread_info.n_threads();
+ const unsigned int n_threads = MultithreadInfo::n_threads();
for (unsigned int i=0; i<n_threads; ++i)
{
estimate_some
KellyErrorEstimator<dim,spacedim>::estimate (mapping, dof, q_face, neumann_bc,
v, this_error,
std::vector<bool>(), 0,
- multithread_info.n_threads(),
+ MultithreadInfo::n_threads(),
subdomain);
this_error *= scaling_factor;
std_cxx11::_1),
Assembly::Scratch::Data<dim>(fe_collection, quadrature_collection),
Assembly::Copy::Data (),
- multithread_info.n_threads(),
+ MultithreadInfo::n_threads(),
1);
}
std_cxx11::_1),
Assembly::Scratch::Data<dim>(fe_collection, quadrature_collection),
Assembly::Copy::Data (true),
- 2*multithread_info.n_threads(),
+ 2*MultithreadInfo::n_threads(),
1);
}
std_cxx11::_1),
Assembly::Scratch::Data<dim>(fe_collection, quadrature_collection),
Assembly::Copy::Data (1),
- 2*multithread_info.n_threads(),
+ 2*MultithreadInfo::n_threads(),
1);
for (unsigned int i=0; i<dof_handler.n_dofs(); ++i)
if (constraints.is_constrained(i))
std_cxx11::_1),
Assembly::Scratch::Data<dim>(fe_collection, quadrature_collection),
Assembly::Copy::Data (2),
- 2*multithread_info.n_threads(),
+ 2*MultithreadInfo::n_threads(),
1);
for (unsigned int i=0; i<dof_handler.n_dofs(); ++i)
if (constraints.is_constrained(i))
typename hp::DoFHandler<dim>::active_cell_iterator
active_cell_iterator;
- const unsigned int n_threads = multithread_info.n_threads();
+ const unsigned int n_threads = MultithreadInfo::n_threads();
std::vector<std::pair<active_cell_iterator,active_cell_iterator> >
thread_ranges
= Threads::split_range<active_cell_iterator> (dof_handler.begin_active (),
error_indicators.reinit (dual_solver.dof_handler
.get_tria().n_active_cells());
- const unsigned int n_threads = multithread_info.n_threads();
+ const unsigned int n_threads = MultithreadInfo::n_threads();
Threads::ThreadGroup<> threads;
for (unsigned int i=0; i<n_threads; ++i)
threads += Threads::new_thread (&WeightedResidual<dim>::estimate_some, *this,
typename hp::DoFHandler<dim>::active_cell_iterator
active_cell_iterator;
- const unsigned int n_threads = multithread_info.n_threads();
+ const unsigned int n_threads = MultithreadInfo::n_threads();
std::vector<std::pair<active_cell_iterator,active_cell_iterator> >
thread_ranges
= Threads::split_range<active_cell_iterator> (dof_handler.begin_active (),
©_data_local_to_global,
Assembly::Scratch::Data<dim,fe_degree>(dof.get_fe()),
dummy,
- 2*multithread_info.n_threads(),
+ 2*MultithreadInfo::n_threads(),
1);
deallog << "OK" << std::endl;
}
if (!getaffinity(bits_set, mask))
return 1;
- unsigned int nprocs = dealii::multithread_info.n_cpus;
- unsigned int tbbprocs = dealii::multithread_info.n_threads();
+ unsigned int nprocs = dealii::MultithreadInfo::n_cpus;
+ unsigned int tbbprocs = dealii::MultithreadInfo::n_threads();
printf("aff_ncpus=%d, mask=%08X, nprocs=%d, tbb_threads=%d\n",
bits_set, mask, nprocs, tbbprocs );
{
LimitConcurrency ()
{
- multithread_info.set_thread_limit (5);
+ MultithreadInfo::set_thread_limit (5);
}
} limit_concurrency;
#endif
std_cxx11::_1),
Assembly::Scratch::Data<dim>(fe_collection, quadrature_collection),
Assembly::Copy::Data (),
- 2*multithread_info.n_threads(),
+ 2*MultithreadInfo::n_threads(),
1);
test_matrix.add(-1, reference_matrix);
std_cxx11::_1),
Assembly::Scratch::Data<dim>(fe, quadrature),
Assembly::Copy::Data (false),
- 2*multithread_info.n_threads(),
+ 2*MultithreadInfo::n_threads(),
1);
test_matrix.compress(VectorOperation::add);
test_rhs.compress(VectorOperation::add);
std_cxx11::_1),
Assembly::Scratch::Data<dim>(fe, quadrature),
Assembly::Copy::Data (false),
- 2*multithread_info.n_threads(),
+ 2*MultithreadInfo::n_threads(),
1);
test_matrix.compress(VectorOperation::add);
test_rhs.compress(VectorOperation::add);
std_cxx11::_1),
Assembly::Scratch::Data<dim>(fe, quadrature),
Assembly::Copy::Data (false),
- 2*multithread_info.n_threads(),
+ 2*MultithreadInfo::n_threads(),
1);
test_matrix.compress(VectorOperation::add);
test_rhs.compress(VectorOperation::add);
std_cxx11::_1),
Assembly::Scratch::Data<dim>(fe, quadrature),
Assembly::Copy::Data (false),
- 2*multithread_info.n_threads(),
+ 2*MultithreadInfo::n_threads(),
1);
test_matrix.compress(VectorOperation::add);
test_rhs.compress(VectorOperation::add);
std_cxx11::_1),
Assembly::Scratch::Data<dim>(fe, quadrature),
Assembly::Copy::Data (false),
- 2*multithread_info.n_threads(),
+ 2*MultithreadInfo::n_threads(),
1);
test_matrix.compress(VectorOperation::add);
test_rhs.compress(VectorOperation::add);
std_cxx11::_1),
Assembly::Scratch::Data<dim>(fe, quadrature),
Assembly::Copy::Data (false),
- 2*multithread_info.n_threads(),
+ 2*MultithreadInfo::n_threads(),
1);
test_matrix.compress(VectorOperation::add);
test_matrix.compress(VectorOperation::add);