16 #ifndef dealii_distributed_grid_refinement_h 17 #define dealii_distributed_grid_refinement_h 44 template <
typename number>
45 std::pair<number, number>
47 const ::Vector<number> &criteria,
48 MPI_Comm mpi_communicator);
50 namespace RefineAndCoarsenFixedNumber
56 template <
typename number>
59 const std::pair<double, double> &global_min_and_max,
61 MPI_Comm mpi_communicator);
64 namespace RefineAndCoarsenFixedFraction
72 template <
typename number>
75 const std::pair<double, double> &global_min_and_max,
76 const double target_error,
77 MPI_Comm mpi_communicator);
129 template <
int dim,
typename Number,
int spacedim>
133 const ::Vector<Number> & criteria,
134 const double top_fraction_of_cells,
135 const double bottom_fraction_of_cells,
162 template <
int dim,
typename Number,
int spacedim>
166 const ::Vector<Number> & criteria,
167 const double top_fraction_of_error,
168 const double bottom_fraction_of_error);
176 #endif // dealii_distributed_grid_refinement_h unsigned int global_cell_index
std::pair< number, number > compute_global_min_and_max_at_root(const ::Vector< number > &criteria, MPI_Comm mpi_communicator)
#define DEAL_II_NAMESPACE_CLOSE
number compute_threshold(const ::Vector< number > &criteria, const std::pair< double, double > &global_min_and_max, const types::global_cell_index n_target_cells, MPI_Comm mpi_communicator)
#define DEAL_II_NAMESPACE_OPEN
void refine_and_coarsen_fixed_fraction(Triangulation< dim, spacedim > &tria, const Vector< Number > &criteria, const double top_fraction, const double bottom_fraction, const unsigned int max_n_cells=std::numeric_limits< unsigned int >::max())
T max(const T &t, const MPI_Comm &mpi_communicator)
void refine_and_coarsen_fixed_number(Triangulation< dim, spacedim > &triangulation, const Vector< Number > &criteria, const double top_fraction_of_cells, const double bottom_fraction_of_cells, const unsigned int max_n_cells=std::numeric_limits< unsigned int >::max())