00001 subroutine test_analytic_solution_1bh_psialph
00002 use phys_constant, only : long, pi
00003 use grid_parameter, only : nrg, ntg, npg, rgin
00004 use def_metric, only : bvxd, bvyd
00005 use coordinate_grav_r, only : rg
00006 implicit none
00007 integer :: irg, itg, ipg
00008 real(long) :: zfac, small = 1.0d-15
00009 real(long) :: mass
00010
00011 mass = 2.0d0*rgin
00012 do ipg = 0, npg
00013 do itg = 0, ntg
00014 do irg = 0, nrg
00015 bvxd(irg,itg,ipg) = 1.0d0 + mass/(2.0d0*rg(irg))
00016 bvyd(irg,itg,ipg) =(1.0d0 - mass/(2.0d0*rg(irg)))/bvxd(irg,itg,ipg)
00017 end do
00018 end do
00019 end do
00020
00021 end subroutine test_analytic_solution_1bh_psialph