Reference/Technical documentation

RTE and RRTMGP aspire to follow a set of coding conventions:

  • Module names start with mo_, class/type names with ty_.
  • Real variables are defined with working precision wp; logical variables with wl. Both Fortran KIND parameters are set in mo_rte_kind.F90
  • Most procedures in RTE and RRTMGP are functions which return a string. A non-empty string indicates an error of some kind.
  • RTE and RRTMGP operate on multiple columns (profiles) at once. Problems are dimensioned by column, layer, and spectral quadrature point.
  • RTE and RRTMGP are agnostic to vertical ordering
  • Units are MKS
  • Procedures (with the exception of testing code) do not perform I/O

Fortran user-facing class interfaces

RTE Fortran interface

RRTMGP Fortran interface

Kernel interfaces

RTE kernels: Fortran interface

RRTMGP kernels: Fortran interface