Skip to content

Commit

Permalink
fix again missing plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
alxbilger committed Nov 29, 2024
1 parent c2e9e7c commit fd2e3f5
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 1 deletion.
4 changes: 4 additions & 0 deletions unittest/SofaCaribou/Forcefield/test_tractionforce.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ class TractionForcefield : public BaseTest {

TEST_F(TractionForcefield, Triangle) {
EXPECT_MSG_NOEMIT(Error, Warning) ;
createObject(root, "RequiredPlugin", {{"pluginName", "Sofa.Component.StateContainer"}});
createObject(root, "RequiredPlugin", {{"pluginName", "Sofa.Component.Topology.Container.Dynamic"}});
createObject(root, "DefaultAnimationLoop");
createObject(root, "DefaultVisualManagerLoop");
createObject(root, "MechanicalObject", {{"position", "-1 0 1 1 0 1 -1 0 -1 1 0 -1 0 0 1 0 0 -1 -1 0 0 1 0 0 0 0 0"}});
Expand All @@ -51,6 +53,8 @@ TEST_F(TractionForcefield, Triangle) {

TEST_F(TractionForcefield, Quad) {
EXPECT_MSG_NOEMIT(Error, Warning) ;
createObject(root, "RequiredPlugin", {{"pluginName", "Sofa.Component.StateContainer"}});
createObject(root, "RequiredPlugin", {{"pluginName", "Sofa.Component.Topology.Container.Dynamic"}});
createObject(root, "DefaultAnimationLoop");
createObject(root, "DefaultVisualManagerLoop");
createObject(root, "MechanicalObject", {{"position", "-1 0 1 1 0 1 -1 0 -1 1 0 -1 0 0 1 0 0 -1 -1 0 0 1 0 0 0 0 0"}});
Expand Down
6 changes: 6 additions & 0 deletions unittest/SofaCaribou/Mass/test_cariboumass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ TEST(CaribouMass, LinearTetrahedron) {
createObject(root, "RequiredPlugin", {{"pluginName", "Sofa.Component.Engine.Select"}});
createObject(root, "RequiredPlugin", {{"pluginName", "Sofa.Component.Topology.Container.Grid"}});
createObject(root, "RequiredPlugin", {{"pluginName", "Sofa.Component.Topology.Mapping"}});
createObject(root, "RequiredPlugin", {{"pluginName", "Sofa.Component.StateContainer"}});
createObject(root, "RequiredPlugin", {{"pluginName", "Sofa.Component.Topology.Container.Dynamic"}});

// Some component to avoid warnings
createObject(root, "DefaultAnimationLoop");
Expand Down Expand Up @@ -141,6 +143,10 @@ TEST(CaribouMass, LinearHexahedron) {
auto root = getSimulation()->createNewNode("root");
createObject(root, "RequiredPlugin", {{"pluginName", "Sofa.Component.Engine.Select"}});
createObject(root, "RequiredPlugin", {{"pluginName", "Sofa.Component.Topology.Mapping"}});
createObject(root, "RequiredPlugin", {{"pluginName", "Sofa.Component.StateContainer"}});
createObject(root, "RequiredPlugin", {{"pluginName", "Sofa.Component.Topology.Container.Dynamic"}});
createObject(root, "RequiredPlugin", {{"pluginName", "Sofa.Component.Topology.Container.Grid"}});
createObject(root, "RequiredPlugin", {{"pluginName", "Sofa.Component.Mass"}});

// Some component to avoid warnings
createObject(root, "DefaultAnimationLoop");
Expand Down
4 changes: 4 additions & 0 deletions unittest/SofaCaribou/ODE/test_backward_euler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ TEST(BackwardEulerODESolver, Beam) {
auto root = getSimulation()->createNewNode("root");
createObject(root, "RequiredPlugin", {{"pluginName", "Sofa.Component.Constraint.Projective"}});
createObject(root, "RequiredPlugin", {{"pluginName", "Sofa.Component.Engine.Select"}});
createObject(root, "RequiredPlugin", {{"pluginName", "Sofa.Component.Mass"}});
createObject(root, "RequiredPlugin", {{"pluginName", "Sofa.Component.StateContainer"}});
createObject(root, "RequiredPlugin", {{"pluginName", "Sofa.Component.Topology.Container.Dynamic"}});
createObject(root, "RequiredPlugin", {{"pluginName", "Sofa.Component.Topology.Container.Grid"}});

// Some component to avoid warnings
createObject(root, "DefaultAnimationLoop");
Expand Down
6 changes: 5 additions & 1 deletion unittest/SofaCaribou/ODE/test_static.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ TEST(StaticODESolver, Beam) {
createObject(root, "DefaultAnimationLoop");
createObject(root, "DefaultVisualManagerLoop");
createObject(root, "RequiredPlugin", {{"pluginName", "Sofa.Component.Engine.Select"}});
createObject(root, "RequiredPlugin", {{"pluginName", "Sofa.Component.Topology.Container.Grid"}});
createObject(root, "RequiredPlugin", {{"pluginName", "Sofa.Component.Topology.Container.Dynamic"}});
createObject(root, "RequiredPlugin", {{"pluginName", "Sofa.Component.StateContainer"}});
createObject(root, "RequiredPlugin", {{"pluginName", "Sofa.Component.Constraint.Projective"}});
createObject(root, "RegularGridTopology", {{"name", "grid"}, {"min", "-7.5 -7.5 0"}, {"max", "7.5 7.5 80"}, {"n", "3 3 9"}});

auto meca = createChild(root, "meca");
Expand All @@ -108,7 +112,7 @@ TEST(StaticODESolver, Beam) {

// Fix the left side of the beam
createObject(meca, "BoxROI", {{"name", "fixed_roi"}, {"quad", "@surface_topology.quad"}, {"box", "-7.5 -7.5 -0.9 7.5 7.5 0.1"}});
createObject(meca, "FixedConstraint", {{"indices", "@fixed_roi.indices"}});
createObject(meca, "FixedProjectiveConstraint", {{"indices", "@fixed_roi.indices"}});

// Apply traction on the right side of the beam
createObject(meca, "BoxROI", {{"name", "top_roi"}, {"quad", "@surface_topology.quad"}, {"box", "-7.5 -7.5 79.9 7.5 7.5 80.1"}});
Expand Down

0 comments on commit fd2e3f5

Please sign in to comment.