diff --git a/examples/example-forcefield.py b/examples/example-forcefield.py index 7da43509..4a1736dd 100644 --- a/examples/example-forcefield.py +++ b/examples/example-forcefield.py @@ -24,7 +24,6 @@ def addForce(self, m, out_force, pos, vel): def addDForce(self, df, dx, params): pass - #print(" Python::addDForce: ", params) #def addKToMatrix(self, a, b): # print(" Python::addKToMatrix: ", a, " ", b) @@ -33,9 +32,10 @@ def addDForce(self, df, dx, params): def createScene(node): node.addObject("RequiredPlugin", name="SofaOpenglVisual") node.addObject("RequiredPlugin", name="SofaSparseSolver") + node.addObject("RequiredPlugin", name="SofaImplicitOdeSolver") node.addObject("OglLineAxis") node.addObject("DefaultAnimationLoop", name="loop") - node.addObject("EulerImplicit") + node.addObject("EulerImplicitSolver") node.addObject("CGLinearSolver", tolerance=1e-12, threshold=1e-12) o = node.addChild("Object")