xrng4.f
24 lines · 1 definitions · on GitHub (7be4133)
Python version: xrng4.py, 29 lines, on the right (switch to Python above the code).
Purpose
XRNG4 chooses four consecutive table indices around index JX in a table of NUMX entries, for 4-point interpolation: JX1 to JX2 = JX-1 to JX+2, shifted to 1..4 near the start and to NUMX-3..NUMX near the end.
How it fits
Called only by GTPURZ, the pure-Z opacity table's interpolation (GTLAOL and GTLAOL2, which also called it, are removed since rp_1 with the LAOL89 tables). No COMMON blocks.
Definitions
subroutineXRNG4
Four consecutive indices around JX, kept inside 1..NUMX.
Called by GTPURZ
Change log
The changes since rp_1
Changed since rp_1. Declarations only: IMPLICIT NONE; its other callers, GTLAOL and GTLAOL2, are removed.