Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/diagnostics/MOM_diagnostics.F90
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ subroutine calculate_diagnostic_fields(u, v, h, uh, vh, tv, ADp, CDp, p_surf, &
! nkmb = nz, on the expectation that loops nkmb+1,nz will not iterate.
! This behavior is ANSI F77 but some compiler options can force at least
! one iteration that would break the following one-line workaround!
if (nkmb==0) nkmb = nz
if (nkmb==0 .and. nz > 1) nkmb = nz

if (loc(CS)==0) call MOM_error(FATAL, &
"calculate_diagnostic_fields: Module must be initialized before used.")
Expand Down