Skip to content

Commit

Permalink
fix test due to Data renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
alxbilger committed Jul 12, 2024
1 parent 4ec9d30 commit 75d97fa
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ class BaseTetrahedronFEMForceField_test : public sofa::testing::BaseTest
ASSERT_TRUE(tetraFEM.get() != nullptr);
ASSERT_FLOATINGPOINT_EQ(tetraFEM->d_poissonRatio.getValue(), static_cast<Real>(0.4));
ASSERT_FLOATINGPOINT_EQ(tetraFEM->d_youngModulus.getValue()[0], static_cast<Real>(10000));
ASSERT_EQ(tetraFEM->f_method.getValue(), "large");
ASSERT_EQ(tetraFEM->d_method.getValue(), "large");
}

void checkNoTopology()
Expand Down Expand Up @@ -255,7 +255,7 @@ class BaseTetrahedronFEMForceField_test : public sofa::testing::BaseTest

ASSERT_FLOATINGPOINT_EQ(tetraFEM->d_poissonRatio.getValue(), static_cast<Real>(0.45));
ASSERT_FLOATINGPOINT_EQ(tetraFEM->d_youngModulus.getValue()[0], static_cast<Real>(5000));
ASSERT_EQ(tetraFEM->f_method.getValue(), "large");
ASSERT_EQ(tetraFEM->d_method.getValue(), "large");
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ struct TetrahedronFEMForceField_stepTest : public ForceField_test<_TetrahedronFE
// Set force parameters
this->force->d_poissonRatio.setValue(0);
this->force->d_youngModulus.setValue({40});
this->force->f_method.setValue("small");
this->force->d_method.setValue("small");

// Init simulation
sofa::simulation::node::initRoot(Inherited::node.get());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ void TetrahedronFEMForceFieldInternalData< gpu::cuda::CudaVectorTypes<TCoord,TDe
const VecElement& elems = *m->_indexedElements;

const VecCoord& p = m->mstate->read(core::ConstVecCoordId::restPosition())->getValue();
m->_initialPoints.setValue(p);
m->d_initialPoints.setValue(p);

m->rotations.resize( m->_indexedElements->size() );
m->_initialRotations.resize( m->_indexedElements->size() );
Expand Down

0 comments on commit 75d97fa

Please sign in to comment.