File tree Expand file tree Collapse file tree 3 files changed +3
-0
lines changed
Modules/tests/SofaConstraintSolver Expand file tree Collapse file tree 3 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ def simulate_pendulum(self):
1414 "Sofa.Component.Constraint.Projective" ,
1515 "Sofa.Component.IO.Mesh" ,
1616 "Sofa.Component.LinearSolver.Direct" ,
17+ "Sofa.Component.Mapping.NonLinear" ,
1718 "Sofa.Component.Mapping.MappedMatrix" ,
1819 "Sofa.Component.Mass" ,
1920 "Sofa.Component.ODESolver.Backward" ,
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ def create_scene(rootName="root"):
88 root = Sofa .Core .Node (rootName )
99 root .addObject ("RequiredPlugin" , name = "Sofa.Component.StateContainer" )
1010 root .addObject ("RequiredPlugin" , name = "Sofa.Component.SolidMechanics.Spring" )
11+ root .addObject ("RequiredPlugin" , name = "Sofa.Component.Mapping.Linear" )
1112 return root
1213
1314class Test (unittest .TestCase ):
Original file line number Diff line number Diff line change @@ -285,6 +285,7 @@ def test_getMechanicalState(self):
285285 def test_getMechanicalMapping (self ):
286286 root = Sofa .Core .Node ("root" )
287287 root .addObject ("RequiredPlugin" , name = "Sofa.Component.StateContainer" )
288+ root .addObject ("RequiredPlugin" , name = "Sofa.Component.Mapping.Linear" )
288289 root .addObject ("MechanicalObject" , name = "t1" )
289290 root .addObject ("MechanicalObject" , name = "t2" )
290291 mm = root .addObject ("BarycentricMapping" , input = "@/t1" , output = "@/t2" )
You can’t perform that action at this time.
0 commit comments