00001 subroutine vol_int_grav_bhex(sou,vol,irg_vol)
00002 use phys_constant, only : long
00003 use grid_parameter, only : nrg, ntg, npg
00004
00005 use grid_points_binary_excision, only : ihpg_exin, ihpg_exout
00006 use weight_midpoint_binary_excision, only : hwrtpg_ex
00007
00008 implicit none
00009 integer :: ir,it,ip, ipin, ipout, irg_vol
00010 real(long) :: vol
00011 real(long), pointer :: sou(:,:,:)
00012
00013 vol = 0.0d0
00014 do ir = 1, irg_vol
00015 do it = 1, ntg
00016 ipin = ihpg_exin(ir,it)
00017 ipout = ihpg_exout(ir,it)
00018 do ip = ipin, ipout
00019 vol = vol + sou(ir,it,ip)*hwrtpg_ex(ir,it,ip)
00020 end do
00021 end do
00022 end do
00023 end subroutine vol_int_grav_bhex