00001 subroutine sourceterm_HaC_WL_EMF(sou)
00002 use phys_constant, only : long, pi
00003 use grid_parameter, only : nrg, ntg, npg
00004 use def_metric, only : psi
00005 use def_SEM_tensor_EMF, only : rhoH_EMF
00006 use interface_interpo_linear_type0
00007 implicit none
00008 real(long), pointer :: sou(:,:,:)
00009 real(long) :: psigc, rhoHc
00010 integer :: irg, itg, ipg
00011
00012
00013
00014
00015 do ipg = 1, npg
00016 do itg = 1, ntg
00017 do irg = 1, nrg
00018 call interpo_linear_type0(psigc,psi,irg,itg,ipg)
00019 rhoHc = rhoH_EMF(irg,itg,ipg)
00020 sou(irg,itg,ipg) = - 2.0d0*pi*psigc**5*rhoHc
00021 end do
00022 end do
00023 end do
00024
00025 end subroutine sourceterm_HaC_WL_EMF