00001 subroutine calc_physq_center_qeos
00002 use grid_parameter, only : nrf, ntf, npf
00003 use def_matter, only : rhof
00004 use def_quantities, only : rho_c, pre_c, epsi_c, q_c, &
00005 & rho_max, pre_max, epsi_max, q_max
00006 implicit none
00007 real(8) :: hh, emdmax=-1.0d0, dummy
00008 integer :: irf,itf,ipf, irfmax, itfmax, ipfmax
00009
00010 rho_c = rhof(0,0,0)
00011 call quark_rho2phenedpdrho(rho_c, pre_c, hh, epsi_c, dummy)
00012 q_c = pre_c/rho_c
00013 write(6,'(a6,1p,e23.15,a21,i3,a1,i3,a1,i3,a1)') "q_c =", q_c," at (irf,itf,ipf)=(", &
00014 & 0, ",", 0, ",", 0,")"
00015
00016 rho_max = 0.0d0
00017 do irf=0, nrf
00018 do itf=0, ntf
00019 do ipf=0, npf
00020 if ( rhof(irf,itf,ipf) > rho_max ) then
00021 irfmax = irf
00022 itfmax = itf
00023 ipfmax = ipf
00024 rho_max = rhof(irf,itf,ipf)
00025 end if
00026 end do
00027 end do
00028 end do
00029
00030 call quark_rho2phenedpdrho(rho_max, pre_max, hh, epsi_max, dummy)
00031 q_max = pre_max/rho_max
00032 write(6,'(a6,1p,e23.15,a21,i3,a1,i3,a1,i3,a1)') "q_max=", q_max," at (irf,itf,ipf)=(", &
00033 & irfmax, ",", itfmax, ",", ipfmax,")"
00034
00035
00036 end subroutine calc_physq_center_qeos