00001 subroutine vol_int_grav(soug,vol) 00002 use phys_constant, only : long 00003 use grid_parameter, only : nrg, ntg, npg 00004 use weight_midpoint_grav, only : hwrtpg 00005 implicit none 00006 integer :: ir,it,ip 00007 real(long) :: vol, hsoug 00008 real(long), pointer :: soug(:,:,:) 00009 vol = 0.0d0 00010 do ip = 1, npg 00011 do it = 1, ntg 00012 do ir = 1, nrg 00013 vol = vol + soug(ir,it,ip)*hwrtpg(ir,it,ip) 00014 end do 00015 end do 00016 end do 00017 end subroutine vol_int_grav