16 #ifndef dealii_grid_refinement_h 17 #define dealii_grid_refinement_h 20 #include <deal.II/base/config.h> 22 #include <deal.II/base/exceptions.h> 26 DEAL_II_NAMESPACE_OPEN
29 template <
int dim,
int spacedim>
31 template <
typename Number>
86 std::pair<double, double>
88 const unsigned int current_n_cells,
89 const unsigned int max_n_cells,
90 const double top_fraction_of_cells,
91 const double bottom_fraction_of_cells);
157 template <
int dim,
typename Number,
int spacedim>
161 const Vector<Number> & criteria,
162 const double top_fraction_of_cells,
163 const double bottom_fraction_of_cells,
164 const unsigned int max_n_cells = std::numeric_limits<unsigned int>::max());
222 template <
int dim,
typename Number,
int spacedim>
226 const Vector<Number> & criteria,
227 const double top_fraction,
228 const double bottom_fraction,
229 const unsigned int max_n_cells = std::numeric_limits<unsigned int>::max());
306 template <
int dim,
typename Number,
int spacedim>
309 const Vector<Number> & criteria,
310 const unsigned int order = 2);
326 template <
int dim,
typename Number,
int spacedim>
329 const Vector<Number> & criteria,
330 const double threshold,
347 template <
int dim,
typename Number,
int spacedim>
350 const Vector<Number> & criteria,
351 const double threshold);
368 DEAL_II_NAMESPACE_CLOSE
370 #endif // dealii_grid_refinement_h static const unsigned int invalid_unsigned_int
LinearAlgebra::distributed::Vector< Number > Vector
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)