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)
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).CHECKJrelaxes it to at leastDJOK/100 around its call toGETROTin the early iterations and then restores it.SOLIDiterates the surface $\Omega$ until the angular momentum of the convection zone matches withinTOLERI(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
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.