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

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)

sage

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 age DAGE (Gyr), stored by the main program after each model ("MHP 9/94 store total age in SAGE"). Read by GETW, SECULR and SOLID, which hold the surface rotation locked while LDISK and SAGE ≤ TDISK, and by MDOT, which with LDISK and accretion shortens the step so that it ends at TDISK.

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

lines 19–26 · GitHub

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.