temp2_mod.f
37 lines · 1 definitions · on GitHub (7be4133)
Python version: temp2_mod.py, 25 lines, on the right (switch to Python above the code).
Purpose
TEMP2_MOD holds the velocities of rotational mixing at each interface, computed by VCIRC and turned into diffusion coefficients by CODIFF. Shared by 5 routines. It replaces COMMON/TEMP2/ (MHP via Claude, 10/14/26); JSON comes from DIMENSIONS_MOD.
What its variables hold, who sets them, who reads them.
VES,VGSF,VSS,VMU(JSONeach): the Eddington–Sweet circulation, the Goldreich–Schubert–Fricke, the secular-shear and the $\mu$-current velocities, set byVCIRC(to 0 first). Read byCODIFF(the coefficientsCOD,COD2from the sumVES+VGSF+VSS),CHECKJ(which writes them) and, exceptVMU, byPUTSTOREandSTITCH(the stored model).VES0,VGSF0,VSS0: the previous iteration'sVES,VGSF,VSS, saved byVCIRCfrom the second iteration on, which then averages old and new values;CHECKJwritesVES0andVGSF0.HLE(JSON): a length scale, set to 0 at every interface byCODIFF(its assignments ofRMIDare commented out);CHECKJwrites it as "LENGTH."
Design
A blanket USE TEMP2_MOD in each routine.
Definitions
moduleTEMP2_MOD
Uses modules DIMENSIONS_MOD
Change log
The changes since rp_1
Changed since rp_1. New file: COMMON/TEMP2/ as a module.