c*** calculate the bulk modulus for the EOS contribution to the sound Speed
if (iflag.eq.0) then
xmu=1.0/df-1.
dfmu=df*xmu
facp=.5*(1.+sign(1.,xmu))
facn=1.-facp
xnum=1.+xmu*(+g0d2-sad2*xmu)
xdem=1.-xmu*(s11+dfmu*(s2+s3*dfmu))
tmp=facp/(xdem*xdem)
a=roc2*xmu*(facn+tmp*xnum)
b=g0+sa*xmu
pnum=roc2*(facn+facp*(xnum+xmu*(g0d2-sa*xmu)))
pden=2.*xdem*(-s11 +dfmu*(-s22+dfmu*(s2-s33+s32*dfmu)))
cb=pnum*(facn+tmp)-tmp*a*pden+sa*specen+
& b*df**2*max(pc,(a+b*specen))