[tests] almost fix test_lagrangiands_osi.py, call prepareIntegratorForDS.
But MoreauJeanBilboaOSI needs support for LagrangianLinearTIDS.
@@ -92,9 +92,9 @@ def test_lagrangian_and_osis():
# -- (4) Simulation setup with (1) (2) (3)
simu = sk.TimeStepping(td, standard, lcp)
# extra osi must be explicitely inserted into simu and linked to ds
- simu.insertIntegrator(bilbao)
- nsds.topology().setOSI(ds_list['LLDDS+MJB'], bilbao)
- nsds.topology().setOSI(ds_list['LLDDS+MJB2'], bilbao)
+ simu.setNonSmoothDynamicalSystemPtr(model.nonSmoothDynamicalSystem())
+ simu.prepareIntegratorForDS(bilbao, ds_list['LLDDS+MJB'], model, tinit)
+ simu.prepareIntegratorForDS(bilbao, ds_list['LLDDS+MJB2'], model, tinit)
# link simu and model, initialize
model.setSimulation(simu)
