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

oldrot_mod.f

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

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

Variables on this page (7)

eta2x, hgo, hio, hjx, json, r0x, wold

Purpose

OLDROT_MOD holds the rotation of the model at the start of the step, on the new point distribution, shared by 6 routines. It replaces COMMON/OLDROT/ (MHP via Claude, 10/14/26); JSON comes from DIMENSIONS_MOD. All members are arrays of JSON.

What its variables hold, who sets them, who reads them. HPOINT saves them after it has remapped the model ("store the old model structure for use in diffusion"):

  • WOLD: $\Omega$ at the start of the step (also set by STARIN). Read by WTIME (the largest fractional change of $\Omega$, for the time step), CHECKJ (whether a gradient was positive before), GETW (the start of the first substep) and HPOINT.
  • HJX ($J/M$, "MHP 10/91 J/M stored in HJX"), R0X, ETA2X (the rotational distortion terms): interpolated onto the new grid and copied back into HJM, R0, ETA2 by HPOINT itself.
  • HGO: gravity, read by MIDMOD (interpolated to mid-step).
  • HIO: the moment of inertia, saved by HPOINT (hpoint.f, line 816↗); read nowhere: unused?

Design

A blanket USE OLDROT_MOD.

Definitions

moduleOLDROT_MOD

lines 19–35 · GitHub

Uses modules DIMENSIONS_MOD

Used by (6 units)

CHECKJ, GETW, HPOINT, MIDMOD, STARIN, WTIME

Change log

The changes since rp_1

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