Reference documentation for deal.II version 8.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
grid_refinement.h
1 // ---------------------------------------------------------------------
2 // @f$Id: grid_refinement.h 30036 2013-07-18 16:55:32Z maier @f$
3 //
4 // Copyright (C) 2009 - 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__distribute_grid_refinement_h
18 #define __deal2__distribute_grid_refinement_h
19 
20 
21 #include <deal.II/base/config.h>
23 #include <deal.II/distributed/tria.h>
24 
25 #include <vector>
26 #include <limits>
27 
28 DEAL_II_NAMESPACE_OPEN
29 
30 namespace parallel
31 {
32  namespace distributed
33  {
34  // forward declarations
35  template <int dim, int spacedim> class Triangulation;
36 
37 
48  namespace GridRefinement
49  {
85  template <int dim, class Vector, int spacedim>
86  void
89  const Vector &criteria,
90  const double top_fraction_of_cells,
91  const double bottom_fraction_of_cells);
92 
128  template <int dim, class Vector, int spacedim>
129  void
132  const Vector &criteria,
133  const double top_fraction_of_error,
134  const double bottom_fraction_of_error);
135  }
136  }
137 }
138 
139 
140 DEAL_II_NAMESPACE_CLOSE
141 
142 #endif //__deal2__distributed_grid_refinement_h
void refine_and_coarsen_fixed_fraction(parallel::distributed::Triangulation< dim, spacedim > &tria, const Vector &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 &criteria, const double top_fraction_of_cells, const double bottom_fraction_of_cells)