Skip to content

Commit

Permalink
Merge pull request ufz#1032 from rinkk/fixes20160209
Browse files Browse the repository at this point in the history
fixed warnings + memleak
  • Loading branch information
bilke committed Feb 12, 2016
2 parents 21d674c + b80f76a commit 6c8009b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Tests/MathLib/AutoCheckTools.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ struct IntervalGenerator

result_type operator()(std::size_t /*size*/ = 0)
{
return intervalMap(fix(1.0, generator)());
return intervalMap(fix(1, generator)());
}
};

Expand Down
2 changes: 1 addition & 1 deletion Tests/MeshLib/TestAddLayerToMesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ TEST(MeshLib, AddTopLayerToTriMesh)
if (test)
{
test->resize(mesh->getNElements());
std::fill_n(mats->begin(), mesh->getNElements(), 0.1);
std::fill_n(test->begin(), mesh->getNElements(), 0.1);
}
ASSERT_EQ(2, mesh->getProperties().getPropertyVectorNames().size());
double const height (1);
Expand Down
2 changes: 2 additions & 0 deletions Tests/MeshLib/TestFlipElements.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ TEST(MeshLib, FlipHexMesh)
nodes.push_back(new MeshLib::Node(*mesh->getNode(i)));
std::unique_ptr<MeshLib::Element> elem (MeshLib::createFlippedElement(*mesh->getElement(0), nodes));
ASSERT_EQ(nullptr, elem);
for (MeshLib::Node* n : nodes)
delete n;
}

TEST(MeshLib, DoubleFlipQuadMesh)
Expand Down

0 comments on commit 6c8009b

Please sign in to comment.