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

dpmix_mod.f

28 lines · 1 definitions · on GitHub (7be4133)

Python version: dpmix_mod.py, 13 lines, on the right (switch to Python above the code).

Variables on this page (3)

iov1, iov2, iovim

Purpose

DPMIX_MOD holds the extent of the overshoot region below a convection zone and the index of the shell being computed, so that TPGRAD can use the adiabatic gradient there; shared by 6 routines. It replaces what is left of COMMON/DPMIX/ (MHP via Claude, 10/14/26): the block's overshoot and semiconvection parameters (DPENV, ALPHAC, ALPHAE, ALPHAM, BETAC, LOVSTC, LOVSTE, LOVSTM, LSEMIC, LADOV, LOVMAX) are namelist variables now in NMLPAR_MOD.

What its variables hold, who sets them, who reads them.

  • IOV1, IOV2 (INTEGER*4): the first and last shells of the overshoot region, set by OVERSH (−1 when there is none; "DBG 8/94 store position of overshoot for adiabatic extension").
  • IOVIM: the shell for which the gradient is wanted, set just before the call by COEFFT, PHYSIC, QENV and STARIN.
  • All three are read only by TPGRAD: with LADOV, a radiative shell with IOV1 ≤ IOVIM ≤ IOV2 (and IOVIM ≠ −1) takes $\nabla = \nabla_\mathrm{ad}$.

Design

A blanket USE DPMIX_MOD. The shell index reaches TPGRAD through the module rather than as an argument; QENV, which works in the envelope, sets it too.

Definitions

moduleDPMIX_MOD

lines 19–28 · GitHub

Used by (6 units)

COEFFT, OVERSH, PHYSIC, QENV, STARIN, TPGRAD

Change log

The changes since rp_1

Changed since rp_1. New file: IOV1, IOV2, IOVIM of COMMON/DPMIX/ as a module; the block's parameters moved to NMLPAR_MOD.