1 subroutine da_max_error_qc (it, info, n, field, max_error,failed)
3 !-----------------------------------------------------------------------
5 !-----------------------------------------------------------------------
9 integer, intent(in) :: it
10 type(infa_type), intent(in) :: info
11 integer, intent(in) :: n
12 type(field_type), intent(inout) :: field
13 real, intent(in) :: max_error
14 logical, intent(out) :: failed
19 if (trace_use_frequent) call da_trace_entry("da_max_error_qc")
24 err_max = field % error * max_error
28 if (err > err_max) then
29 field % qc = fails_error_max
34 if (trace_use_frequent) call da_trace_exit("da_max_error_qc")
36 end subroutine da_max_error_qc