Commit 7bb59ac1 authored by laura.gassner's avatar laura.gassner

BUGFIX: error in taper_grad_shot.c

parent c50fe796
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
*.sh *.sh
IFOS2D IFOS2D
snapmerge snapmerge
manual_IFOS.pdf manual_IFOS2D.pdf
*.d *.d
*.hd *.hd
*.strip *.strip
......
...@@ -222,40 +222,40 @@ void taper_grad_shot(float ** waveconv,float ** taper_coeff, float **srcpos, int ...@@ -222,40 +222,40 @@ void taper_grad_shot(float ** waveconv,float ** taper_coeff, float **srcpos, int
if(sws==2){ if(sws==2){
if(USE_WORKFLOW){ 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"); fp_taper=fopen(taper_file,"r");
if(fp_taper==NULL){ 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"); fp_taper=fopen(taper_file,"r");
} }
}else{ }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"); fp_taper=fopen(taper_file,"r");
} }
} }
if(sws==3){ if(sws==3){
if(USE_WORKFLOW){ 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"); fp_taper=fopen(taper_file,"r");
if(fp_taper==NULL){ 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"); fp_taper=fopen(taper_file,"r");
} }
}else{ }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"); fp_taper=fopen(taper_file,"r");
} }
} }
if(sws==4){ if(sws==4){
if(USE_WORKFLOW){ 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"); fp_taper=fopen(taper_file,"r");
if(fp_taper==NULL){ 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"); fp_taper=fopen(taper_file,"r");
} }
}else{ }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"); fp_taper=fopen(taper_file,"r");
} }
} }
......
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