Copyright (C) Rong Tao, all rights reserve.
- 👋 Hi, I’m @rtoax, you can see me in @linux-visor too.
- 👀 I’m interested in Linux
- 🌱 I’m currently learning Linux
- 💞️ I’m looking to collaborate on libcareplus, test-linux and more.
- 📫 How to reach me GitHub, CSDN, Gitee and 哆啦Linux梦.
这是一个基于MPICH的VTI介质逆时偏移成像,在linux终端下实现。[translation: This is an MPICH-based VTI media reverse-time migration imaging, implemented under the Linux terminal]
Compiler
: GNU/GCC, mpich(mpicc, mpirun)OS
: Linux(CentOS, Ubuntu...)
void laplac2_lop(int adj, int nz, int nx, float *in, float *out)
/*< linear operator >*/
{
int iz,ix,j;
for (ix=0; ix < nx; ix++) {
for (iz=0; iz < nz; iz++) {
j = iz+ix*nz;
if (iz > 0) {
if (adj) {
out[j-1] -= in[j];
out[j] += in[j];
} else {
out[j] += in[j] - in[j-1];
}
}
if (iz < nz-1) {
if (adj) {
out[j+1] -= in[j];
out[j] += in[j];
} else {
out[j] += in[j] - in[j+1];
}
}
if (ix > 0) {
if (adj) {
out[j-nz] -= in[j];
out[j] += in[j];
} else {
out[j] += in[j] - in[j-nz];
}
}
if (ix < nx-1) {
if (adj) {
out[j+nz] -= in[j];
out[j] += in[j];
} else {
out[j] += in[j] - in[j+nz];
}
}
}
}
}