Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
GPIAG-Software
IFOS2D
Commits
7bb59ac1
Commit
7bb59ac1
authored
Feb 04, 2016
by
laura.gassner
Browse files
BUGFIX: error in taper_grad_shot.c
parent
c50fe796
Changes
2
Hide whitespace changes
Inline
Side-by-side
.gitignore
View file @
7bb59ac1
...
...
@@ -3,7 +3,7 @@
*.sh
IFOS2D
snapmerge
manual_IFOS.pdf
manual_IFOS
2D
.pdf
*.d
*.hd
*.strip
...
...
src/taper_grad_shot.c
View file @
7bb59ac1
...
...
@@ -222,40 +222,40 @@ void taper_grad_shot(float ** waveconv,float ** taper_coeff, float **srcpos, int
if
(
sws
==
2
){
if
(
USE_WORKFLOW
){
sprintf
(
taper_file
,
"%s.shot%d_%i.vp"
,
TAPER_FILE_NAME
,
WORKFLOW_STAGE
);
sprintf
(
taper_file
,
"%s.shot%d_%i.vp"
,
TAPER_FILE_NAME
,
ishot
,
WORKFLOW_STAGE
);
fp_taper
=
fopen
(
taper_file
,
"r"
);
if
(
fp_taper
==
NULL
){
sprintf
(
taper_file
,
"%s.shot%d.vp"
,
TAPER_FILE_NAME
);
sprintf
(
taper_file
,
"%s.shot%d.vp"
,
TAPER_FILE_NAME
,
ishot
);
fp_taper
=
fopen
(
taper_file
,
"r"
);
}
}
else
{
sprintf
(
taper_file
,
"%s.shot%d.vp"
,
TAPER_FILE_NAME
);
sprintf
(
taper_file
,
"%s.shot%d.vp"
,
TAPER_FILE_NAME
,
ishot
);
fp_taper
=
fopen
(
taper_file
,
"r"
);
}
}
if
(
sws
==
3
){
if
(
USE_WORKFLOW
){
sprintf
(
taper_file
,
"%s.shot%d_%i.vs"
,
TAPER_FILE_NAME
,
WORKFLOW_STAGE
);
sprintf
(
taper_file
,
"%s.shot%d_%i.vs"
,
TAPER_FILE_NAME
,
ishot
,
WORKFLOW_STAGE
);
fp_taper
=
fopen
(
taper_file
,
"r"
);
if
(
fp_taper
==
NULL
){
sprintf
(
taper_file
,
"%s.shot%d.vs"
,
TAPER_FILE_NAME
);
sprintf
(
taper_file
,
"%s.shot%d.vs"
,
TAPER_FILE_NAME
,
ishot
);
fp_taper
=
fopen
(
taper_file
,
"r"
);
}
}
else
{
sprintf
(
taper_file
,
"%s.shot%d.vs"
,
TAPER_FILE_NAME
);
sprintf
(
taper_file
,
"%s.shot%d.vs"
,
TAPER_FILE_NAME
,
ishot
);
fp_taper
=
fopen
(
taper_file
,
"r"
);
}
}
if
(
sws
==
4
){
if
(
USE_WORKFLOW
){
sprintf
(
taper_file
,
"%s.shot%d_%i.rho"
,
TAPER_FILE_NAME
,
WORKFLOW_STAGE
);
sprintf
(
taper_file
,
"%s.shot%d_%i.rho"
,
TAPER_FILE_NAME
,
ishot
,
WORKFLOW_STAGE
);
fp_taper
=
fopen
(
taper_file
,
"r"
);
if
(
fp_taper
==
NULL
){
sprintf
(
taper_file
,
"%s.shot%d.rho"
,
TAPER_FILE_NAME
);
sprintf
(
taper_file
,
"%s.shot%d.rho"
,
TAPER_FILE_NAME
,
ishot
);
fp_taper
=
fopen
(
taper_file
,
"r"
);
}
}
else
{
sprintf
(
taper_file
,
"%s.shot%d.rho"
,
TAPER_FILE_NAME
);
sprintf
(
taper_file
,
"%s.shot%d.rho"
,
TAPER_FILE_NAME
,
ishot
);
fp_taper
=
fopen
(
taper_file
,
"r"
);
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment