[io] message for using run_options
@@ -2269,6 +2269,7 @@ class MechanicsHdf5Runner(siconos.io.mechanics_hdf5.MechanicsHdf5):
s.displayNewtonConvergenceAtTheEnd(info, newtonMaxIteration)
def run(self,
+ run_options=None,
with_timer=False,
time_stepping=None,
interaction_manager=None,
@@ -2454,6 +2455,10 @@ class MechanicsHdf5Runner(siconos.io.mechanics_hdf5.MechanicsHdf5):
Default = False.
"""
+ if run_options is None:
+ self.print_verbose('\nyou should consider to use a run_options dictionnary')
+ self.print_verbose('we create a run_options for you and fill it with given options')
+ self.print_verbose('some new options may not be available without run_options')
run_options=MechanicsHdf5Runner_run_options()
run_options['with_timer']=with_timer
@@ -2501,24 +2506,14 @@ class MechanicsHdf5Runner(siconos.io.mechanics_hdf5.MechanicsHdf5):
run_options['end_run_iteration_hook']=end_run_iteration_hook
run_options['skip_last_update_output']=skip_last_update_output
- self.run_with_options(run_options)
-
-
- def run_with_options(self,run_options=None):
self._run_options=run_options
+ self.print_verbose('run with run_options ...')
-
- self.print_verbose('run_with_options ...')
-
- if run_options== None:
- run_options=MechanicsHdf5Runner_run_options()
if run_options['verbose']:
run_options.display()
- run_options.display()
-
self.print_verbose('setup model simulation ...')
if run_options['set_external_forces'] is not None:
self._set_external_forces = run_options['set_external_forces']
