Skip to content

Commit

Permalink
Fix bug in ieos=23 init err
Browse files Browse the repository at this point in the history
  • Loading branch information
alisonkyoung1 committed Oct 15, 2024
1 parent b85f54a commit 42a79f0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/eos.f90
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ subroutine init_eos(eos_type,ierr)
use dim, only:maxvxyzu,do_radiation
integer, intent(in) :: eos_type
integer, intent(out) :: ierr
integer :: ierr_mesakapp
integer :: ierr_mesakapp,ierr_ra

ierr = 0
!
Expand Down Expand Up @@ -561,8 +561,8 @@ subroutine init_eos(eos_type,ierr)
call init_eos_HIIR()

case(23)
call read_optab(eos_file,ierr)
if (ierr > 0) call error('init_eos','Failed to read EOS file',var='ierr',ival=ierr)
call read_optab(eos_file,ierr_ra)
if (ierr_ra > 0) call warning('init_eos','Failed to read EOS file')
call init_S07cool

end select
Expand Down

0 comments on commit 42a79f0

Please sign in to comment.