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

difad_mod.f

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

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

Variables on this page (3)

ecod3, ecod4, json

Purpose

DIFAD_MOD holds the advective and diffusive coefficients of angular momentum transport on the even grid, used when transport is treated as diffusion plus advection (LDIFAD), shared by 4 routines. It replaces COMMON/DIFAD/ (MHP via Claude, 10/14/26); JSON comes from DIMENSIONS_MOD.

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

  • ECOD3(JSON), ECOD4(JSON): the advective and diffusive coefficients. ROTGRID interpolates them onto the even grid from VESA, VESD (DIFAD2_MOD), adds the composition diffusion coefficient to ECOD4 and rescales both; DADCOEFT recomputes them in its iterations and builds its band matrix from them; DCOEFT reads them; CHECKJ prints them.

Design

A blanket USE DIFAD_MOD.

Definitions

moduleDIFAD_MOD

lines 19–31 · GitHub

Uses modules DIMENSIONS_MOD

Used by (4 units)

CHECKJ, DADCOEFT, DCOEFT, ROTGRID

Change log

The changes since rp_1

Changed since rp_1. New file: COMMON/DIFAD/ as a module.