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).
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 bySTARIN). Read byWTIME(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 intoHJM,R0,ETA2by HPOINT itself.HGO: gravity, read byMIDMOD(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
Uses modules DIMENSIONS_MOD
Change log
The changes since rp_1
Changed since rp_1. New file: COMMON/OLDROT/ as a module.