earth-system-radiation / rte-rrtmgp

RTE+RRTMGP is a set of codes for computing radiative fluxes in planetary atmospheres.
BSD 3-Clause "New" or "Revised" License
74 stars 65 forks source link

Fortran front-end: encapsulate orientation #287

Closed RobertPincus closed 3 months ago

RobertPincus commented 3 months ago

Introduces a top_at_1 variable encoding the vertical orientation to ty_optical_props_arry i.e. optical properties stored as array of values. The value is set by gas_optics() but could also be set by hand with op%set_top_at_1(). It's undefined by default which could lead to mischief.