From 81205de420aef014fdbe0dab0fad67e82b7987a9 Mon Sep 17 00:00:00 2001 From: Jan Thorbecke <janth@xs4all.nl> Date: Thu, 22 Nov 2018 07:40:39 +0100 Subject: [PATCH] snaphot timing --- fdelmodc/writeSnapTimes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fdelmodc/writeSnapTimes.c b/fdelmodc/writeSnapTimes.c index 08848f8..dc05bea 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); -- GitLab