include/deal.II/distributed/grid_refinement.h

00001 //---------------------------------------------------------------------------
00002 //    @f$Id: grid_refinement.h 25345 2012-03-31 08:37:04Z bangerth @f$
00003 //
00004 //    Copyright (C) 2009, 2010, 2012 by the deal.II authors
00005 //
00006 //    This file is subject to QPL and may not be  distributed
00007 //    without copyright and license information. Please refer
00008 //    to the file deal.II/doc/license.html for the  text  and
00009 //    further information on this license.
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                                      // forward declarations
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 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

deal.II documentation generated on Tue May 22 2012 12:06:06 by doxygen 1.7.3