da_print_stats_profiler.inc
References to this file elsewhere.
1 subroutine da_print_stats_profiler(stats_unit, nu, nv, Profiler)
2
3 !-----------------------------------------------------------------------
4 ! Purpose: TBD
5 !-----------------------------------------------------------------------
6
7 implicit none
8
9 integer, intent(in) :: stats_unit
10 integer, intent(inout) :: nu, nv
11 type (stats_profiler_type), intent(in) :: profiler
12
13 if (trace_use_dull) call da_trace_entry("da_print_stats_profiler")
14
15 write(unit=stats_unit, fmt='(a/)') &
16 ' var u (m/s) n k v (m/s) n k '
17
18 write(unit=stats_unit, fmt='(a,i16,i22)') &
19 ' Number: ', nu, nv
20
21 if (nu < 1) nu = 1
22 if (nv < 1) nv = 1
23
24 write(unit=stats_unit, fmt='((a,2(f12.4,2i5)))') &
25 ' Minimum(n,k): ', Profiler%minimum%u, Profiler%minimum%v, &
26 ' Maximum(n,k): ', Profiler%maximum%u, Profiler%maximum%v
27 write(unit=stats_unit, fmt='((a,2(f12.4,10x)))') &
28 ' Average : ', Profiler%average%u/real(nu), &
29 Profiler%average%v/real(nv), &
30 ' RMSE : ', sqrt(Profiler%rms_err%u/real(nu)), &
31 sqrt(Profiler%rms_err%v/real(nv))
32
33 if (trace_use_dull) call da_trace_exit("da_print_stats_profiler")
34
35 end subroutine da_print_stats_profiler
36
37