00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #ifndef __deal2__distribute_grid_refinement_h
00013 #define __deal2__distribute_grid_refinement_h
00014
00015
00016 #include <deal.II/base/config.h>
00017 #include <deal.II/base/exceptions.h>
00018 #include <deal.II/distributed/tria.h>
00019
00020 #include <vector>
00021 #include <limits>
00022
00023 DEAL_II_NAMESPACE_OPEN
00024
00025 namespace parallel
00026 {
00027 namespace distributed
00028 {
00029
00030 template <int dim, int spacedim> class Triangulation;
00031
00032
00043 namespace GridRefinement
00044 {
00080 template <int dim, class Vector, int spacedim>
00081 void
00082 refine_and_coarsen_fixed_number (
00083 parallel::distributed::Triangulation<dim,spacedim> &tria,
00084 const Vector &criteria,
00085 const double top_fraction_of_cells,
00086 const double bottom_fraction_of_cells);
00087
00123 template <int dim, class Vector, int spacedim>
00124 void
00125 refine_and_coarsen_fixed_fraction (
00126 parallel::distributed::Triangulation<dim,spacedim> &tria,
00127 const Vector &criteria,
00128 const double top_fraction_of_error,
00129 const double bottom_fraction_of_error);
00130 }
00131 }
00132 }
00133
00134
00135 DEAL_II_NAMESPACE_CLOSE
00136
00137 #endif //__deal2__distributed_grid_refinement_h
00138