00001
00002
00003 subroutine grgrad_midpoint(fnc,dfdx,dfdy,dfdz)
00004 use phys_constant, only : long
00005 use grid_parameter, only : nrg, ntg, npg
00006 use interface_grgrad_midpoint_r3rd_type0
00007 implicit none
00008 real(long), pointer :: fnc(:,:,:)
00009 real(long), pointer :: dfdx(:,:,:), dfdy(:,:,:), dfdz(:,:,:)
00010 real(long) :: dfncdx, dfncdy, dfncdz
00011 integer :: irg, itg, ipg
00012
00013
00014
00015
00016
00017 do irg = 1, nrg
00018 do itg = 1, ntg
00019 do ipg = 1, npg
00020 call grgrad_midpoint_r3rd_type0(fnc,dfncdx,dfncdy,dfncdz, &
00021 & irg,itg,ipg,'bh')
00022
00023 dfdx(irg,itg,ipg) = dfncdx
00024 dfdy(irg,itg,ipg) = dfncdy
00025 dfdz(irg,itg,ipg) = dfncdz
00026
00027 end do
00028 end do
00029 end do
00030
00031 end subroutine grgrad_midpoint