Commit c51f0ddd authored by Andrew Wilson's avatar Andrew Wilson 🐘
Browse files

BUG: Fix vector size in tests

parent a55301f1
...@@ -247,7 +247,7 @@ TEST(imstkPbdConstraintFunctorTest, TestVolumeConstraintGeneration) ...@@ -247,7 +247,7 @@ TEST(imstkPbdConstraintFunctorTest, TestVolumeConstraintGeneration)
TEST(imstkPbdConstraintFunctorTest, TestAreaConstraintGeneration) TEST(imstkPbdConstraintFunctorTest, TestAreaConstraintGeneration)
{ {
auto surfMesh = std::make_shared<SurfaceMesh>(); 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)[0] = Vec3d(0.0, 0.0, 0.0);
(*vertices)[1] = Vec3d(1.0, 0.0, 0.0); (*vertices)[1] = Vec3d(1.0, 0.0, 0.0);
(*vertices)[2] = Vec3d(0.0, 1.0, 0.0); (*vertices)[2] = Vec3d(0.0, 1.0, 0.0);
...@@ -287,7 +287,7 @@ TEST(imstkPbdConstraintFunctorTest, TestAreaConstraintGeneration) ...@@ -287,7 +287,7 @@ TEST(imstkPbdConstraintFunctorTest, TestAreaConstraintGeneration)
TEST(imstkPbdConstraintFunctorTest, TestConstDensityConstraintGeneration) TEST(imstkPbdConstraintFunctorTest, TestConstDensityConstraintGeneration)
{ {
auto points = std::make_shared<PointSet>(); 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)[0] = Vec3d(0.0, 0.0, 0.0);
(*vertices)[1] = Vec3d(1.0, 0.0, 0.0); (*vertices)[1] = Vec3d(1.0, 0.0, 0.0);
(*vertices)[2] = Vec3d(0.0, 1.0, 0.0); (*vertices)[2] = Vec3d(0.0, 1.0, 0.0);
......
Supports Markdown
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