gravez_mod.f
36 lines · 1 definitions · on GitHub (7be4133)
Python version: gravez_mod.py, 22 lines, on the right (switch to Python above the code).
Purpose
GRAVEZ_MOD holds the metals ($Z$) on the equally spaced radial grid of the older settling routine GRSETT, with their diffusion coefficients at the grid's points and midpoints, used with metal diffusion (LDIFZ). Shared by 5 routines. It replaces COMMON/GRAVEZ/ (MHP via Claude, 10/14/26); JSON comes from DIMENSIONS_MOD.
What its variables hold, who sets them, who reads them.
EZ(JSON): $Z$ at the grid points, interpolated from the model byMODEL_TO_EQUAL, advanced byLAX_WENDROF2, and turned into the change over the step byGRSETT(EZ - EZ_ORIG), whichEQUAL_TO_MODELapplies to the model's points.EZ_H(JSON): $Z$ at the midpoints, set byMODEL_TO_EQUALand byLAX_WENDROF1(the half step); read byGRSETT.ECOD1Z(JSON): the settling coefficient at the grid points, set byMODEL_TO_EQUAL, read byLAX_WENDROF1.ECOD1Z_H(JSON): the settling coefficient at the midpoints, set byMODEL_TO_EQUALand updated byGRSETTwith the half-step abundances (ECOD1Z_H + EZ_H*EQCOD1Z_H); read byLAX_WENDROF2.EQCOD1Z_H(JSON): the abundance-dependent part of that coefficient, set byMODEL_TO_EQUAL, read byGRSETT.ECOD2Z_H,EQCOD2Z_H(JSONeach): the diffusion coefficient and its abundance-dependent part at the midpoints, set byMODEL_TO_EQUAL(model_to_equal.f, lines 105–107↗; model_to_equal.f, lines 180–187↗); read nowhere (unused?), since the metals get only the explicit settling term (see GRSETT's notes).
Design
A blanket USE GRAVEZ_MOD. The hydrogen counterparts (EX, ECOD1, …) are arguments of the same routines; only the metals go through the module.
Definitions
moduleGRAVEZ_MOD
Uses modules DIMENSIONS_MOD
Used by (5 units)
EQUAL_TO_MODEL, GRSETT, LAX_WENDROF1, LAX_WENDROF2, MODEL_TO_EQUAL
Change log
The changes since rp_1
Changed since rp_1. New file: COMMON/GRAVEZ/ as a module.