Skip to content

Commit 84ee913

Browse files
committed
[ci skip] clarify some behavior of mombarg op mono routines
1 parent 676624b commit 84ee913

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

star/private/kap_support.f90

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -456,18 +456,17 @@ subroutine get_kap( &
456456
stop
457457
end if
458458

459-
if (ierr /= 0) then
460-
s% retry_message = 'error in op_mono kap'
461-
if (s% report_ierr) write(*, *) s% retry_message
462-
beta = 0
463-
if (k > 0 .and. k <= s% nz) s% kap_frac_op_mono(k) = 0
464-
ierr = 0
465-
else if (beta == 1d0) then
466-
kap = kap_op
467-
dlnkap_dlnT = dlnkap_op_dlnT
468-
dlnkap_dlnd = dlnkap_op_dlnRho
469-
return
470-
end if
459+
if (ierr /= 0) then
460+
! Fall back to standard opacities, not OP
461+
beta = 0
462+
if (k > 0 .and. k <= s% nz) s% kap_frac_op_mono(k) = 0
463+
ierr = 0
464+
else if (beta == 1d0) then
465+
kap = kap_op
466+
dlnkap_dlnT = dlnkap_op_dlnT
467+
dlnkap_dlnd = dlnkap_op_dlnRho
468+
return
469+
end if
471470

472471
if (is_bad(kap_op)) then
473472
ierr = 1

0 commit comments

Comments
 (0)