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

intvar_mod.f

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

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

Variables on this page (12)

alm, delami, delmi, dm, epsilm, hgm, hs3, json, pm, qdtmi, rm, tm

Purpose

INTVAR_MOD holds the structure variables at the interfaces between shells (the midpoints in radius), for the rotation routines, shared by SETUPV, VCIRC, GETFC and SECULR. It replaces COMMON/INTVAR/ (MHP via Claude, 10/14/26); JSON comes from DIMENSIONS_MOD. All members are arrays of JSON.

What its variables hold, who sets them, who reads them. All are set by SETUPV:

  • RM: the radius of the interface between shells I-1 and I, the mean of the two shells' radii.
  • At each interface, by four-point Lagrangian interpolation in radius (the first and last interfaces from the first and last four points): PM, TM, DM ($P$, $T$, $\rho$, unlogged), ALM ($L$, cgs), HS3 (the mass), HGM (gravity), DELMI, DELAMI (the radiative and adiabatic gradients), QDTMI (a thermodynamic derivative), EPSILM (the energy generation rate).
  • SETUPV uses them to build the circulation coefficients; VCIRC reads RM, HGM, ALM; GETFC reads RM, DM; SECULR reads RM.

Design

A blanket USE INTVAR_MOD. At rp_1, CODIFF also declared the block without using it.

Definitions

moduleINTVAR_MOD

lines 19–40 · GitHub

Uses modules DIMENSIONS_MOD

Used by (4 units)

GETFC, SECULR, SETUPV, VCIRC

Change log

The changes since rp_1

Changed since rp_1. New file: COMMON/INTVAR/ as a module (CODIFF's unused declaration dropped).