*/
UpdateFlags
compute_update_flags (const UpdateFlags update_flags,
- const std::vector<dealii::hp::QCollection<1> > &quad) const;
+ const std::vector<dealii::hp::QCollection<1> > &quad) const;
/**
- * Returns the type of a given cell as
- * detected during initialization.
+ * Returns the type of a given cell as detected during initialization.
*/
CellType get_cell_type (const unsigned int cell_chunk_no) const;
(STREAM &out,
const SizeInfo &size_info) const
{
- // print_memory_statistics involves
- // global communication, so we can
- // disable the check here only if no
- // processor has any such data
+ // print_memory_statistics involves global communication, so we can
+ // disable the check here only if no processor has any such data
-#if DEAL_II_COMPILER_SUPPORTS_MPI
+#ifdef DEAL_II_COMPILER_SUPPORTS_MPI
unsigned int general_size_glob = 0, general_size_loc = jacobians.size();
MPI_Allreduce (&general_size_loc, &general_size_glob, 1, MPI_UNSIGNED,
MPI_MAX, size_info.communicator);
}
-#if DEAL_II_USE_MT==1
+#ifdef DEAL_II_USE_MT
- // This defines the TBB data structures that
- // are needed to schedule the
+ // This defines the TBB data structures that are needed to schedule the
// partition-partition variant
namespace partition
const std::pair<unsigned int,
unsigned int> &)> &cell_operation,
OutVector &dst,
- const InVector &src) const
+ const InVector &src) const
{
-#if DEAL_II_USE_MT==1
+#ifdef DEAL_II_USE_MT
- // Use multithreading if so requested and if
- // there is enough work to do in parallel (the
- // code might hang if there are less than two
- // chunks!)
+ // Use multithreading if so requested and if there is enough work to do in
+ // parallel (the code might hang if there are less than two chunks!)
if (task_info.use_multithreading == true && task_info.n_blocks > 3)
{
- // to simplify the function calls, bind away
- // all arguments except the cell range
+ // to simplify the function calls, bind away all arguments except the
+ // cell range
typedef
std_cxx1x::function<void (const std::pair<unsigned int,unsigned int> &range)>
Worker;
for (unsigned int no=0; no<dof_handler.size(); ++no)
dof_info[no].store_plain_indices = additional_data.store_plain_indices;
- // initialize the basic multithreading
- // information that needs to be passed to the
- // DoFInfo structure
+ // initialize the basic multithreading information that needs to be
+ // passed to the DoFInfo structure
-#if DEAL_II_USE_MT == 1
+#ifdef DEAL_II_USE_MT
if (additional_data.tasks_parallel_scheme != AdditionalData::none)
{
task_info.use_multithreading = true;
for (unsigned int no=0; no<dof_handler.size(); ++no)
dof_info[no].store_plain_indices = additional_data.store_plain_indices;
- // initialize the basic multithreading
- // information that needs to be passed to the
- // DoFInfo structure
+ // initialize the basic multithreading information that needs to be
+ // passed to the DoFInfo structure
-#if DEAL_II_USE_MT == 1
+#ifdef DEAL_II_USE_MT
if (additional_data.tasks_parallel_scheme != AdditionalData::none)
{
task_info.use_multithreading = true;
unsigned int n_max_boundary_cells = boundary_cells.size();
unsigned int n_boundary_cells = n_max_boundary_cells;
- // try to make the number of boundary cells
- // divisible by the number of vectors in
- // vectorization
+ // try to make the number of boundary cells divisible by the number of
+ // vectors in vectorization
+
/*
- // try to balance the number of cells before
- // and after the boundary part on each
- // processor. probably not worth it!
+ // try to balance the number of cells before and after the boundary part
+ // on each processor. probably not worth it!
- #if DEAL_II_COMPILER_SUPPORTS_MPI
+ #ifdef DEAL_II_COMPILER_SUPPORTS_MPI
MPI_Allreduce (&n_boundary_cells, &n_max_boundary_cells, 1, MPI_UNSIGNED,
MPI_MAX, size_info.communicator);
#endif