subroutine stats_init_ytavg_moist implicit none allocate(qtyt(ib:ie,kb:ke)) allocate(qlyt(ib:ie,kb:ke)) allocate(wpqtpytk(ib:ie,kb:ke)) allocate(wqtytk(ib:ie,kb:ke)) allocate(qtpqtpyt(ib:ie,kb:ke)) allocate(qtsgsyt(ib:ie,kb:ke)) call ncinfo( ytVars(ctryt+ 1,:), 'qt' , 'Total water specific humidity', 'kg/kg' , 't0tt' ) call ncinfo( ytVars(ctryt+ 2,:), 'wpqtp' , 'Turbulent moisture flux' , 'kg m/kg s' , 't0mt' ) call ncinfo( ytVars(ctryt+ 3,:), 'wqt' , 'Dispersive moisture flux' , 'kg m/kg s' , 't0mt' ) call ncinfo( ytVars(ctryt+ 4,:), 'qtpqtp' , 'Moisture variance' , 'kg^2/kg^2' , 't0tt' ) call ncinfo( ytVars(ctryt+ 5,:), 'qtsgs' , 'SGS moisture flux' , 'kg m/kg s' , 't0mt' ) call ncinfo( ytVars(ctryt+ 6,:), 'ql' , 'Liquid-water specific humidity', 'kg/kg' , 't0tt' ) ctryt = ctryt+6 end subroutine stats_init_ytavg_moist