int ierr = MPI_Allgather(&next_index, 1, DEAL_II_DOF_INDEX_MPI_TYPE, indices.data(),
indices.size(), DEAL_II_DOF_INDEX_MPI_TYPE, triangulation.get_communicator());
AssertThrowMPI(ierr);
- const types::global_vertex_index shift = std::accumulate(&indices[0],
- &indices[0]+triangulation.locally_owned_subdomain(),
+ const types::global_vertex_index shift = std::accumulate(indices.begin(),
+ indices.begin()+triangulation.locally_owned_subdomain(),
types::global_vertex_index(0));
std::map<unsigned int,types::global_vertex_index>::iterator
// check whether periodicity shifts some of the points. Only do this if
// necessary to avoid memory allocation
- const Point<spacedim> *surrounding_points_start = &surrounding_points[0];
+ const Point<spacedim> *surrounding_points_start = surrounding_points.begin();
boost::container::small_vector<Point<spacedim>, 200> modified_points;
bool adjust_periodicity = false;
{
const ArrayView<const double> their_properties = particle.get_properties();
- std::copy(&their_properties[0],&their_properties[0]+their_properties.size(),&my_properties[0]);
+ std::copy(their_properties.begin(), their_properties.end(), my_properties.begin());
}
}
}
if (their_properties.size() != 0)
{
const ArrayView<double> my_properties = property_pool->get_properties(properties);
- std::copy(&their_properties[0],&their_properties[0]+their_properties.size(),&my_properties[0]);
+ std::copy(their_properties.begin(), their_properties.end(), my_properties.begin());
}
}
else
+ "This is not allowed."));
if (old_properties.size() > 0)
- std::copy(new_properties.begin(),new_properties.end(),&old_properties[0]);
+ std::copy(new_properties.begin(), new_properties.end(), old_properties.begin());
}