From dd7c752e7fa11db8ca7ff794cc2200afc828894a Mon Sep 17 00:00:00 2001 From: Frederick Roy Date: Tue, 10 Dec 2024 12:31:15 +0900 Subject: [PATCH] fix loading plugins (for registration) --- BeamAdapter_test/BeamInterpolation_test.cpp | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/BeamAdapter_test/BeamInterpolation_test.cpp b/BeamAdapter_test/BeamInterpolation_test.cpp index fa5b109c8..585494760 100644 --- a/BeamAdapter_test/BeamInterpolation_test.cpp +++ b/BeamAdapter_test/BeamInterpolation_test.cpp @@ -48,6 +48,8 @@ using sofa::core::objectmodel::New ; using sofa::core::objectmodel::BaseData ; using sofa::component::statecontainer::MechanicalObject ; +#include + #include #include #include @@ -61,17 +63,21 @@ namespace sofa struct BeamInterpolationTest : public sofa::testing::BaseSimulationTest, public ::testing::WithParamInterface> { + void SetUp() override + { + sofa::simpleapi::importPlugin("Sofa.Component.ODESolver.Backward"); + sofa::simpleapi::importPlugin("Sofa.Component.LinearSolver.Iterative"); + sofa::simpleapi::importPlugin("Sofa.Component.StateContainer"); + sofa::simpleapi::importPlugin("Sofa.Component.Topology.Container.Constant"); + sofa::simpleapi::importPlugin("BeamAdapter"); + } + void simpleScene(const std::vector& lines) { assert(lines.size()==3); string scene = "" "" - " " - " " - " " - " " - " " " " " " " $line1"