Skip to content

Commit

Permalink
Use init_call argument to ice_data_type_chksum
Browse files Browse the repository at this point in the history
  Added code to use the optional init_call argument to ice_data_type_chksum,
which was recently omitted when this optional argument was added in an attempt
to partially address SIS2 issue mom-ocean#102.  Without this change, the logical variable
init was being used but not set, so it would have been random whether some of
the chksums were being written.  All solutions are bitwise identical.
  • Loading branch information
Hallberg-NOAA committed Aug 25, 2020
1 parent 9fdb1b4 commit dbea0ba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ice_type.F90
Original file line number Diff line number Diff line change
Expand Up @@ -637,6 +637,7 @@ subroutine ice_data_type_chksum(mesg, timestep, Ice, init_call)
integer :: outunit ! The output unit to write to.

outunit = stdout()
init = .false. ; if (present(init_call)) init = init_call
write(outunit,*) "BEGIN CHECKSUM(ice_data_type):: ", mesg, timestep

if (Ice%fast_ice_PE) then
Expand Down

0 comments on commit dbea0ba

Please sign in to comment.