00001 subroutine test_analytic_solution
00002   use phys_constant, only  :   long, pi
00003   use grid_parameter, only  :   nrg, ntg, npg, nrf
00004   use def_metric, only  :   alph
00005   use coordinate_grav_r, only : rg
00006   use grid_points_binary_excision, only : rb
00007   implicit none
00008   integer     ::   irg,itg,ipg
00009   real(long)  ::   zfac, small = 1.0d-15
00010 
00011   do ipg = 0, npg
00012     do itg = 0, ntg
00013       do irg = 0, nrg
00014       if(irg.lt.nrf) &
00015       & alph(irg,itg,ipg) = - 2.0d0*pi/3.0d0*(3.0d0-rg(irg)**2) &
00016       &                     -(4.0d0*pi/3.0d0)*1.0d0/rb(irg,itg,ipg)
00017       if(irg.ge.nrf) &
00018       & alph(irg,itg,ipg) = -(4.0d0*pi/3.0d0)*1.0d0/rg(irg)  &
00019       &                     -(4.0d0*pi/3.0d0)*1.0d0/rb(irg,itg,ipg)
00020 
00021 
00022 
00023 
00024 
00025 
00026 
00027 
00028 
00029 
00030       end do
00031     end do
00032   end do
00033 
00034 end subroutine test_analytic_solution