Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions star/private/hydro_eqns.f90
Original file line number Diff line number Diff line change
Expand Up @@ -1003,8 +1003,8 @@ subroutine set_Tsurf_BC(ierr)
integer, intent(out) :: ierr
logical :: test_partials
type(auto_diff_real_star_order1) :: &
lnT1_ad, dT4_dm, T4_p1, T4_surf, T4_00_actual, T4_00_expected, scale
real(dp) :: residual
lnT1_ad, dT4_dm, T4_p1, T4_surf, T4_00_actual, T4_00_expected
real(dp) :: residual, scale
include 'formats'
!test_partials = (1 == s% solver_test_partials_k)
test_partials = .false.
Expand All @@ -1018,7 +1018,7 @@ subroutine set_Tsurf_BC(ierr)
resid_ad = T4_00_expected/T4_00_actual - 1d0
else
lnT1_ad = wrap_lnT_00(s,1)
scale = max(1d0,lnT1_ad)
scale = max(1d0,s%lnT_start(1))
resid_ad = (lnT_bc_ad - lnT1_ad)/scale
end if
residual = resid_ad%val
Expand All @@ -1045,13 +1045,14 @@ end subroutine set_Tsurf_BC
subroutine set_Psurf_BC(ierr)
integer, intent(out) :: ierr
logical :: test_partials
type(auto_diff_real_star_order1) :: lnP1_ad, scale
type(auto_diff_real_star_order1) :: lnP1_ad
real(dp) :: scale
include 'formats'
!test_partials = (1 == s% solver_test_partials_k)
test_partials = .false.
ierr = 0
lnP1_ad = wrap_lnPeos_00(s,1)
scale = max(1d0,lnP1_ad)
scale = max(1d0,s%lnPeos_start(1))
resid_ad = (lnP_bc_ad - lnP1_ad)/scale
s% equ(i_P_eqn, 1) = resid_ad%val
if (test_partials) then
Expand Down
2 changes: 1 addition & 1 deletion star/test_suite/1M_thermohaline/inlist_1M_thermohaline
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
trace_history_value_name(3) = 'he_core_mass'

! limit max_model_number as part of test_suite
max_model_number = 6500
max_model_number = 7000

initial_mass = 1.0
initial_z = 2d-2
Expand Down