Commit 350adc5f authored by Andrew Wilson's avatar Andrew Wilson 🐘
Browse files

Merge branch 'BendConstraintStride' into 'master'

BUG: Fix vector size in tests

See merge request !679
parents e318c359 c51f0ddd
Pipeline #247048 passed with stage
in 0 seconds
......@@ -247,7 +247,7 @@ TEST(imstkPbdConstraintFunctorTest, TestVolumeConstraintGeneration)
TEST(imstkPbdConstraintFunctorTest, TestAreaConstraintGeneration)
{
auto surfMesh = std::make_shared<SurfaceMesh>();
auto vertices = std::make_shared<VecDataArray<double, 3>>(3);
auto vertices = std::make_shared<VecDataArray<double, 3>>(4);
(*vertices)[0] = Vec3d(0.0, 0.0, 0.0);
(*vertices)[1] = Vec3d(1.0, 0.0, 0.0);
(*vertices)[2] = Vec3d(0.0, 1.0, 0.0);
......@@ -287,7 +287,7 @@ TEST(imstkPbdConstraintFunctorTest, TestAreaConstraintGeneration)
TEST(imstkPbdConstraintFunctorTest, TestConstDensityConstraintGeneration)
{
auto points = std::make_shared<PointSet>();
auto vertices = std::make_shared<VecDataArray<double, 3>>(3);
auto vertices = std::make_shared<VecDataArray<double, 3>>(4);
(*vertices)[0] = Vec3d(0.0, 0.0, 0.0);
(*vertices)[1] = Vec3d(1.0, 0.0, 0.0);
(*vertices)[2] = Vec3d(0.0, 1.0, 0.0);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment