Skip to content

Commit

Permalink
ice_init: do not warn when using BL99 thermo and 'tfrz_option=nonlin'
Browse files Browse the repository at this point in the history
In the previous commit we updated Icepack to allow 'tfrz_option=nonlin'.
Adjust the check in ice_init::input_data such that we do not warn when
this value is used along with the BL99 thermo, and adjust the warning
accordingly.

Co-authored-by: Philippe Blain <[email protected]>
  • Loading branch information
dupontf and phil-blain committed Sep 12, 2023
1 parent 7677ff0 commit e7c4550
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cicecore/cicedynB/general/ice_init.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1342,10 +1342,12 @@ subroutine input_data

! tcraig, is it really OK for users to run inconsistently?
! ech: yes, for testing sensitivities. It's not recommended for science runs
if (ktherm == 1 .and. trim(tfrz_option) /= 'linear_salt') then
if (ktherm == 1 .and. (trim(tfrz_option) /= 'linear_salt' .or. &
trim(tfrz_option) /= 'nonlin')) then
if (my_task == master_task) then
write(nu_diag,*) subname//' WARNING: ktherm = 1 and tfrz_option = ',trim(tfrz_option)
write(nu_diag,*) subname//' WARNING: For consistency, set tfrz_option = linear_salt'
write(nu_diag,*) subname//' WARNING: or tfrz_option = nonlin'
endif
endif
if (ktherm == 2 .and. trim(tfrz_option) /= 'mushy') then
Expand Down

0 comments on commit e7c4550

Please sign in to comment.