egridder_mod.f
33 lines · 1 definitions · on GitHub (7be4133)
Python version: egridder_mod.py, 22 lines, on the right (switch to Python above the code).
Purpose
EGRIDDER_MOD holds the coefficients of the higher-derivative terms of the diffusion-plus-advection treatment of angular momentum (LDIFAD), shared by SETUPV, VCIRC and DADCOEFT. It replaces COMMON/EGRIDDER/ (MHP via Claude, 10/14/26); JSON comes from DIMENSIONS_MOD.
What its variables hold, who sets them, who reads them.
QQCOD(JSON): $\tfrac23\,r^4/(G\,m)$-type factors at each shell (CC23*RM**4/CG/HS3), set bySETUPV;VCIRCmultiplies them by $\Omega$ (WM) intoEQQCOD.EQQCOD(JSON): read byDADCOEFTas the coefficients of its $d^2\Omega/dr^2$ rows.QQQCOD(JSON): factors set bySETUPV(HTM,HTP, setupv.f, line 410↗, setupv.f, line 435↗); read nowhere: unused?EQQQCOD(JSON): read byDADCOEFTas the coefficients of its $d^3\Omega/dr^3$ rows (dadcoeft.f, lines 371–373↗), but set by no routine (so atrp_1too), so those coefficients are zero. This gap is part of DADCOEFT's suspected bug 1, whose possible fix namesQQQCODas the model-grid version to map onto the even grid (only withLDIFAD, off by default).
Design
A blanket USE EGRIDDER_MOD. The pairs mirror each other: VCIRC turns QQCOD into EQQCOD, but nothing turns QQQCOD into EQQQCOD, the same gap as in DIFAD3_MOD.
Definitions
moduleEGRIDDER_MOD
Uses modules DIMENSIONS_MOD
Change log
The changes since rp_1
Changed since rp_1. New file: COMMON/EGRIDDER/ as a module.