Commit 25c1f06a authored by laura.gassner's avatar laura.gassner

BUGFIX reading inverted source wavelet - workflow

parent f9e73d11
...@@ -28,6 +28,9 @@ void inseis_source_wavelet(float *section, int ns, int ishot, int SH){ ...@@ -28,6 +28,9 @@ void inseis_source_wavelet(float *section, int ns, int ishot, int SH){
extern int MYID; extern int MYID;
extern char SIGNAL_FILE[STRING_SIZE]; extern char SIGNAL_FILE[STRING_SIZE];
extern char SIGNAL_FILE_SH[STRING_SIZE]; extern char SIGNAL_FILE_SH[STRING_SIZE];
extern int USE_WORKFLOW;
extern int WORKFLOW_STAGE;
/* declaration of local variables */ /* declaration of local variables */
int j; int j;
float dump; float dump;
...@@ -36,10 +39,18 @@ void inseis_source_wavelet(float *section, int ns, int ishot, int SH){ ...@@ -36,10 +39,18 @@ void inseis_source_wavelet(float *section, int ns, int ishot, int SH){
FILE *fpdata; FILE *fpdata;
if(SH==0) { if(SH==0) {
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); sprintf(data,"%s.shot%d.su",SIGNAL_FILE,ishot);
}
} else {
if(USE_WORKFLOW){
sprintf(data,"%s.stage%d.shot%d.su",SIGNAL_FILE_SH,WORKFLOW_STAGE,ishot);
} else { } else {
sprintf(data,"%s.shot%d.su",SIGNAL_FILE_SH,ishot); sprintf(data,"%s.shot%d.su",SIGNAL_FILE_SH,ishot);
} }
}
fpdata = fopen(data,"r"); fpdata = fopen(data,"r");
if (fpdata==NULL) declare_error(" Source wavelet not found "); if (fpdata==NULL) declare_error(" Source wavelet not found ");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment