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

quadru_mod.f

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

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

Variables on this page (3)

gg, json, quad

Purpose

QUADRU_MOD holds the quadrupole moment of a rotating star's potential at each shell and the gravity it goes with. Shared by 3 routines. It replaces COMMON/QUADRU/ (MHP via Claude, 10/14/26); JSON comes from DIMENSIONS_MOD.

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

  • QUAD(JSON): the quadrupole moment, the solution U of GETQUA's tridiagonal system; GG(JSON): the local gravity HG that GETQUA used. Read by VCIRC (the factor RAT in QUADD_MOD) and, for QUAD(M) at the surface, by GETW, which prints it.

Design

A blanket USE QUADRU_MOD in each routine.

Definitions

moduleQUADRU_MOD

lines 19–31 · GitHub

Uses modules DIMENSIONS_MOD

Used by (3 units)

GETQUA, GETW, VCIRC

Change log

The changes since rp_1

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