1 subroutine da_print_stats(stats_unit, nu, nv, nt, np, nq, sound)
3 !-----------------------------------------------------------------------
5 !-----------------------------------------------------------------------
9 integer, intent(in) :: stats_unit
10 integer, intent(inout) :: nu, nv, nt, np, nq
11 type (stats_type), intent(in) :: sound
13 if (trace_use) call da_trace_entry("da_print_stats")
15 write(unit=stats_unit, fmt='(6a/)') &
23 write(unit=stats_unit, fmt='(a,i16,4i22)') &
24 ' Number: ', nu, nv, nt, np, nq
32 write(unit=stats_unit, fmt='((a,4(f12.4,2i5),e12.4,2i5))') &
33 ' Minimum(n,k): ', sound%minimum%u, sound%minimum%v, sound%minimum%t, &
34 sound%minimum%p, sound%minimum%q, &
35 ' Maximum(n,k): ', sound%maximum%u, sound%maximum%v, sound%maximum%t, &
36 sound%maximum%p, sound%maximum%q
37 write(unit=stats_unit, fmt='((a,4(f12.4,10x),e12.4,10x))') &
38 ' Average : ', sound%average%u/real(nu), sound%average%v/real(nv), &
39 sound%average%t/real(nt), sound%average%p/real(np), &
40 sound%average%q/real(nq), &
41 ' RMSE : ', sqrt(sound%rms_err%u/real(nu)), &
42 sqrt(sound%rms_err%v/real(nv)), &
43 sqrt(sound%rms_err%t/real(nt)), &
44 sqrt(sound%rms_err%p/real(np)), &
45 sqrt(sound%rms_err%q/real(nq))
47 if (trace_use) call da_trace_exit("da_print_stats")
49 end subroutine da_print_stats