atmos2_mod.f
36 lines · 1 definitions · on GitHub (7be4133)
Python version: atmos2_mod.py, 20 lines, on the right (switch to Python above the code).
Purpose
ATMOS2_MOD holds the surface-pressure table read when KTTAU is 3 or 4 (used only with 3; see below): $\log P$ on a grid of 57 values of $\log T_\mathrm{eff}$ and 11 of $\log g$. It replaces COMMON/ATMOS2/ (MHP via Claude, 10/14/26); the sizes NG, NT are private.
What its variables hold, who sets them, who reads them. SETUPS reads them all from the file FATM: ATMZ, the table's metallicity; ATMTL(NT), the $\log T_\mathrm{eff}$ grid; ATMGL(NG), the $\log g$ grid; ATMPL(NT,NG), $\log P$. SURFP interpolates in them. ATMZ is read by no routine; SETUPS also stores in it the metallicity of the KTTAU = 5 table (ATMOS2C_MOD).
Why KTTAU = 4 loads it. With KTTAU = 4 (Allard atmospheres, ALFILEIN, ALSURFP) SETUPS reads this Kurucz table too, but no routine then uses it: above the Allard table's top $T_\mathrm{eff}$ (AL_TEFFLmax, ALATM05_MOD), or off its gravities, SURFBC and ENVINT switch to the gray atmosphere (KTTAU = 0), not to Kurucz, although ALSURFP's header names Kurucz (KTTAU = 3) as a fallback the caller could choose.
Definitions
moduleATMOS2_MOD
Change log
The changes since rp_1
Changed since rp_1. New file: COMMON/ATMOS2/ as a module.