disk_mod.f
26 lines · 1 definitions · on GitHub (7be4133)
Python version: disk_mod.py, 10 lines, on the right (switch to Python above the code).
Variables on this page (1)
Purpose
DISK_MOD holds SAGE, the star's age, which the rotation routines compare with the disk-locking time, shared by 5 routines. It replaces what is left of COMMON/DISK/ (MHP via Claude, 10/14/26): the disk-locking switch and parameters LDISK, TDISK, PDISK are namelist variables now in NMLPAR_MOD.
What its variable holds, who sets it, who reads it.
SAGE(REAL*8): the total ageDAGE(Gyr), stored by the main program after each model ("MHP 9/94 store total age in SAGE"). Read byGETW,SECULRandSOLID, which hold the surface rotation locked whileLDISKandSAGE≤TDISK, and byMDOT, which withLDISKand accretion shortens the step so that it ends atTDISK.
Design
A blanket USE DISK_MOD. Since SAGE is set after the model is computed, the routines of the next step see the age at the start of that step.
Definitions
moduleDISK_MOD
Used by (5 units)
(file level), GETW, MDOT, SECULR, SOLID
Change log
The changes since rp_1
Changed since rp_1. New file: SAGE of COMMON/DISK/ as a module; LDISK, TDISK, PDISK moved to NMLPAR_MOD.