Skip to content

Commit

Permalink
Merge pull request #433 from nicolascuello/master
Browse files Browse the repository at this point in the history
(eos) bug fixed in generalised Farris eos 13
  • Loading branch information
danieljprice committed Jun 14, 2023
2 parents bc0de6a + 7bb6505 commit f486a4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/eos.F90
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ subroutine equationofstate(eos_type,ponrhoi,spsoundi,rhoi,xi,yi,zi,tempi,eni,gam
mass = 0

do i=1,nptmass
mass_r = r1+xyzmh_ptmass(4,i)/sqrt((xi-xyzmh_ptmass(1,i))**2 + (yi-xyzmh_ptmass(2,i))**2 + (zi-xyzmh_ptmass(3,i))**2)
mass_r = mass_r+xyzmh_ptmass(4,i)/sqrt((xi-xyzmh_ptmass(1,i))**2 + (yi-xyzmh_ptmass(2,i))**2 + (zi-xyzmh_ptmass(3,i))**2)
mass = mass + xyzmh_ptmass(4,i)
enddo
ponrhoi=polyk*(mass_r)**(2*qfacdisc)/mass**(2*qfacdisc)
Expand Down

0 comments on commit f486a4b

Please sign in to comment.