difad2_mod.f
33 lines · 1 definitions · on GitHub (7be4133)
Python version: difad2_mod.py, 20 lines, on the right (switch to Python above the code).
Purpose
DIFAD2_MOD holds the advective and diffusive parts of the meridional circulation velocity at each shell, for the diffusion-plus-advection treatment of angular momentum (LDIFAD), shared by 3 routines. It replaces COMMON/DIFAD2/ (MHP via Claude, 10/14/26); JSON comes from DIMENSIONS_MOD.
What its variables hold, who sets them, who reads them.
VESA(JSON),VESD(JSON): the advective (signed) and diffusive parts, set byVCIRC(and rescaled there by the μ-gradient factor); read byROTGRID, which interpolates them intoECOD3,ECOD4(DIFAD_MOD), and printed byCHECKJ.VESA0(JSON),VESD0(JSON): their values from the previous call, saved and read byVCIRCalone.
Design
A blanket USE DIFAD2_MOD.
Definitions
moduleDIFAD2_MOD
Uses modules DIMENSIONS_MOD
Change log
The changes since rp_1
Changed since rp_1. New file: COMMON/DIFAD2/ as a module.