Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doxygen for BNDLYR.f #408

Merged
merged 5 commits into from
Oct 28, 2021
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
106 changes: 43 additions & 63 deletions sorc/ncep_post.fd/BNDLYR.f
Original file line number Diff line number Diff line change
@@ -1,69 +1,49 @@
!> @file
!> @brief Subroutine that computes boundary layer fields.
!
!> Computes constant mass mean fields
!>
!!
!! SUBPROGRAM: BNDLYR COMPUTES CONSTANT MASS MEAN FIELDS
!! PRGRMMR: TREADON ORG: W/NP2 DATE: 93-01-29
!!
!! ABSTRACT: THIS ROUTINE COMPUTES CONSTANT MASS (BOUNDARY LAYER)
!! FIELDS. THE FIELDS ARE A MEAN OVER LAYERS PARAMETER DPBND
!! (PASCALS) THICK. THERE ARE NBND CONSTANT MASS LAYERS, EACH
!! DPBND THICK STARTING FROM THE SURFACE UP. COMPUTED BOUNDARY
!! LAYER FIELDS ARE PRESSURE, TEMPERATURE, SPECIFIC HUMIDITY,
!! RELATIVE HUMIDITY, U AND V WINDS, VERTICAL VELOCITY,
!! AND PRECIPITABLE WATER. GIVEN THESE FUNDAMENTAL VARIABLES
!! OTHER FIELDS MAY BE COMPUTED.
!!
!! ***WARNING*** IF YOU CHANGE PARAMETER NBND IN THIS ROUTINE
!! DON'T FOREGET TO CHANGE IT ALSO IN THE CALLING
!! SUBPROGRAM, MISCLN.
!!
!! PROGRAM HISTORY LOG:
!! 93-01-29 RUSS TREADON
!! 93-05-07 RUSS TREADON - ADDED DOC BLOCK AND MORE COMMENTS.
!! 93-06-19 RUSS TREADON - ADDED LVLBND TO PARAMETER LIST.
!! 96-03-07 MIKE BALDWIN - CHANGE PWTR CALC TO INCLUDE CLD WTR
!! SPEED UP CODE
!! 98-06-16 T BLACK - CONVERSION FROM 1-D TO 2-D
!! 98-08-18 MIKE BALDWIN - CHANGE QSBND TO RHBND IN CALL,
!! COMPUTE RH OVER ICE
!! 98-12-22 MIKE BALDWIN - BACK OUT RH OVER ICE
!! 00-01-04 JIM TUCCILLO - MPI VERSION
!! 02-01-15 MIKE BALDWIN - WRF VERSION
!! 20-11-10 JESSE MENG - USE UPP_PHYSICS MODULE
!! 21-08-20 Wen Meng - Retrict computation fro undefined points.
!!
!! USAGE: CALL BNDLYR(PBND,TBND,QBND,RHBND,UBND,VBND,
!! WBND,OMGBND,PWTBND,QCNVBND)
!!
!! INPUT ARGUMENT LIST:
!! NONE
!!
!! OUTPUT ARGUMENT LIST:
!! PBND - LAYER MEAN PRESSURE IN NBND BOUNDARY LAYERS (NBL).
!! TBND - LAYER MEAN TEMPERATURE IN NBL.
!! QBND - LAYER MEAN SPECIFIC HUMIDITY IN NBL.
!! RHBND - LAYER MEAN RELATIVE HUM. (QBND/QSBND) IN NBL.
!! UBND - LAYER MEAN U WIND COMPONENT IN NBL.
!! VBND - LAYER MEAN V WIND COMPONENT IN NBL.
!! WBND - LAYER MEAN W WIND COMPONENT IN NBL.
!! OMGBND - LAYER MEAN VERTICAL VELOCITY IN NBL.
!! PWTBND - LAYER PRECIPITABLE WATER IN NBL.
!! LVLBND - ETA LAYER AT MIDPOINT OF NBL.
!! QCNVBND - LAYER MOISTURE CONVERGENCE IN NBL.
!!
!! OUTPUT FILES:
!! NONE
!!
!! SUBPROGRAMS CALLED:
!! UTILITIES:
!!
!! LIBRARY:
!!
!! ATTRIBUTES:
!! LANGUAGE: FORTRAN 90
!! MACHINE : CRAY C-90
!!
!> THIS ROUTINE COMPUTES CONSTANT MASS (BOUNDARY LAYER)
!> FIELDS. THE FIELDS ARE A MEAN OVER LAYERS PARAMETER DPBND
!> (PASCALS) THICK. THERE ARE NBND CONSTANT MASS LAYERS, EACH
!> DPBND THICK STARTING FROM THE SURFACE UP. COMPUTED BOUNDARY
!> LAYER FIELDS ARE PRESSURE, TEMPERATURE, SPECIFIC HUMIDITY,
!> RELATIVE HUMIDITY, U AND V WINDS, VERTICAL VELOCITY,
!> AND PRECIPITABLE WATER. GIVEN THESE FUNDAMENTAL VARIABLES
!> OTHER FIELDS MAY BE COMPUTED.
edwardhartnett marked this conversation as resolved.
Show resolved Hide resolved
!>
!> ***WARNING*** IF YOU CHANGE PARAMETER NBND IN THIS ROUTINE
!> DON'T FOREGET TO CHANGE IT ALSO IN THE CALLING
!> SUBPROGRAM, MISCLN.
!>
!> @param[out] PBND - LAYER MEAN PRESSURE IN NBND BOUNDARY LAYERS (NBL).
!> @param[out] TBND - LAYER MEAN TEMPERATURE IN NBL.
!> @param[out] QBND - LAYER MEAN SPECIFIC HUMIDITY IN NBL.
!> @param[out] RHBND - LAYER MEAN RELATIVE HUM. (QBND/QSBND) IN NBL.
!> @param[out] UBND - LAYER MEAN U WIND COMPONENT IN NBL.
!> @param[out] VBND - LAYER MEAN V WIND COMPONENT IN NBL.
!> @param[out] WBND - LAYER MEAN W WIND COMPONENT IN NBL.
!> @param[out] OMGBND - LAYER MEAN VERTICAL VELOCITY IN NBL.
!> @param[out] PWTBND - LAYER PRECIPITABLE WATER IN NBL.
!> @param[out] LVLBND - ETA LAYER AT MIDPOINT OF NBL.
!> @param[out] QCNVBND - LAYER MOISTURE CONVERGENCE IN NBL.
WenMeng-NOAA marked this conversation as resolved.
Show resolved Hide resolved
!>
!> Program History
!> - 93-01-29 RUSS TREADON
!> - 93-05-07 RUSS TREADON - ADDED DOC BLOCK AND MORE COMMENTS.
!> - 93-06-19 RUSS TREADON - ADDED LVLBND TO PARAMETER LIST.
!> - 96-03-07 MIKE BALDWIN - CHANGE PWTR CALC TO INCLUDE CLD WTR
!> SPEED UP CODE
!> - 98-06-16 T BLACK - CONVERSION FROM 1-D TO 2-D
!> - 98-08-18 MIKE BALDWIN - CHANGE QSBND TO RHBND IN CALL,
!> COMPUTE RH OVER ICE
!> - 98-12-22 MIKE BALDWIN - BACK OUT RH OVER ICE
!> - 00-01-04 JIM TUCCILLO - MPI VERSION
!> - 02-01-15 MIKE BALDWIN - WRF VERSION
!> - 20-11-10 JESSE MENG - USE UPP_PHYSICS MODULE
!> - 21-08-20 Wen Meng - Retrict computation fro undefined points.
!>
!> @author Russ Treadon W/NP2 @date 1993-01-29
SUBROUTINE BNDLYR(PBND,TBND,QBND,RHBND,UBND,VBND, &
WBND,OMGBND,PWTBND,QCNVBND,LVLBND)

Expand Down