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