Reference documentation for deal.II version 8.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
grid_refinement.h
1 // ---------------------------------------------------------------------
2 // @f$Id: grid_refinement.h 30036 2013-07-18 16:55:32Z maier @f$
3 //
4 // Copyright (C) 2000 - 2013 by the deal.II authors
5 //
6 // This file is part of the deal.II library.
7 //
8 // The deal.II library is free software; you can use it, redistribute
9 // it, and/or modify it under the terms of the GNU Lesser General
10 // Public License as published by the Free Software Foundation; either
11 // version 2.1 of the License, or (at your option) any later version.
12 // The full text of the license can be found in the file LICENSE at
13 // the top level of the deal.II distribution.
14 //
15 // ---------------------------------------------------------------------
16 
17 #ifndef __deal2__grid_refinement_h
18 #define __deal2__grid_refinement_h
19 
20 
21 #include <deal.II/base/config.h>
23 #include <deal.II/grid/tria.h>
24 
25 #include <vector>
26 #include <limits>
27 
29 
30 // forward declarations
31 template <int dim, int spacedim> class Triangulation;
32 template <class T> class Vector;
33 
34 
50 namespace GridRefinement
51 {
116  template <int dim, class Vector, int spacedim>
117  void
120  const Vector &criteria,
121  const double top_fraction_of_cells,
122  const double bottom_fraction_of_cells,
123  const unsigned int max_n_cells = std::numeric_limits<unsigned int>::max());
124 
178  template <int dim, class Vector, int spacedim>
179  void
182  const Vector &criteria,
183  const double top_fraction,
184  const double bottom_fraction,
185  const unsigned int max_n_cells = std::numeric_limits<unsigned int>::max());
186 
187 
188 
213  template <int dim, class Vector, int spacedim>
214  void
216  const Vector &criteria,
217  const unsigned int order=2);
218 
234  template <int dim, class Vector, int spacedim>
236  const Vector &criteria,
237  const double threshold,
238  const unsigned int max_to_mark = numbers::invalid_unsigned_int);
239 
255  template <int dim, class Vector, int spacedim>
257  const Vector &criteria,
258  const double threshold);
259 
265  DeclException0(ExcNegativeCriteria);
266 
273  DeclException0 (ExcInvalidParameterValue);
274 }
275 
276 
277 
278 DEAL_II_NAMESPACE_CLOSE
279 
280 #endif //__deal2__grid_refinement_h
static const unsigned int invalid_unsigned_int
Definition: types.h:191
void refine_and_coarsen_optimize(Triangulation< dim, spacedim > &tria, const Vector &criteria, const unsigned int order=2)
void refine_and_coarsen_fixed_fraction(Triangulation< dim, spacedim > &tria, const Vector &criteria, const double top_fraction, const double bottom_fraction, const unsigned int max_n_cells=std::numeric_limits< unsigned int >::max())
void refine_and_coarsen_fixed_number(Triangulation< dim, spacedim > &tria, const Vector &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 coarsen(Triangulation< dim, spacedim > &tria, const Vector &criteria, const double threshold)
void refine(Triangulation< dim, spacedim > &tria, const Vector &criteria, const double threshold, const unsigned int max_to_mark=numbers::invalid_unsigned_int)
DeclException0(ExcNegativeCriteria)