transform_points_real_to_unit_cell(
const typename Triangulation<dim, spacedim>::cell_iterator &cell,
const ArrayView<const Point<spacedim>> & real_points,
- ArrayView<Point<dim>> &unit_points) const;
+ const ArrayView<Point<dim>> &unit_points) const;
/**
* Transform the point @p p on the real @p cell to the corresponding point
transform_points_real_to_unit_cell(
const typename Triangulation<dim, spacedim>::cell_iterator &cell,
const ArrayView<const Point<spacedim>> & real_points,
- ArrayView<Point<dim>> &unit_points) const override;
+ const ArrayView<Point<dim>> &unit_points) const override;
/**
* @}
Mapping<dim, spacedim>::transform_points_real_to_unit_cell(
const typename Triangulation<dim, spacedim>::cell_iterator &cell,
const ArrayView<const Point<spacedim>> & real_points,
- ArrayView<Point<dim>> & unit_points) const
+ const ArrayView<Point<dim>> & unit_points) const
{
AssertDimension(real_points.size(), unit_points.size());
for (unsigned int i = 0; i < real_points.size(); ++i)
/**
- * Implementation of transform_real_to_unit_cell for dim==spacedim
+ * Implementation of transform_real_to_unit_cell
*/
template <int dim, int spacedim>
Point<dim>
MappingQGeneric<dim, spacedim>::transform_points_real_to_unit_cell(
const typename Triangulation<dim, spacedim>::cell_iterator &cell,
const ArrayView<const Point<spacedim>> & real_points,
- ArrayView<Point<dim>> & unit_points) const
+ const ArrayView<Point<dim>> & unit_points) const
{
AssertDimension(real_points.size(), unit_points.size());
const std::vector<Point<spacedim>> support_points =
for (unsigned int i = 0; i < unit_points.size(); ++i)
real_points[i] = mapping.transform_unit_to_real_cell(cell, unit_points[i]);
std::vector<Point<dim>> new_points(unit_points.size());
- ArrayView<Point<dim>> points_view(new_points);
- mapping.transform_points_real_to_unit_cell(cell, real_points, points_view);
+ mapping.transform_points_real_to_unit_cell(cell, real_points, new_points);
for (unsigned int i = 0; i < unit_points.size(); ++i)
{
// for each of the points, verify that applying the forward map and