Skip to content

Commit

Permalink
Fixes for icooling=8
Browse files Browse the repository at this point in the history
  • Loading branch information
alisonkyoung1 committed Feb 21, 2024
1 parent 1313236 commit 3971f1b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main/eos_stamatellos.f90
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ module eos_stamatellos
implicit none
real,allocatable,public :: optable(:,:,:)
real,allocatable,public :: Gpot_cool(:),duFLD(:),gradP_cool(:),lambda_FLD(:),urad_FLD(:) !gradP_cool=gradP/rho
real,allocatable,public :: ttherm_store(:),teqi_store(:)
character(len=25), public :: eos_file= 'myeos.dat' !default name of tabulated EOS file
logical,public :: doFLD = .True.
logical,public :: doFLD = .True., floor_energy = .False.
integer,public :: iunitst=19
integer,save :: nx,ny ! dimensions of optable read in

Expand All @@ -38,6 +39,8 @@ subroutine init_S07cool()
allocate(duFLD(npart))
allocate(lambda_fld(npart))
allocate(urad_FLD(npart))
allocate(ttherm_store(npart))
allocate(teqi_store(npart))
urad_FLD(:) = 0d0
open (unit=iunitst,file='EOSinfo.dat',status='replace')
if (doFLD) then
Expand All @@ -54,6 +57,8 @@ subroutine finish_S07cool()
if (allocated(duFLD)) deallocate(duFLD)
if (allocated(lambda_fld)) deallocate(lambda_fld)
if (allocated(urad_FLD)) deallocate(urad_FLD)
if (allocated(ttherm_store)) deallocate(ttherm_store)
if (allocated(teqi_store)) deallocate(teqi_store)
close(iunitst)
end subroutine finish_S07cool

Expand Down

0 comments on commit 3971f1b

Please sign in to comment.