45 reorder_new_to_old_style(std::vector<
CellData<1>> &)
50 reorder_new_to_old_style(std::vector<
CellData<2>> &cells)
52 for (
auto &cell : cells)
53 std::swap(cell.vertices[2], cell.vertices[3]);
58 reorder_new_to_old_style(std::vector<
CellData<3>> &cells)
61 for (
auto &cell : cells)
64 tmp[i] = cell.vertices[i];
75 reorder_old_to_new_style(std::vector<
CellData<1>> &)
80 reorder_old_to_new_style(std::vector<
CellData<2>> &cells)
83 reorder_new_to_old_style(cells);
88 reorder_old_to_new_style(std::vector<
CellData<3>> &cells)
92 for (
auto &cell : cells)
95 tmp[i] = cell.vertices[i];
104template <
int dim,
int spacedim>
107 const bool use_new_style_ordering)
110 ExcMessage(
"List of elements to orient must have at least one cell"));
117 if (use_new_style_ordering ==
false)
118 reorder_old_to_new_style(cells);
123 if (use_new_style_ordering ==
false)
124 reorder_new_to_old_style(cells);
167 const std::vector<
Point<2>> &all_vertices,
169 const bool use_new_style_ordering)
171 if (!use_new_style_ordering)
172 reorder_old_to_new_style(cells);
176 if (!use_new_style_ordering)
177 reorder_new_to_old_style(cells);
197 const std::vector<
Point<3>> &all_vertices,
199 const bool use_new_style_ordering)
201 if (!use_new_style_ordering)
202 reorder_old_to_new_style(cells);
206 if (!use_new_style_ordering)
207 reorder_new_to_old_style(cells);
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, const bool use_new_style_ordering=false)
#define DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_CLOSE
static ::ExceptionBase & ExcNotImplemented()
#define Assert(cond, exc)
static ::ExceptionBase & ExcMessage(std::string arg1)