diff --git a/source/particle/world.cc b/source/particle/world.cc index fbfba762155..04b4ddeff92 100644 --- a/source/particle/world.cc +++ b/source/particle/world.cc @@ -574,7 +574,7 @@ namespace aspect // particle map. if (status == parallel::distributed::Triangulation::CELL_PERSIST) { - typename std::multimap >::const_iterator position_hint = particles.end(); + typename std::multimap >::iterator position_hint = particles.end(); for (unsigned int i = 0; i < *n_particles_in_cell_ptr; ++i) { // Use std::multimap::emplace_hint to speed up insertion of @@ -619,7 +619,7 @@ namespace aspect } else if (status == parallel::distributed::Triangulation::CELL_REFINE) { - std::vector >::const_iterator > position_hints(GeometryInfo::max_children_per_cell); + std::vector >::iterator > position_hints(GeometryInfo::max_children_per_cell); for (unsigned int child_index=0; child_index::max_children_per_cell; ++child_index) { const typename parallel::distributed::Triangulation::cell_iterator child = cell->child(child_index); diff --git a/source/simulator/core.cc b/source/simulator/core.cc index bf77db6b6fc..2c8a0414170 100644 --- a/source/simulator/core.cc +++ b/source/simulator/core.cc @@ -113,15 +113,15 @@ namespace aspect * computation. */ template - std_cxx11::unique_ptr > construct_mapping(const GeometryModel::Interface &geometry_model, + Mapping* construct_mapping(const GeometryModel::Interface &geometry_model, const InitialTopographyModel::Interface &initial_topography_model) { if (geometry_model.has_curved_elements()) - return std_cxx11::unique_ptr >(new MappingQ(4, true)); + return new MappingQ(4, true); if (dynamic_cast*>(&initial_topography_model) != 0) - return std_cxx11::unique_ptr >(new MappingCartesian()); + return new MappingCartesian(); - return std_cxx11::unique_ptr >(new MappingQ1()); + return new MappingQ1(); } }