Skip to content

Commit

Permalink
In the case that nonzero_count <=1, a (dummy) value is set for non_un…
Browse files Browse the repository at this point in the history
…ique_scales before returning
  • Loading branch information
sanAkel authored and marshallward committed Jun 19, 2022
1 parent 8c605fe commit 79eb807
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/framework/MOM_unique_scales.F90
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,8 @@ integer function non_unique_scales(scales, list, descs, weights, silent)
integer :: ndim ! The number of dimensional scaling factors to work with
integer :: i, n, m, ns

non_unique_scales = -9999 ! Set return value to a _dummy_ value

verbose = .true. ; if (present(silent)) verbose = .not.silent

ndim = size(scales)
Expand Down

0 comments on commit 79eb807

Please sign in to comment.