Conflicts:
include/deal.II/grid/tria.h
--- /dev/null
+New: The definition of CellID has been modified so that it depends on the
+unique coarse-cell id and no longer on the coarse-cell index.
+<br>
+(Peter Munch, 2019/08/13)
* Translate the index of coarse cell to its unique id.
*
* @note: See the note of the method
- * translate_coarse_cell_id_to_coarse_cell_index().
+ * coarse_cell_id_to_coarse_cell_index().
*
* @param coarse_cell_index Index of the coarse cell.
* @return Id of the coarse cell.
typename Triangulation<dim, spacedim>::cell_iterator
CellId::to_cell(const Triangulation<dim, spacedim> &tria) const
{
- typename Triangulation<dim, spacedim>::cell_iterator cell(&tria,
- 0,
- coarse_cell_id);
+ typename Triangulation<dim, spacedim>::cell_iterator cell(
+ &tria, 0, tria.coarse_cell_id_to_coarse_cell_index(coarse_cell_id));
for (unsigned int i = 0; i < n_child_indices; ++i)
cell = cell->child(static_cast<unsigned int>(child_indices[i]));
Assert(ptr.level() == 0, ExcInternalError());
const unsigned int coarse_index = ptr.index();
- return {coarse_index, n_child_indices, id.data()};
+ return {this->tria->coarse_cell_index_to_coarse_cell_id(coarse_index),
+ n_child_indices,
+ id.data()};
}
In the beginning the Universe was created. This has made a lot of
people very angry and has been widely regarded as a bad move.
Douglas Adams