PyREC scaffolding (from YREC development, 7be4133)/ alprint.fGlossary

alprint.f

84 lines · 1 definitions · on GitHub (7be4133)

Python version: alprint.py, 71 lines, on the right (switch to Python above the code).

Variables on this page (18)

glmax, glmin, gls, glxmax, glxmin, iglmax, iglmin, ishort, nalpha, nfeh, ngl, nteff, p100ls, pls, t100ls, tefflmax, tefflmin, teffls

Purpose

A diagnostic print of the Allard atmosphere table: its sizes, its limits, and the three tables ($\log P$ at $T_\mathrm{eff}$, $\log P$ and $\log T$ at $\tau = 100$), one row per $T_\mathrm{eff}$, with each row's valid range in $\log g$.

How it fits

  • Who calls it: only ALTABINIT, and only when it finds the table bad, just before the run stops.
  • Inputs: ALATM01_MOD (filled by ALFILEIN) and ALATM02_MOD (filled by ALTABINIT).
  • Output: text to unit ISHORT (from IOUNITS_MOD).

Design

Besides printing, it recomputes TEFFLmin and TEFFLmax in ALATM02_MOD, with the same formulas as ALTABINIT, so it has a (harmless) side effect.

Definitions

subroutineALPRINT

lines 9–83 · GitHub

Prints the Allard table and its auxiliary limits to ISHORT.

Uses modules ALATM01_MOD, ALATM02_MOD, IOUNITS_MOD

Called by ALTABINIT

Compiler warnings (1)

gfortran -Wall -Wextra, compiling only; nothing was run.

  • line 25: Unused variable ‘laltptau100’ declared [-Wunused-variable]

Change log

The changes since rp_1

Changed since rp_1. Declarations only: COMMON blocks to modules (/ALATM01/, /ALATM02/, /LUOUT/ to IOUNITS_MOD; the unused /ALATM03/ and /ALATM04/ dropped, though a stray declaration of LALTPTau100 remains, unused? (line 25↗)), IMPLICIT NONE.