00001
00002
00003 module coordinate_grav_theta
00004 use phys_constant, only : pi, nntg, long
00005 use grid_parameter, only : ntg
00006 implicit none
00007 Real(long) :: dthg, dthginv
00008 Real(long) :: thg(0:nntg), hthg(nntg)
00009 contains
00010 subroutine grid_theta
00011 implicit none
00012 Integer :: it
00013 dthg = pi/REAL(ntg)
00014 dthginv=1.0e0/dthg
00015 thg(0) = 0.0d0
00016 do it = 1, ntg
00017 thg(it) = Real(it)*dthg
00018 hthg(it) = 0.5d0*(thg(it) + thg(it-1))
00019 end do
00020 end subroutine grid_theta
00021 end module coordinate_grav_theta