deuter_mod.f
33 lines · 1 definitions · on GitHub (7be4133)
Python version: deuter_mod.py, 22 lines, on the right (switch to Python above the code).
Purpose
DEUTER_MOD holds the deuterium burning rates, the mass accreted in the step and the base of the surface convection zone, shared by 11 routines. It replaces COMMON/DEUTER/ (MHP via Claude, 10/14/26); JSON comes from DIMENSIONS_MOD.
What its variables hold, who sets them, who reads them.
DRATE(JSON): the deuterium burning rate at each shell, set byDEUTRATE(zeroed inMIX); read byDBURNandMIDMOD.DRATE0(JSON): the rate at the start of the step, copied fromDRATEbyDEUTRATEon the first iteration (ITLVL= 1) and remapped byHPOINTwhen points are added; read byDBURNandMIDMOD.FMASSACC: the mass accreted in the step (DELM), set byMDOT; read byDBURN,DBURNMandLIBURN, which mix the accreted material's deuterium and lithium into the convection zone.JCZ: the shell at the base of the surface convection zone (JENV), set by the main program andMASSLOSS; read byDEUTRATE, which limits burning in the zone to the convective turnover time scale, andENGEB.
Design
A blanket USE DEUTER_MOD.
Definitions
moduleDEUTER_MOD
Uses modules DIMENSIONS_MOD
Change log
The changes since rp_1
Changed since rp_1. New file: COMMON/DEUTER/ as a module.