Reference documentation for deal.II version 8.4.2
grid_reordering.h
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2000 - 2016 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 
27 
28 
623 template <int dim, int spacedim=dim>
625 {
626 public:
627 
642  static void reorder_cells (std::vector<CellData<dim> > &original_cells,
643  const bool use_new_style_ordering = false);
644 
661  const std::vector<Point<spacedim> > &all_vertices,
662  std::vector<CellData<dim> > &original_cells);
663 };
664 
665 
666 // declaration of explicit specializations
667 template<>
668 void
669 GridReordering<2>::reorder_cells (std::vector<CellData<2> > &original_cells,
670  const bool);
671 
672 template<>
673 void
674 GridReordering<2,3>::reorder_cells (std::vector<CellData<2> > &original_cells,
675  const bool);
676 
677 template<>
678 void
679 GridReordering<3>::reorder_cells (std::vector<CellData<3> > &original_cells,
680  const bool);
681 
682 template<>
683 void
684 GridReordering<2>::invert_all_cells_of_negative_grid(const std::vector<Point<2> > &all_vertices,
685  std::vector<CellData<2> > &cells);
686 
687 template<>
688 void
689 GridReordering<2,3>::invert_all_cells_of_negative_grid(const std::vector<Point<3> > &all_vertices,
690  std::vector<CellData<2> > &cells);
691 
692 template<>
693 void
694 GridReordering<3>::invert_all_cells_of_negative_grid(const std::vector<Point<3> > &all_vertices,
695  std::vector<CellData<3> > &cells);
696 
697 DEAL_II_NAMESPACE_CLOSE
698 
699 #endif
static void reorder_cells(std::vector< CellData< dim > > &original_cells, const bool use_new_style_ordering=false)
static void invert_all_cells_of_negative_grid(const std::vector< Point< spacedim > > &all_vertices, std::vector< CellData< dim > > &original_cells)