diff --git a/fdelmodc/writeSnapTimes.c b/fdelmodc/writeSnapTimes.c index 08848f8bc8850c21e1c39fb2eade23754bd70c15..dc05beae1f0fa8780899d6b06b0afbe20d9ec362 100644 --- a/fdelmodc/writeSnapTimes.c +++ b/fdelmodc/writeSnapTimes.c @@ -66,7 +66,7 @@ int writeSnapTimes(modPar mod, snaPar sna, bndPar bnd, wavPar wav, int ixsrc, in isnap = NINT((itime-sna.delay)/sna.skipdt); - if (mod.grid_dir) stime = (-wav.nt+1+itime)*mod.dt; /* reverse time modeling */ + if (mod.grid_dir) stime = (-wav.nt+1+itime+1)*mod.dt; /* reverse time modeling */ else stime = itime*mod.dt; if (verbose) vmess("Writing snapshot(%d) at time=%.4f", isnap+1, stime);