subroutine stats_init_yavg_vel implicit none allocate(uy(ib:ie,kb:ke)) allocate(vy(ib:ie,kb:ke)) allocate(wy(ib:ie,kb:ke)) allocate(py(ib:ie,kb:ke)) allocate(upwpyik(ib:ie,kb:ke)) allocate(uwyik(ib:ie,kb:ke)) allocate(uyik(ib:ie,kb:ke)) allocate(wyik(ib:ie,kb:ke)) allocate(usgsy(ib:ie,kb:ke)) allocate(wsgsy(ib:ie,kb:ke)) call ncinfo( yVars(ctry+ 1,:), 'u' , 'Streamwise velocity' , 'm/s' , 'm0tt' ) call ncinfo( yVars(ctry+ 2,:), 'v' , 'Spanwise velocity' , 'm/s' , 't0tt' ) call ncinfo( yVars(ctry+ 3,:), 'w' , 'Vertical velocity' , 'm/s' , 't0mt' ) call ncinfo( yVars(ctry+ 4,:), 'p' , 'Kinematic Pressure' , 'm^2/s^2' , 't0tt' ) call ncinfo( yVars(ctry+ 5,:), 'upwp' , 'Turbulent mom. flux' , 'm^2/s^2' , 'm0mt' ) call ncinfo( yVars(ctry+ 6,:), 'uw' , 'Advective mom. flux' , 'm^2/s^2' , 'm0mt' ) call ncinfo( yVars(ctry+ 7,:), 'usgs' , 'SGS mom. flux' , 'm^2/s^2' , 'm0mt' ) call ncinfo( yVars(ctry+ 8,:), 'wsgs' , 'SGS normal stress' , 'm^2/s^2' , 't0tt' ) call ncinfo( yVars(ctry+ 9,:), 'pabs' , 'Hydrostatic absolute pressure', 'Pa' , 't0tt' ) ctry = ctry+9 end subroutine stats_init_yavg_vel