Reference documentation for deal.II version 9.1.0-pre
grid_refinement.h
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2009 - 2018 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.md at
12 // the top level directory of deal.II.
13 //
14 // ---------------------------------------------------------------------
15 
16 #ifndef dealii_distributed_grid_refinement_h
17 #define dealii_distributed_grid_refinement_h
18 
19 
20 #include <deal.II/base/config.h>
21 
22 #include <deal.II/base/exceptions.h>
23 
24 #include <deal.II/distributed/tria.h>
25 
26 #include <limits>
27 #include <vector>
28 
29 DEAL_II_NAMESPACE_OPEN
30 
31 namespace parallel
32 {
33  namespace distributed
34  {
50  namespace GridRefinement
51  {
74  template <int dim, typename Number, int spacedim>
75  void
78  const ::Vector<Number> & criteria,
79  const double top_fraction_of_cells,
80  const double bottom_fraction_of_cells,
81  const unsigned int max_n_cells =
82  std::numeric_limits<unsigned int>::max());
83 
107  template <int dim, typename Number, int spacedim>
108  void
111  const ::Vector<Number> & criteria,
112  const double top_fraction_of_error,
113  const double bottom_fraction_of_error);
114  } // namespace GridRefinement
115  } // namespace distributed
116 } // namespace parallel
117 
118 
119 DEAL_II_NAMESPACE_CLOSE
120 
121 #endif // dealii_distributed_grid_refinement_h
void refine_and_coarsen_fixed_fraction(parallel::distributed::Triangulation< dim, spacedim > &tria, const ::Vector< Number > &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 ::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())