From 4a9f0901ed263c3947ccc5c2bffe12007416facf Mon Sep 17 00:00:00 2001 From: Thomas Fischer <thomas.fischer@ufz.de> Date: Thu, 6 Sep 2012 09:11:36 +0200 Subject: [PATCH] changes due to changes in class template GeoLib::Grid --- MeshLib/MeshCoarsener.cpp | 2 +- SimpleTests/MeshTests/MeshSearchTest.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/MeshLib/MeshCoarsener.cpp b/MeshLib/MeshCoarsener.cpp index 8e19a3038b3..b3c899bbf6c 100644 --- a/MeshLib/MeshCoarsener.cpp +++ b/MeshLib/MeshCoarsener.cpp @@ -45,7 +45,7 @@ Mesh* MeshCoarsener::operator()(double min_distance) } // init grid - GeoLib::Grid<Node*>* grid(new GeoLib::Grid<Node*>(nodes, 64)); + GeoLib::Grid<Node>* grid(new GeoLib::Grid<Node>(nodes.begin(), nodes.end(), 64)); // init id map std::vector<size_t> id_map(n_nodes); diff --git a/SimpleTests/MeshTests/MeshSearchTest.cpp b/SimpleTests/MeshTests/MeshSearchTest.cpp index 8b0c58aa364..c7bab4828ec 100644 --- a/SimpleTests/MeshTests/MeshSearchTest.cpp +++ b/SimpleTests/MeshTests/MeshSearchTest.cpp @@ -49,7 +49,7 @@ void testMeshGridAlgorithm(MeshLib::Mesh const*const mesh, unsigned long mem_without_mesh (mem_watch.getVirtMemUsage()); #endif clock_t start_grid_construction = clock(); - GeoLib::Grid<MeshLib::Node*> mesh_grid(mesh->getNodes(), 511); + GeoLib::Grid<MeshLib::Node> mesh_grid(mesh->getNodes().begin(), mesh->getNodes().end(), 511); clock_t end_grid_construction = clock(); #ifndef WIN32 unsigned long mem_with_mesh (mem_watch.getVirtMemUsage()); -- GitLab