00001 subroutine test_analytic_solution_bhex
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 mass = 2.0d0*rgin
00013 do ipg = 0, npg
00014 do itg = 0, ntg
00015 do irg = 0, nrg
00016 bvxd(irg,itg,ipg) = 1.0d0 + mass/(2.0d0*rg(irg)) &
00017 & + mass/(2.0d0*rb(irg,itg,ipg))
00018 bvyd(irg,itg,ipg) = 1.0d0 - mass/(2.0d0*rg(irg)) &
00019 & - mass/(2.0d0*rb(irg,itg,ipg))
00020 end do
00021 end do
00022 end do
00023
00024 end subroutine test_analytic_solution_bhex