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

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).

Variables on this page (5)

json, vesa, vesa0, vesd, vesd0

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 by VCIRC (and rescaled there by the μ-gradient factor); read by ROTGRID, which interpolates them into ECOD3, ECOD4 (DIFAD_MOD), and printed by CHECKJ.
  • VESA0(JSON), VESD0(JSON): their values from the previous call, saved and read by VCIRC alone.

Design

A blanket USE DIFAD2_MOD.

Definitions

moduleDIFAD2_MOD

lines 19–33 · GitHub

Uses modules DIMENSIONS_MOD

Used by (3 units)

CHECKJ, ROTGRID, VCIRC

Change log

The changes since rp_1

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