00001 subroutine vol_int_fluid(souf,vol)
00002 use phys_constant, only : long, pi
00003 use grid_parameter, only : nrf, ntf, npf
00004 use coordinate_grav_r, only : drg, rg
00005 use coordinate_grav_theta, only : dthg
00006 use coordinate_grav_phi, only : dphig
00007 use trigonometry_grav_theta, only : sinthg, hsinthg
00008 use weight_midpoint_fluid, only : rtsiwrtpf
00009 use def_matter, only : rs
00010 implicit none
00011
00012 integer :: ir,it,ip
00013 real(long) :: vol, hsouf, hsurf
00014 real(long),pointer :: souf(:,:,:)
00015
00016 vol = 0.0d0
00017 do ip = 0, npf
00018 do it = 0, ntf
00019 hsurf = rs(it,ip)
00020 do ir = 0, nrf
00021 hsouf = souf(ir,it,ip)
00022 vol = vol + hsouf * hsurf**3 *rtsiwrtpf(ir,it,ip)
00023 end do
00024 end do
00025 end do
00026
00027 end subroutine vol_int_fluid