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 : hwrtpf, tzwrtpf
00009 use def_matter, only : rs
00010 use interface_interpo_linear_type0
00011 use interface_interpo_linear_type0_2Dsurf
00012 implicit none
00013
00014 integer :: ir,it,ip
00015 real(long) :: vol, hsouf, hsurf
00016 real(long),pointer :: souf(:,:,:)
00017
00018
00019 vol = 0.0d0
00020 do ip = 1, npf
00021 do it = 1, ntf
00022 do ir = 1, nrf
00023
00024
00025
00026 call interpo_linear_type0(hsouf,souf,ir,it,ip)
00027 call interpo_linear_type0_2Dsurf(hsurf,rs,it,ip)
00028 vol = vol + hsouf * hsurf**3*hwrtpf(ir,it,ip)
00029 end do
00030 end do
00031 end do
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045 end subroutine vol_int_fluid