亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? 2dimaging.mpi.c

?? 主從模式粗粒級并行算法C程序:這是我以前研究生期間編寫的疊前地震成像C源碼
?? C
?? 第 1 頁 / 共 3 頁
字號:
/****************************************************************                         2dcmp_presdm                      ****                         =============                     ****                         Cheng Jiubing                     ****                        2001.01-2002.02                    ****                                                           ****  Copyright (c) TongJi University, ShangHai, China, 1999.  ****                   All rights reserved.                    ****************************************************************/#include "fft.h"#include "mute_direct.h"#include "cjbsegy.h"#include "alloc.h"#include "mpi.h"/***** SEG-Y header *********/       Y_3200   y3200;       bhed     head_400;       cjbsegy  tr, vtr;/***** SEG-Y header *********/void keyin_par(char *iwfile, char *ivfile, char *owfile1, char *owfile2,      char *owfile3, int *seismic, int *operator, int *nxv, int *nzv,     int *ncdp0, float *dmx, float *dhx,  float *depth, float *dz,      float *f1, float *f2, float *f3, float *f4, int *iflag_fft,     float *dxv, float *dzv, float *xv0, int *ncdpstep_cig,     float *gamamin, float *gamamax, int *ngama);void read_par(char *iwfile, char *ivfile, char *owfile1, char *owfile2,       char *owfile3, int *seismic, int *operator, int *nxv, int *nzv,      int *ncdp0, float *dmx, float *dhx,  float *depth, float *dz,      float *f1, float *f2, float *f3, float *f4, int *iflag_fft,      float *dxv, float *dzv, float *xv0, int *ncdpstep_cig,     float *gamamin, float *gamamax, int *ngama);void scan_statistics(FILE *iwfp, int nt, float *xmmin, float *xmmax,      float *offsetmin, float *offsetmax, int *ntrace);void Input_FFT_Transp(FILE *iwfp, FILE *fp, int nmx, int nhx, int ntrace,      int nt, int ntfft, int nw, int nf1, int nf2, int nf3, int nf4,      float xmmin, float offsetmin, float dmx, float dhx, float dt, float *tapert);void velocity(float **vv, float *vz, float ***dss, float ***dsg, int nxv,      int nzv, int nmx, int nhx, int nz, float xmmin, float offsetmin,     float xv0, float dxv, float dzv, float dz, float dmx, float dhx);void filter(complex *cq,int nw,int nf1,int nf2,int nf3,int nf4);void presdm(complex **wave, float ***cimage, float **image, float ***dss,       float ***dsg, float *vz, float *taperx, float *taperh,     int nmx, int nhx, int nz, float dmx, float dhx, float dz, float w,     int operator, float xmmin, float offsetmin, int ncig, int ncdpstep_cig, int myid);/****** split-step fourier operator ******/void ssf(complex **wave, float ***cimage, float **image, float ***dss,      float ***dsg, float *vz, float *taperx, float *taperh, int nmx,     int nhx, int iz, float dmx, float dhx, float dz, float w,      float xmmin, float offsetmin, int ncig, int ncdpstep_cig, int myid);/****** quasi-linear fourier/born operator ******/void LQELBF(complex **wave, float ***cimage, float **image, float ***dss,      float ***dsg, float *vz, float *taperx, float *taperh, int nmx,     int nhx, int iz, float dmx, float dhx, float dz, float w,      float xmmin, float offsetmin, int ncig, int ncdpstep_cig, int myid);void Stack_ImageCIGs_allnodes(char *owfile1, char *owfile2, float ***cimage,      float **image, int seismic, int nmx, int nhx, int nz, int ncdp0,     float offsetmin, float dhx, float xmmin, float dmx, float dz,      int ncig, int ncdpstep_cig, int myid);/* taper boundary processing */void tapfunc(float *taper, int nx, int nxleft, int nxright, int iflag);/* delay depth between MPI nodes to avoid I/O traffic  */void myid_node_delay(int myid);void memory_used(int nxv, int nmx, int nhx, int nz, int ncig, int operator);/* estimate the memory need for this program */void odcig2adcig_gama(char *owfile2, char *owfile3, int seismic,      int nmx, int nhx, int ngama, int nz, int ncdp0,      int ncig, int ncdpstep_cig, float xmmin, float dmx,     float offsetmin, float dhx, float fgama, float dgama, float dz);void fwd_FK_sstack_cjb (float dt, int nt, int nx, float xmin, float dx, int ngama,	float fgama, float dgama, float fmin, float **traces, float **out_traces);void xindex (int nx, float ax[], float x, int *index);void intlin (int nin, float xin[], float yin[], float yinl, float yinr, 	int nout, float xout[], float yout[]);main ( argc, argv)int  argc;char **argv;{        /************************ Keyin parameters *******************************/        char      iwfile[70];                /* input pre-stack gather */        char      ivfile[70];                /* input velocity file */        char      owfile1[70];               /* output image by "t=0, h=0" before outputing CIGs*/        char      owfile2[70];               /* output image-point gather*/        char      owfile3[70];               /* output image by stacking CIGs*/        int       kflag;                           int       seismic;                   /* segy data: seismic=1; su data: seismic=2*/        int       operator;                  /* imaging operator type*/        int       nxv;                       /* velocity lateral gridpoint number*/        int       nzv;                       /* velocity vertical gridpoint number */         int       ncdp0;                     /* wavefield first cdp number */         float     dmx;                       /* midpoint interval */        float     dhx;                       /* half-offset interval */        float     depth;                     /* extrapolate depth */        float     dz;                        /* extrapolate depth interval*/        float     f1;                        /* f1 of frequency range: f1-f2--f3-f4*/        float     f2;                        /* f2 of frequency range: f1-f2--f3-f4*/        float     f3;                        /* f3 of frequency range: f1-f2--f3-f4*/        float     f4;                        /* f4 of frequency range: f1-f2--f3-f4*/        float     dxv;                       /* velocity lateral grid interval */         float     dzv;                       /* velocity vertical grid interval */         float     xv0;                       /* velocity lateral starting coordinate */	int       ncdpstep_cig;              /* CIGs cdp number interval*/	float     gamamin;                   /* minimin incidence angle for CIGs*/	float     gamamax;                   /* minimax incidence angle for CIGs*/        int       ngama=81;                  /* Number of Gama in CIGs */        /************************ Keyin parameters *******************************/        int      ncig, np, myid, num, ierr, i, ip, nnp, iww, mpinode;        int      ntrace, nt, nz, nf1, nf2, nf3, nf4, ntfft, nmx, nxvv,nhx, nkh, nw, nww;        int      ix, ixv, imx, iz, it, iw, ikx, ipp, iflag_fft, unit=1;	float    dt, w, kx, dw, dkx, fw, fkx, zero, dkh;          float    xmmin, xmmax, xsgmin, xsgmax, offsetmin, offsetmax;        float    fgama, dgama;	float    *taperx, *taperh, *tapert, **vv, **v, *vz, **image, ***dss,***dsg;        complex  **wave;        float    ***cimage;	FILE     *fp, *fpv, *ivfp, *iwfp;               char     *tmpfile;               /*temporay frequency domain wavefields*/	MPI_Status status;        MPI_Init(&argc, &argv);        MPI_Comm_size(MPI_COMM_WORLD, &np);        MPI_Comm_rank(MPI_COMM_WORLD, &myid);        if(myid==0){        printf("===================================================\n");        printf("                                                   \n");        printf("             2D Midpoint-Offset Domain             \n");        printf("              PreStack Depth Migration             \n");        printf("                                                   \n");        printf("              -------------------------            \n");        printf("                  SSF,Fourier-Born                 \n");        printf("              -------------------------            \n");        printf("                                                   \n");        printf("            Tongji University,Shanghai,China       \n");        printf("                    Cheng Jiubing                  \n");        printf("===================================================\n");        printf("Notices:                                           \n");        printf("  1. The tool can process single-side shotting,    \n");        printf(" and for the mid-shotting data, we only use one    \n");        printf(" side of the data.                                 \n");        printf("  2. Input wavefields can be any prestack data     \n");        printf(" with or without midpoint-offset gather sorting.   \n");        printf("  3. Input velocity data need SU or SEG-Y header,  \n");        printf(" but the starting point coordinate, grid-interval, \n");        printf(" and grid number must be given.                    \n");         printf("===================================================\n");        printf("Output:                                            \n");        printf("1. Image result by 't=0,h=0' before outputing CIGs \n");        printf("2. Ph-CIGs by 't=0' with 7-point SINC Interpolation\n");        printf("3. New Image results stacked by muted CIGs         \n");        printf("===================================================\n");        }        kflag=2;        if(kflag==1&&np==1){          keyin_par(iwfile, ivfile, owfile1, owfile2, owfile3,                     &seismic, &operator, &nxv, &nzv, &ncdp0,                     &dmx, &dhx, &depth, &dz, &f1, &f2, &f3, &f4,                    &iflag_fft, &dxv, &dzv, &xv0, 		    &ncdpstep_cig, &gamamin, &gamamax, &ngama);        }else{          read_par(iwfile, ivfile, owfile1, owfile2, owfile3,                    &seismic, &operator, &nxv, &nzv, &ncdp0,                    &dmx, &dhx, &depth, &dz, &f1, &f2, &f3, &f4,                   &iflag_fft, &dxv, &dzv, &xv0, 		   &ncdpstep_cig, &gamamin, &gamamax, &ngama);        }        if(myid==0){        printf("iwfile= %s\n",iwfile);        printf("ivfile= %s\n",ivfile);        printf("owfile1= %s\n",owfile1);        printf("owfile2= %s\n",owfile2);        printf("owfile3= %s\n",owfile3);        printf("seismic= %d\n",seismic);        printf("operator= %d\n",operator);        printf("nxv, nzv: %d %d\n",nxv, nzv);        printf("ncdp0= %d\n",ncdp0);        printf("dmx, dhx: %f %f\n",dmx, dhx);        printf("dz= %f\n",dz);        printf("f1, f2, f3, f4: %f %f %f %f\n",f1, f2, f3, f4);        printf("iflag_fft= %d\n",iflag_fft);        printf("dxv, dzv: %f %f\n",dxv, dzv);        printf("xv0= %f\n",xv0);	printf("ncdpstep_cig= %d\n",ncdpstep_cig);        printf("gamamin= %f gamamax=%f\n",gamamin,gamamax);        printf("ngama= %d\n",ngama);        }        nz=(depth+0.0005)/dz;        /*#1: read trace point number and depth sampling rate from seismic header */         if((iwfp = fopen(iwfile,"rb"))==NULL)        { printf("Open iwfile error !\n"); exit(1); }        if(seismic==1){           fread(&y3200, sizeof(Y_3200), 1, iwfp);           fread(&head_400, sizeof(bhed), 1, iwfp);           fread(&tr, sizeof(cjbsegy), 1, iwfp);           fseek(iwfp, (long)(-sizeof(cjbsegy)), 1);        }        else{           fread(&tr, sizeof(cjbsegy), 1, iwfp);           rewind(iwfp);        }        nt = tr.ns;        dt=tr.dt/1000000.0;	if(myid==0){        printf("***************************************************\n");        printf("Seismic Header Information: nt= %d, dt= %f(s)\n",nt,dt);	}        /*#2: determine FFT/frequency parameters */         ntfft = npfa(nt);        nww = ntfft/2+1;        dw = 2.0*PI/(ntfft*dt);        fw=2.0*PI*f1;        nf1=fw/dw+0.5;        fw=2.0*PI*f2;        nf2=fw/dw+0.5;        fw=2.0*PI*f3;        nf3=fw/dw+0.5;        fw=2.0*PI*f4;        nf4=fw/dw+0.5;         nw=nf4-nf1+1;        fw=nf1*dw;        vv=alloc2float(nzv, nxv);        zero2float(vv, nzv, nxv);                if((ivfp=fopen(ivfile,"rb"))==NULL)          { printf("Open ivfile error !\n"); exit(1);}        for(ix=0;ix<nxv;ix++){            fread(vv[ix], FSIZE, nzv, ivfp);	  // for(iz=0;iz<nzv;iz++) printf("%f ",vv[ix][iz]);	}        fclose(ivfp);        if(myid==0){           printf("***************************************************\n");          printf("*             Begin to Scan SEG-Y Header          *\n");          printf("***************************************************\n");          scan_statistics(iwfp, nt, &xmmin, &xmmax, &offsetmin, &offsetmax, &ntrace);          printf("@@@@: xmmin= %f, xmmax= %f\n",xmmin, xmmax);          printf("@@@@: offsetmin= %f,  offsetmax= %f\n",offsetmin, offsetmax);        }        MPI_Bcast(&xmmin, 1, MPI_FLOAT, 0, MPI_COMM_WORLD);        MPI_Bcast(&xmmax, 1, MPI_FLOAT, 0, MPI_COMM_WORLD);        MPI_Bcast(&offsetmin, 1, MPI_FLOAT, 0, MPI_COMM_WORLD);        MPI_Bcast(&offsetmax, 1, MPI_FLOAT, 0, MPI_COMM_WORLD);        MPI_Bcast(&ntrace, 1, MPI_INT, 0, MPI_COMM_WORLD);	offsetmax=fabs(offsetmin)>fabs(offsetmax)?fabs(offsetmin):fabs(offsetmax);	offsetmin=-offsetmax;        nhx=(offsetmax-offsetmin)/(2*dhx)+1;        nmx=(xmmax-xmmin)/dmx+1;         nkh= npfa(nhx);        dkh= 2.0*PI/(nkh*dhx);        /*** Wavefield is ranged in order of fabs(offset), so we use CIGs with Ph>=0.0 ***/        if(myid==0){          printf("@@@@: nw= %d  nmx= %d   nhx= %d\n",nw, nmx, nhx);        }        tmpfile="Temp_FFT_Transp_DepthMig";        if(!iflag_fft&&myid==0){          printf("***************************************************\n");          printf("               Input-FFT-Transp.                   \n");          printf("***************************************************\n");          fp=fopen(tmpfile, "wb");          fseek(iwfp, (long)(-ntrace*(sizeof(cjbsegy)+nt*FSIZE)), 1);	  tapert=alloc1float(nt);	  tapfunc(tapert, nt, 15, 50, +1);           Input_FFT_Transp(iwfp, fp, nmx, nhx, ntrace, nt, ntfft, nw,                            nf1, nf2, nf3, nf4, xmmin, offsetmin,                            dmx, dhx, dt, tapert);	  free1float(tapert);

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
丝袜亚洲精品中文字幕一区| 欧美一区二区观看视频| 欧美国产激情二区三区| 国产iv一区二区三区| 国产日韩精品视频一区| 成人听书哪个软件好| 国产精品久久久久久久裸模 | 亚洲制服欧美中文字幕中文字幕| 91精品国产aⅴ一区二区| 色国产精品一区在线观看| 亚洲欧美另类图片小说| 日本丶国产丶欧美色综合| 亚洲高清免费一级二级三级| 欧美精品 国产精品| 捆绑调教美女网站视频一区| 中文字幕第一区第二区| 一本一道久久a久久精品综合蜜臀 一本一道综合狠狠老 | 欧美一区二区精品久久911| 黄色日韩三级电影| 中文字幕一区二区三区不卡| 欧美日韩小视频| 国产精品一区二区久激情瑜伽| 亚洲天堂2016| 日韩视频一区二区| 白白色 亚洲乱淫| 91国产丝袜在线播放| 国产精品九色蝌蚪自拍| 色视频成人在线观看免| 亚洲综合色噜噜狠狠| 日韩一区二区三区精品视频| 国产成人鲁色资源国产91色综| 亚洲精品中文在线影院| 精品国产伦一区二区三区观看方式| av网站免费线看精品| 午夜a成v人精品| 国产精品入口麻豆九色| 欧美一区二区视频网站| 99久久99久久精品免费观看| 久久99久久99| 一区二区三区欧美日韩| 久久久久久久综合日本| 欧美日本一区二区三区| 国产成人在线网站| 日本一道高清亚洲日美韩| 中文字幕欧美国产| 中文字幕av在线一区二区三区| 欧美三区在线视频| 成人久久视频在线观看| 蜜臀av国产精品久久久久| 成人免费一区二区三区视频| 日韩欧美国产电影| 日本高清免费不卡视频| 成人教育av在线| 国产在线播放一区| 秋霞成人午夜伦在线观看| 亚洲欧美日本在线| 国产精品情趣视频| www一区二区| 日韩久久久久久| 欧美一区二区福利视频| 欧美偷拍一区二区| 91最新地址在线播放| 粉嫩一区二区三区性色av| 国内欧美视频一区二区| 免费在线看成人av| 日日摸夜夜添夜夜添精品视频| 亚洲在线中文字幕| 69久久夜色精品国产69蝌蚪网| 日韩福利电影在线观看| 欧美成人精品福利| 亚洲综合成人在线| 国产精品久久久久久久久快鸭 | 亚洲h在线观看| 成人欧美一区二区三区在线播放| 国产亚洲一区二区三区四区| 日韩一区二区麻豆国产| 91精品国产综合久久久久久久 | 精东粉嫩av免费一区二区三区| 日韩国产精品91| 免费欧美日韩国产三级电影| 午夜电影网一区| 狠狠狠色丁香婷婷综合久久五月| 久久精品国产亚洲一区二区三区| 日韩高清不卡在线| proumb性欧美在线观看| 亚洲欧洲无码一区二区三区| 91精品婷婷国产综合久久性色 | 国产乱妇无码大片在线观看| 国产精品888| 91丨porny丨在线| 欧美在线不卡一区| 欧美日韩国产bt| 欧美大肚乱孕交hd孕妇| 精品国产伦一区二区三区免费| 久久精品一区蜜桃臀影院| 日本一区二区三区四区在线视频| 中文字幕一区二区三区精华液| 亚洲日本免费电影| 亚洲国产wwwccc36天堂| 奇米在线7777在线精品| 国产在线精品视频| www.在线成人| 欧美日韩在线观看一区二区| 欧美一区二区网站| 国产视频一区不卡| 亚洲免费观看在线观看| 香蕉成人伊视频在线观看| 美女网站视频久久| 国产 日韩 欧美大片| 色婷婷狠狠综合| 日韩视频免费观看高清完整版在线观看 | 一本大道av一区二区在线播放| 欧美日韩一区二区三区免费看| 精品久久国产老人久久综合| 国产精品久久99| 日本一区中文字幕| 成人18视频在线播放| 欧美日本韩国一区二区三区视频| 久久久久久日产精品| 亚洲摸摸操操av| 国产在线观看一区二区 | 欧美性videosxxxxx| 欧美成人aa大片| 亚洲免费大片在线观看| 美女久久久精品| 91浏览器打开| 久久只精品国产| 午夜成人免费视频| a亚洲天堂av| 日韩精品中午字幕| 一区二区三区中文在线| 国产又黄又大久久| 欧美精品一二三四| 中文字幕一区二区三| 极品少妇一区二区| 欧美日韩aaaaaa| 亚洲日本丝袜连裤袜办公室| 国内精品不卡在线| 欧美性大战久久久久久久| 中文字幕精品综合| 久久精品国产精品亚洲精品| 欧美色综合久久| 国产精品免费人成网站| 久久 天天综合| 欧美精品乱人伦久久久久久| 亚洲欧美一区二区三区孕妇| 国产精品1区2区| 精品久久久久久久一区二区蜜臀| 亚洲一区在线观看视频| 91在线精品一区二区三区| 国产亚洲精品bt天堂精选| 欧美aaaaaa午夜精品| 欧美三级韩国三级日本一级| 亚洲欧美激情视频在线观看一区二区三区 | 91视频你懂的| 欧美极品美女视频| 精品一区二区三区免费| 欧美一级xxx| 日韩不卡一二三区| 欧美视频三区在线播放| 一二三四社区欧美黄| 99免费精品在线| 国产精品日日摸夜夜摸av| 国产福利91精品一区二区三区| 2欧美一区二区三区在线观看视频| 免费久久精品视频| 日韩欧美色电影| 久久99国产精品免费| 欧美草草影院在线视频| 欧美aⅴ一区二区三区视频| 91精品国产高清一区二区三区蜜臀| 日韩精品一区第一页| 制服.丝袜.亚洲.中文.综合| 日韩av在线播放中文字幕| 欧美精品黑人性xxxx| 日本免费新一区视频| 日韩欧美国产三级| 国精品**一区二区三区在线蜜桃 | 久久精品一区二区三区不卡牛牛 | 日韩欧美国产一二三区| 麻豆成人综合网| 欧美精品一区二区三区高清aⅴ| 久久99精品一区二区三区| 久久久久久久电影| 成人精品一区二区三区中文字幕| 国产精品美女久久福利网站 | 欧美日韩免费电影| 美女一区二区三区| 国产欧美一区二区精品性色| 色综合天天视频在线观看| 亚洲最大成人网4388xx| 欧美一区二视频| 成人综合在线观看| 一区二区三区资源| 欧美一级在线观看| 盗摄精品av一区二区三区| 一区二区三区四区在线| 日韩欧美国产综合在线一区二区三区| 国产精品88av| av成人老司机|