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

errmom_mod.f

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

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

Variables on this page (1)

toleri

Purpose

ERRMOM_MOD holds TOLERI, the relative tolerance of the iteration for the moment of inertia and the surface rotation rate, shared by CHECKJ and SOLID. It replaces COMMON/ERRMOM/ (MHP via Claude, 10/14/26).

What its variable holds, who sets it, who reads it.

  • TOLERI (REAL*8): $10^{-12}$, its initial value in the module (no namelist sets it). CHECKJ relaxes it to at least DJOK/100 around its call to GETROT in the early iterations and then restores it. SOLID iterates the surface $\Omega$ until the angular momentum of the convection zone matches within TOLERI (at most 20 tries).

Design

A blanket USE ERRMOM_MOD. The tolerance reaches GETROT's callees through the module rather than as an argument.

Definitions

moduleERRMOM_MOD

lines 19–30 · GitHub

Used by (2 units)

CHECKJ, SOLID

Change log

The changes since rp_1

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

Changed since a8a5950. TOLERI is given a value, $10^{-12}$: Nothing set it before, so SOLID's tolerance was 0 and every call ran all 20 Newton passes. This settles former question 1.