Skip to content
Snippets Groups Projects
Commit 81d17a7f authored by Dmitri Naumov's avatar Dmitri Naumov
Browse files

[T/NL] Use unique_ptr for mesh.

parent b8f049d6
No related branches found
Tags 6.0.4
No related merge requests found
......@@ -39,12 +39,11 @@ class NumLibMeshComponentMapTest : public ::testing::Test
~NumLibMeshComponentMapTest() override
{
delete cmap;
delete mesh;
}
static std::size_t const mesh_size = 9;
MeshLib::Mesh const* mesh =
MeshLib::MeshGenerator::generateLineMesh(1.0, mesh_size);
std::unique_ptr<MeshLib::Mesh> const mesh{
MeshLib::MeshGenerator::generateLineMesh(1.0, mesh_size)};
//data component 0 and 1 are assigned to all nodes in the mesh
static std::size_t const comp0_id = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment