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).
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.ROTGRIDinterpolates them onto the even grid fromVESA,VESD(DIFAD2_MOD), adds the composition diffusion coefficient toECOD4and rescales both;DADCOEFTrecomputes them in its iterations and builds its band matrix from them;DCOEFTreads them;CHECKJprints them.
Design
A blanket USE DIFAD_MOD.
Definitions
moduleDIFAD_MOD
Uses modules DIMENSIONS_MOD
Change log
The changes since rp_1
Changed since rp_1. New file: COMMON/DIFAD/ as a module.