Reference documentation for deal.II version 9.3.0
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
Functions
internal::parallel::distributed::GridRefinement::RefineAndCoarsenFixedNumber Namespace Reference

Functions

template<typename number >
number compute_threshold (const ::Vector< number > &criteria, const std::pair< double, double > &global_min_and_max, const types::global_cell_index n_target_cells, const MPI_Comm &mpi_communicator)
 

Function Documentation

◆ compute_threshold()

template<typename number >
number internal::parallel::distributed::GridRefinement::RefineAndCoarsenFixedNumber::compute_threshold ( const ::Vector< number > &  criteria,
const std::pair< double, double > &  global_min_and_max,
const types::global_cell_index  n_target_cells,
const MPI_Comm mpi_communicator 
)

Compute a threshold value so that exactly n_target_cells have a value that is larger.

Definition at line 296 of file grid_refinement.cc.