[io] add a hack to compute when there is no nslaw
@@ -2325,11 +2325,12 @@ class MechanicsHdf5Runner(siconos.io.mechanics_hdf5.MechanicsHdf5):
else:
osnspb = sk.GenericMechanical(solver_options)
else:
- if 'NewtonImpactFrictionNSL' in set(nslaw_type_list):
+ if ('NewtonImpactFrictionNSL' in set(nslaw_type_list)) or \
+ (len(set(nslaw_type_list)) == 0):
if (solver_options is None):
- osnspb = sk.FrictionContact(self._dimension,solver_options)
- else:
osnspb = sk.FrictionContact(self._dimension)
+ else:
+ osnspb = sk.FrictionContact(self._dimension,solver_options)
osnspb.setMaxSize(osnspb_max_size)
osnspb.setMStorageType(sn.NM_SPARSE_BLOCK)
