Skip to content

Commit

Permalink
ice_init: do broadcast 'default_season'
Browse files Browse the repository at this point in the history
When the 'default_season' namelist setting was added in 01494c7 (Nml
settings (CICE-Consortium#208), 2018-10-19) to replace 'l_winter' and 'l_spring', a
call to 'broadcast_scalar' was forgotten, such that the 'default_season'
value from the namelist is only use on the first MPI process; all other
processes get the hardcoded default value 'winter' defined in
'ice_init::input_data', resulting in different initialization across the
grid for several variables if anything other than 'winter' is used in
the namelist.

Fix that by broadcasting 'default_season' to all MPI procs.
  • Loading branch information
phil-blain committed Sep 5, 2023
1 parent 8d7314f commit 1faac10
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cicecore/cicedynB/general/ice_init.F90
Original file line number Diff line number Diff line change
Expand Up @@ -906,6 +906,7 @@ subroutine input_data
call broadcast_scalar(albsnowi, master_task)
call broadcast_scalar(ahmax, master_task)
call broadcast_scalar(atmbndy, master_task)
call broadcast_scalar(default_season, master_task)
call broadcast_scalar(fyear_init, master_task)
call broadcast_scalar(ycycle, master_task)
call broadcast_scalar(atm_data_format, master_task)
Expand Down

0 comments on commit 1faac10

Please sign in to comment.