Looping in the transientsolve routine