00001 subroutine quark_sound_speed(c_s,rho0)
00002 use def_qeos_parameter
00003 implicit none
00004 integer :: ii
00005 real(8), intent(inout) :: c_s, rho0
00006 real(8) :: dpdrho, denedrho
00007 ii=0
00008 dpdrho=0.0d0
00009 denedrho=1.0d0 + eneconst_gcm1
00010 c_s=0
00011 do ii=1, nphase
00012 dpdrho=abi(ii)*abc(ii)*rho0**(abi(ii)-1.0d0)+dpdrho
00013 denedrho=(abc(ii)*abi(ii)/(abi(ii)-1.0d0))*rho0**(abi(ii)-1.0d0)+denedrho
00014 end do
00015 c_s=(dpdrho/denedrho)**(1./2.)
00016
00017
00018
00019
00020 end subroutine quark_sound_speed