Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
IFOS2D
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
4
Issues
4
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Environments
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
GPIAG-Software
IFOS2D
Commits
7bb59ac1
Commit
7bb59ac1
authored
Feb 04, 2016
by
laura.gassner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUGFIX: error in taper_grad_shot.c
parent
c50fe796
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
.gitignore
.gitignore
+1
-1
src/taper_grad_shot.c
src/taper_grad_shot.c
+9
-9
No files found.
.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
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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