Hi Marina,
You need to pass the callback function itself to the set_time_step_callback method. What you’re doing is calling the callback at a specific time, then passing the result of that (the None object) to set_time_step_callback, which is the way to specify that there is no callback function. Also, because of the way that it’s implemented, the callback function needs to return a number; this value is arbitrary, since it is not actually used.
For example, you want to write something like:
def timestep_callback(_): print("timstep callback") return 0.0and then later for the setup:
self.f.set_time_step_callback(timestep_callback)Hope this helps.
Regards,
Ray