00001 subroutine initialize_MRNS
00002   use phys_constant, only  : long
00003   use grid_parameter, only : nrf, ntf, npf
00004   use def_matter, only : emd, rs, utf, uxf, uyf, uzf
00005   use def_matter_parameter, only : ome, ber
00006   use def_vector_phi, only : vec_phif
00007   implicit none
00008   real(long) :: hh, pre, rho, ene, qq
00009   integer :: irf, itf, ipf
00010 
00011 
00012 
00013   call calc_vector_phi_matter(1)
00014 
00015   do ipf = 0, npf
00016     do itf = 0, ntf
00017       do irf = 0, nrf
00018         qq = emd(irf,itf,ipf)
00019         call peos_q2hprho(qq, hh, pre, rho, ene)
00020         utf(irf,itf,ipf) = hh/ber
00021         uxf(irf,itf,ipf) = vec_phif(irf,itf,ipf,1)*ome
00022         uyf(irf,itf,ipf) = vec_phif(irf,itf,ipf,2)*ome
00023         uzf(irf,itf,ipf) = 0.0d0
00024       end do
00025     end do
00026   end do
00027 
00028 end subroutine initialize_MRNS