16 #ifndef dealii_grid_refinement_h 17 #define dealii_grid_refinement_h 20 #include <deal.II/base/config.h> 21 #include <deal.II/base/exceptions.h> 25 DEAL_II_NAMESPACE_OPEN
29 template <
typename Number>
class Vector;
83 std::pair<double, double>
85 const unsigned int max_n_cells,
86 const double top_fraction_of_cells,
87 const double bottom_fraction_of_cells);
153 template <
int dim,
typename Number,
int spacedim>
157 const Vector<Number> &criteria,
158 const double top_fraction_of_cells,
159 const double bottom_fraction_of_cells,
160 const unsigned int max_n_cells = std::numeric_limits<unsigned int>::max());
218 template <
int dim,
typename Number,
int spacedim>
222 const Vector<Number> &criteria,
223 const double top_fraction,
224 const double bottom_fraction,
225 const unsigned int max_n_cells = std::numeric_limits<unsigned int>::max());
302 template <
int dim,
typename Number,
int spacedim>
305 const Vector<Number> &criteria,
306 const unsigned int order=2);
322 template <
int dim,
typename Number,
int spacedim>
324 const Vector<Number> &criteria,
325 const double threshold,
342 template <
int dim,
typename Number,
int spacedim>
344 const Vector<Number> &criteria,
345 const double threshold);
362 DEAL_II_NAMESPACE_CLOSE
364 #endif //dealii_grid_refinement_h static const unsigned int invalid_unsigned_int
void refine_and_coarsen_optimize(Triangulation< dim, spacedim > &tria, const Vector< Number > &criteria, const unsigned int order=2)
static ::ExceptionBase & ExcNegativeCriteria()
#define DeclException0(Exception0)
void coarsen(Triangulation< dim, spacedim > &tria, const Vector< Number > &criteria, const double threshold)
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())
std::pair< double, double > adjust_refine_and_coarsen_number_fraction(const unsigned int current_n_cells, const unsigned int max_n_cells, const double top_fraction_of_cells, const double bottom_fraction_of_cells)
static ::ExceptionBase & ExcInvalidParameterValue()
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())
void refine(Triangulation< dim, spacedim > &tria, const Vector< Number > &criteria, const double threshold, const unsigned int max_to_mark=numbers::invalid_unsigned_int)