Reference documentation for deal.II version 8.5.1
grid_reordering.h
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2000 - 2017 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__grid_reordering_h
17 #define dealii__grid_reordering_h
18 
19 
20 #include <deal.II/base/config.h>
21 #include <deal.II/grid/tria.h>
22 
23 #include <vector>
24 
25 DEAL_II_NAMESPACE_OPEN
26 
32  "The edges of the mesh are not consistently orientable.");
33 
34 
631 template <int dim, int spacedim=dim>
633 {
634 public:
635 
650  static void reorder_cells (std::vector<CellData<dim> > &original_cells,
651  const bool use_new_style_ordering = false);
652 
669  const std::vector<Point<spacedim> > &all_vertices,
670  std::vector<CellData<dim> > &original_cells);
671 };
672 
673 
674 // declaration of explicit specializations
675 template<>
676 void
677 GridReordering<2>::invert_all_cells_of_negative_grid(const std::vector<Point<2> > &all_vertices,
678  std::vector<CellData<2> > &cells);
679 
680 template<>
681 void
682 GridReordering<2,3>::invert_all_cells_of_negative_grid(const std::vector<Point<3> > &all_vertices,
683  std::vector<CellData<2> > &cells);
684 
685 template<>
686 void
687 GridReordering<3>::invert_all_cells_of_negative_grid(const std::vector<Point<3> > &all_vertices,
688  std::vector<CellData<3> > &cells);
689 
690 DEAL_II_NAMESPACE_CLOSE
691 
692 #endif
static void invert_all_cells_of_negative_grid(const std::vector< Point< spacedim > > &all_vertices, std::vector< CellData< dim > > &original_cells)
#define DeclExceptionMsg(Exception, defaulttext)
Definition: exceptions.h:553
static void reorder_cells(std::vector< CellData< dim > > &original_cells, const bool use_new_style_ordering=false)
static ::ExceptionBase & ExcMeshNotOrientable()