do i = 1,npc R = firstRx + delta*(i-1) ! 不同的进程这个R的值是不同的 re1 = 0.0d0 do ii = 1,nqx qx = dqx/2.0d0 + dqx*(ii-1) re11 = 0.0d0
do m = 1,nx x = dx/2.0d0 + dx*(m-1) re2 = 0.0d0 !--------------------------------------------------------- do n = 1,nk1 k = dk1/2.0d0 + dk1*(n-1) re3 = 0.0d0
do j = 1,nthe the = dthe/2.0d0 + dthe*(j-1) f1 = (1-x)*(k**2-k0**2)**2 + x*(2*qx*k*cos(the) + qx**2 + k**2-k0**2)**2 f2 = qx**2 + 2*qx*k*cos(the) re3 = re3 + (k*f2*(k**2-k0**2)/f1)*cos(qx*R)*exp(-qx**2/64.0d0)*dthe enddo re2 = re2 + re3*dk1 enddo !------------------------------------------------------------- do n = 1,nk2 k = 5.0d0 + dk2/2.0d0 + dk2*(n-1) re3 = 0.0d0
do j = 1,nthe the = dthe/2.0d0 + dthe*(j-1) f1 = (1-x)*(k**2-k0**2)**2 + x*(2*qx*k*cos(the) + qx**2 + k**2-k0**2)**2 f2 = qx**2 + 2*qx*k*cos(the) re3 = re3 + (k*f2*(k**2-k0**2)/f1)*cos(qx*R)*exp(-qx**2/64.0d0)*dthe enddo re2 = re2 + re3*dk2 enddo !----------------------------------------------------------------- do n = 1,nk3 k = 30.0d0 + dk3/2.0d0 + dk3*(n-1) re3 = 0.0d0
do j = 1,nthe the = dthe/2.0d0 + dthe*(j-1) f1 = (1-x)*(k**2-k0**2)**2 + x*(2*qx*k*cos(the) + qx**2 + k**2-k0**2)**2 f2 = qx**2 + 2*qx*k*cos(the) re3 = re3 + (k*f2*(k**2-k0**2)/f1)*cos(qx*R)*exp(-qx**2/64.0d0)*dthe enddo re2 = re2 + re3*dk3 enddo !------------------------------------------------------------------------ do n = 1,nk4 k = 100.0d0 + dk4/2.0d0 + dk4*(n-1) re3 = 0.0d0
do j = 1,nthe the = dthe/2.0d0 + dthe*(j-1) f1 = (1-x)*(k**2-k0**2)**2 + x*(2*qx*k*cos(the) + qx**2 + k**2-k0**2)**2 f2 = qx**2 + 2*qx*k*cos(the) re3 = re3 + (k*f2*(k**2-k0**2)/f1)*cos(qx*R)*exp(-qx**2/64.0d0)*dthe enddo re2 = re2 + re3*dk4 enddo !---------------------------------------------------------------------- do n = 1,nk5 k = 1000.0d0 + dk5/2.0d0 + dk5*(n-1) re3 = 0.0d0
do j = 1,nthe the = dthe/2.0d0 + dthe*(j-1) f1 = (1-x)*(k**2-k0**2)**2 + x*(2*qx*k*cos(the) + qx**2 + k**2-k0**2)**2 f2 = qx**2 + 2*qx*k*cos(the) re3 = re3 + (k*f2*(k**2-k0**2)/f1)*cos(qx*R)*exp(-qx**2/64.0d0)*dthe enddo re2 = re2 + re3*dk5 enddo !----------------------------------------------------------------------- do n = 1,nk6 k = 2000.0d0 + dk6/2.0d0 + dk6*(n-1) re3 = 0.0d0