Loading [MathJax]/extensions/TeX/AMSsymbols.js
 Reference documentation for deal.II version 8.5.1
All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
grid_refinement.h
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2009 - 2016 by the deal.II authors
4 //
5 // This file is part of the deal.II library.
6 //
7 // The deal.II library is free software; you can use it, redistribute
8 // it, and/or modify it under the terms of the GNU Lesser General
9 // Public License as published by the Free Software Foundation; either
10 // version 2.1 of the License, or (at your option) any later version.
11 // The full text of the license can be found in the file LICENSE at
12 // the top level of the deal.II distribution.
13 //
14 // ---------------------------------------------------------------------
15 
16 #ifndef dealii__distribute_grid_refinement_h
17 #define dealii__distribute_grid_refinement_h
18 
19 
20 #include <deal.II/base/config.h>
21 #include <deal.II/base/exceptions.h>
22 #include <deal.II/distributed/tria.h>
23 
24 #include <vector>
25 #include <limits>
26 
27 DEAL_II_NAMESPACE_OPEN
28 
29 namespace parallel
30 {
31  namespace distributed
32  {
42  namespace GridRefinement
43  {
66  template <int dim, class VectorType, int spacedim>
67  void
70  const VectorType &criteria,
71  const double top_fraction_of_cells,
72  const double bottom_fraction_of_cells,
73  const unsigned int max_n_cells = std::numeric_limits<unsigned int>::max());
74 
97  template <int dim, class VectorType, int spacedim>
98  void
101  const VectorType &criteria,
102  const double top_fraction_of_error,
103  const double bottom_fraction_of_error);
104  }
105  }
106 }
107 
108 
109 DEAL_II_NAMESPACE_CLOSE
110 
111 #endif //dealii__distributed_grid_refinement_h
void refine_and_coarsen_fixed_fraction(parallel::distributed::Triangulation< dim, spacedim > &tria, const VectorType &criteria, const double top_fraction_of_error, const double bottom_fraction_of_error)
void refine_and_coarsen_fixed_number(parallel::distributed::Triangulation< dim, spacedim > &tria, 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())