Fixed a valgrind issue in test problem (missing initialization)
This commit is contained in:
parent
9ec1b0d6d9
commit
f9c1be46ed
@ -120,7 +120,7 @@ TEST(TestASMs2D, Collapse)
|
|||||||
ASSERT_TRUE(pch.generateFEMTopology());
|
ASSERT_TRUE(pch.generateFEMTopology());
|
||||||
std::cout <<"Degenerating E"<< iedge << std::endl;
|
std::cout <<"Degenerating E"<< iedge << std::endl;
|
||||||
#ifdef SP_DEBUG
|
#ifdef SP_DEBUG
|
||||||
pch.write(std::cout);
|
pch.write(std::cout,0);
|
||||||
#endif
|
#endif
|
||||||
EXPECT_TRUE(pch.collapseEdge(iedge));
|
EXPECT_TRUE(pch.collapseEdge(iedge));
|
||||||
}
|
}
|
||||||
|
@ -319,7 +319,7 @@ TEST(TestASMs3D, Collapse)
|
|||||||
ASSERT_TRUE(pch.generateFEMTopology());
|
ASSERT_TRUE(pch.generateFEMTopology());
|
||||||
std::cout <<"Degenerating F"<< iface <<" onto E"<< iedge << std::endl;
|
std::cout <<"Degenerating F"<< iface <<" onto E"<< iedge << std::endl;
|
||||||
#ifdef SP_DEBUG
|
#ifdef SP_DEBUG
|
||||||
pch.write(std::cout);
|
pch.write(std::cout,0);
|
||||||
#endif
|
#endif
|
||||||
const std::array<int,4>& face = faceTop[iface-1];
|
const std::array<int,4>& face = faceTop[iface-1];
|
||||||
if (iedge == 0 || std::find(face.begin(),face.end(),iedge) != face.end())
|
if (iedge == 0 || std::find(face.begin(),face.end(),iedge) != face.end())
|
||||||
|
@ -98,7 +98,7 @@ public:
|
|||||||
class Problem : public IntegrandBase
|
class Problem : public IntegrandBase
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Problem() : IntegrandBase(1) {}
|
Problem() : IntegrandBase(1) { memset(prm,0,sizeof(prm)); }
|
||||||
virtual ~Problem() {}
|
virtual ~Problem() {}
|
||||||
|
|
||||||
virtual void setIntegrationPrm(unsigned short int i, double p) { prm[i] = p; }
|
virtual void setIntegrationPrm(unsigned short int i, double p) { prm[i] = p; }
|
||||||
|
Loading…
Reference in New Issue
Block a user