Reference documentation for deal.II version 9.0.0
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 at
12 // the top level of the deal.II distribution.
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 #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  {
48  namespace GridRefinement
49  {
72  template <int dim, typename Number, int spacedim>
73  void
76  const ::Vector<Number> &criteria,
77  const double top_fraction_of_cells,
78  const double bottom_fraction_of_cells,
79  const unsigned int max_n_cells = std::numeric_limits<unsigned int>::max());
80 
103  template <int dim, typename Number, int spacedim>
104  void
107  const ::Vector<Number> &criteria,
108  const double top_fraction_of_error,
109  const double bottom_fraction_of_error);
110  }
111  }
112 }
113 
114 
115 DEAL_II_NAMESPACE_CLOSE
116 
117 #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())