1 subroutine da_maxmin_in_field(field, max, min)
3 !-----------------------------------------------------------------------
5 !-----------------------------------------------------------------------
9 real, intent(in) :: field(its:ite,jts:jte,kts:kte)
10 type(maxmin_field_type), intent(out) :: max(kts:kte)
11 type(maxmin_field_type), intent(out) :: min(kts:kte)
13 if (trace_use_dull) call da_trace_entry("da_maxmin_in_field")
16 max(k)%value = -1.0e20
20 if (field(i,j,k) > max(k)%value) then
21 max(k)%value = field(i,j,k)
25 if (field(i,j,k) < min(k)%value) then
26 min(k)%value = field(i,j,k)
34 if (trace_use_dull) call da_trace_exit("da_maxmin_in_field")
36 end subroutine da_maxmin_in_field