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
25c1f06a
Commit
25c1f06a
authored
Feb 25, 2016
by
laura.gassner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUGFIX reading inverted source wavelet - workflow
parent
f9e73d11
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
src/inseis_source_wavelet.c
src/inseis_source_wavelet.c
+13
-2
No files found.
src/inseis_source_wavelet.c
View file @
25c1f06a
...
...
@@ -28,6 +28,9 @@ void inseis_source_wavelet(float *section, int ns, int ishot, int SH){
extern
int
MYID
;
extern
char
SIGNAL_FILE
[
STRING_SIZE
];
extern
char
SIGNAL_FILE_SH
[
STRING_SIZE
];
extern
int
USE_WORKFLOW
;
extern
int
WORKFLOW_STAGE
;
/* declaration of local variables */
int
j
;
float
dump
;
...
...
@@ -36,9 +39,17 @@ void inseis_source_wavelet(float *section, int ns, int ishot, int SH){
FILE
*
fpdata
;
if
(
SH
==
0
)
{
sprintf
(
data
,
"%s.shot%d.su"
,
SIGNAL_FILE
,
ishot
);
if
(
USE_WORKFLOW
){
sprintf
(
data
,
"%s.stage%d.shot%d.su"
,
SIGNAL_FILE
,
WORKFLOW_STAGE
,
ishot
);
}
else
{
sprintf
(
data
,
"%s.shot%d.su"
,
SIGNAL_FILE
,
ishot
);
}
}
else
{
sprintf
(
data
,
"%s.shot%d.su"
,
SIGNAL_FILE_SH
,
ishot
);
if
(
USE_WORKFLOW
){
sprintf
(
data
,
"%s.stage%d.shot%d.su"
,
SIGNAL_FILE_SH
,
WORKFLOW_STAGE
,
ishot
);
}
else
{
sprintf
(
data
,
"%s.shot%d.su"
,
SIGNAL_FILE_SH
,
ishot
);
}
}
fpdata
=
fopen
(
data
,
"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