envprt_mod.f
35 lines · 1 definitions · on GitHub (7be4133)
Python version: envprt_mod.py, 22 lines, on the right (switch to Python above the code).
Purpose
ENVPRT_MOD holds the state at the current point of the envelope integration, passed from QENV (the right-hand side) to ENVINT (the integrator), which stores it. It replaces COMMON/ENVPRT/ (MHP via Claude, 10/14/26). All members are REAL*8.
What its variables hold, who sets them, who reads them. QENV sets them at each call ("07/02 always store the basic structure variables"):
EP,ET,ED,ER: $\log P$, $\log T$, $\log\rho$, $\log r$;ES: $\log(m/M_*)$ (SL - STOTAL).EO: the opacity;EBETA: $\beta$;EVEL: the convective velocity;EDEL(3): the radiative and adiabatic gradients and the actual one (DELR,DELA,DEL);EFXION(3): the ionization fractions.ENVINTreads them to print the point and to store the envelope's run inENVSTRUCT_MOD.
Design
A blanket USE ENVPRT_MOD. QENV is called by the ODE solver through a fixed argument list, so its extra outputs go through the module. At rp_1, GETNEWENV and STARIN also declared the block without using it.
Definitions
moduleENVPRT_MOD
Change log
The changes since rp_1
Changed since rp_1. New file: COMMON/ENVPRT/ as a module (two unused declarations dropped).