00001 subroutine source_komar_mass_peos_EMF(soug)
00002 use phys_constant, only : long, pi
00003 use grid_parameter, only : nrg, ntg, npg
00004 use def_metric, only : psi, alph
00005 use def_SEM_tensor_EMF, only : rhoH_EMF, trsm_EMF
00006 use interface_interpo_linear_type0
00007 implicit none
00008 real(long),pointer :: soug(:,:,:)
00009 real(long) :: alphw, psiw, rhoHw, esseS
00010 integer :: irg,itg,ipg
00011
00012 do ipg = 1, npg
00013 do itg = 1, ntg
00014 do irg = 1, nrg
00015 call interpo_linear_type0(psiw,psi,irg,itg,ipg)
00016 call interpo_linear_type0(alphw,alph,irg,itg,ipg)
00017
00018 rhoHw = rhoH_EMF(irg,itg,ipg)
00019 esseS = trsm_EMF(irg,itg,ipg)
00020
00021 soug(irg,itg,ipg) = 4.0d0*pi*alphw*psiw**6*(esseS+rhoHw)
00022
00023 end do
00024 end do
00025 end do
00026
00027 end subroutine source_komar_mass_peos_EMF