dwmax_mod.f
31 lines · 1 definitions · on GitHub (7be4133)
Python version: dwmax_mod.py, 18 lines, on the right (switch to Python above the code).
Purpose
DWMAX_MOD holds the critical rotation gradient for the shear instability at each shell, and its value at the start of the step, shared by PHYSIC and HPOINT. It replaces COMMON/DWMAX/ (MHP via Claude, 10/14/26); JSON comes from DIMENSIONS_MOD.
What its variables hold, who sets them, who reads them.
QWRMAX(JSON): the critical $d\Omega/d\ln r$ (Endal and Sofia 1978, as PHYSIC's comments cite), set byPHYSICfor the interface between shellsIM-1andIM: 0 where both shells are convective or the root is not real (physic.f, lines 155–186↗). Read only byHPOINT, to copy it (hpoint.f, line 855↗), so PHYSIC's computation reaches nothing (so also atrp_1): unused?QWRMX0(JSON): the start-of-step copy, made byHPOINTwhen it saves the old model; read nowhere: unused?
Design
A blanket USE DWMAX_MOD. SECULR has a local array of the same name, QWRMAX, which SETUPV fills for the angular momentum transport; it is not this module's. At rp_1, MIDMOD also declared the block without using it.
Definitions
moduleDWMAX_MOD
Uses modules DIMENSIONS_MOD
Change log
The changes since rp_1
Changed since rp_1. New file: COMMON/DWMAX/ as a module (MIDMOD's unused declaration dropped).