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    write(unit=stats_unit, fmt='(a/)') &
14       '   var             u (m/s)     n    k    v (m/s)     n    k  '
15 
16    write(unit=stats_unit, fmt='(a,i16,i22)') &
17       '  Number: ', nu, nv
18 
19    if (nu < 1) nu = 1
20    if (nv < 1) nv = 1
21    
22    write(unit=stats_unit, fmt='((a,2(f12.4,2i5)))') &
23       ' Minimum(n,k): ', Profiler%minimum%u, Profiler%minimum%v, &
24       ' Maximum(n,k): ', Profiler%maximum%u, Profiler%maximum%v
25    write(unit=stats_unit, fmt='((a,2(f12.4,10x)))')  &
26       ' Average     : ', Profiler%average%u/real(nu), &
27                     Profiler%average%v/real(nv),      &
28       '    RMSE     : ', sqrt(Profiler%rms_err%u/real(nu)), &
29                     sqrt(Profiler%rms_err%v/real(nv))
30 
31 end subroutine da_print_stats_profiler
32 
33