00001 
00002 
00003 module coordinate_grav_phi
00004   use phys_constant,  only : pi, nnpg, long
00005   use grid_parameter, only : npg
00006   implicit none
00007   Real(long) :: dphig, dphiginv  
00008   Real(long) :: phig(0:nnpg), hphig(nnpg)
00009 
00010 contains
00011 subroutine grid_phi       
00012   implicit none
00013   Integer  ::  ip
00014 
00015   dphig = 2.0e0*pi/REAL(npg)
00016   dphiginv=1.0e0/dphig
00017 
00018   phig(0) = 0.0d0
00019   do ip = 1, npg
00020     phig(ip) = Real(ip)*dphig + phig(0)
00021     hphig(ip) = 0.5d0*(phig(ip) + phig(ip-1))
00022   end do
00023 
00024 end subroutine grid_phi    
00025 end module coordinate_grav_phi