00001 subroutine test_analytic_solution_bhex_psialph
00002   use phys_constant, only  :   long, pi
00003   use grid_parameter, only  :   nrg, ntg, npg, nrf, rgin
00004   use def_metric, only  :   bvxd, bvyd
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   real(long)  ::   mass 
00011 
00012 
00013   mass = 2.0d0*rgin*0.8d0
00014 
00015   do ipg = 0, npg
00016     do itg = 0, ntg
00017       do irg = 0, nrg
00018         bvxd(irg,itg,ipg) = 1.0d0 + mass/(2.0d0*rg(irg)) &
00019       &                           + mass/(2.0d0*rb(irg,itg,ipg))
00020         bvyd(irg,itg,ipg) =(1.0d0 - mass/(2.0d0*rg(irg)) &
00021       &                           - mass/(2.0d0*rb(irg,itg,ipg)))/bvxd(irg,itg,ipg)
00022       end do
00023     end do
00024   end do
00025 
00026 end subroutine test_analytic_solution_bhex_psialph