diff --git a/src/main/inject_sim.f90 b/src/main/inject_sim.f90 index 78b6023b8..4a60e71d6 100644 --- a/src/main/inject_sim.f90 +++ b/src/main/inject_sim.f90 @@ -62,9 +62,9 @@ subroutine init_inject(ierr) ! !--find the tde dump at the right time ! + next_time = -1. next_dump = getnextfilename(start_dump) call get_dump_time_npart(trim(next_dump),next_time,ierr,npart_out=npart_sim) - if (ierr /= 0) next_time = -1. ierr = 0 niter = 0