changed name of unused variable dtv2 -> dt_max. Add line to use it in tick - default in setrunn is 1e98 so shouldn't change anything unless actually set it in setrun.py: