Skip to content

Commit

Permalink
Fixed an uninitialized diagnostic id
Browse files Browse the repository at this point in the history
- This diagnostic id was uninitialized but queried. We generally always
  explicitly set ids to -1 even if a later register call will set it.
  In this case, valgrind said it was being looked at before being set.
  • Loading branch information
adcroft committed Apr 21, 2017
1 parent a567dbf commit 6008aa5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ALE/MOM_ALE.F90
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ module MOM_ALE
integer, dimension(:), allocatable :: id_Htracer_remap_tendency !< diagnostic id
integer, dimension(:), allocatable :: id_Htracer_remap_tendency_2d !< diagnostic id
logical, dimension(:), allocatable :: do_tendency_diag !< flag for doing diagnostics
integer :: id_dzRegrid
integer :: id_dzRegrid = -1 !< diagnostic id

end type

Expand Down

0 comments on commit 6008aa5

Please sign in to comment.