00001 subroutine calc_4velocity_ut_corot
00002   use phys_constant, only : long
00003   use grid_parameter, only : nrf, ntf, npf
00004   use def_matter_parameter, only : ber
00005   use def_matter, only : emd, utf, utg
00006   use 
00007   implicit none
00008   real(long) :: emdfc, rhofc, prefc, hhfc, ene
00009   integer :: ir, it, ip
00010 
00011   do ip = 0, npf
00012     do it = 0, ntf
00013       do ir = 0, nrf
00014 
00015         emdfc = emd(ir,it,ip)
00016         if (emdfc <= 1.0d-15) emdfc = 1.0d-15
00017         call peos_q2hprho(emdfc, hhfc, prefc, rhofc, ene)
00018         utf(ir,it,ip) = hhfc/ber
00019 
00020       end do
00021     end do
00022   end do
00023   call interpo_fl2gr(utf,utg)
00024 end subroutine calc_4velocity_ut_corot