Skip to content
Snippets Groups Projects
Commit 64bda91d authored by Joeri Brackenhoff's avatar Joeri Brackenhoff
Browse files
parents 3ffaa66b ce1c082f
No related branches found
No related tags found
No related merge requests found
......@@ -284,7 +284,7 @@ int main (int argc, char **argv)
for (j = ntap; j < nxs-ntap; j++)
tapersy[j] = 1.0;
for (j = nxs-ntap; j < nxs; j++)
tapersy[j] =(cos(PI*(j-(nxs-ntap))/ntap)+1)/2.0;
tapersy[j] =(cos(PI*(j+1-(nxs-ntap))/ntap)+1)/2.0;
if (verbose) vmess("Taper for operator applied ntap=%d", ntap);
for (l = 0; l < Nfoc; l++) {
for (i = 0; i < nxs; i++) {
......@@ -319,7 +319,7 @@ int main (int argc, char **argv)
for (j = ntap; j < nx-ntap; j++)
tapersh[j] = 1.0;
for (j = nx-ntap; j < nx; j++)
tapersh[j] =(cos(PI*(j-(nx-ntap))/ntap)+1)/2.0;
tapersh[j] =(cos(PI*(j+1-(nx-ntap))/ntap)+1)/2.0;
if (verbose) vmess("Taper for shots applied ntap=%d", ntap);
for (l = 0; l < nshots; l++) {
for (j = 1; j < nw; j++) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment