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
79 std::pair<double, double>
81 const unsigned int max_n_cells,
82 const double top_fraction_of_cells,
83 const double bottom_fraction_of_cells);
148 template <
int dim,
class VectorType,
int spacedim>
152 const VectorType &criteria,
153 const double top_fraction_of_cells,
154 const double bottom_fraction_of_cells,
155 const unsigned int max_n_cells = std::numeric_limits<unsigned int>::max());
212 template <
int dim,
class VectorType,
int spacedim>
216 const VectorType &criteria,
217 const double top_fraction,
218 const double bottom_fraction,
219 const unsigned int max_n_cells = std::numeric_limits<unsigned int>::max());
295 template <
int dim,
class VectorType,
int spacedim>
298 const VectorType &criteria,
299 const unsigned int order=2);
315 template <
int dim,
class VectorType,
int spacedim>
317 const VectorType &criteria,
318 const double threshold,
335 template <
int dim,
class VectorType,
int spacedim>
337 const VectorType &criteria,
338 const double threshold);
355 DEAL_II_NAMESPACE_CLOSE
357 #endif //dealii__grid_refinement_h void refine_and_coarsen_fixed_number(Triangulation< dim, spacedim > &triangulation, const VectorType &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())
static const unsigned int invalid_unsigned_int
void refine_and_coarsen_fixed_fraction(Triangulation< dim, spacedim > &tria, const VectorType &criteria, const double top_fraction, const double bottom_fraction, const unsigned int max_n_cells=std::numeric_limits< unsigned int >::max())
static ::ExceptionBase & ExcNegativeCriteria()
#define DeclException0(Exception0)
void coarsen(Triangulation< dim, spacedim > &tria, const VectorType &criteria, const double threshold)
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(Triangulation< dim, spacedim > &tria, const VectorType &criteria, const double threshold, const unsigned int max_to_mark=numbers::invalid_unsigned_int)
void refine_and_coarsen_optimize(Triangulation< dim, spacedim > &tria, const VectorType &criteria, const unsigned int order=2)