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

intrp2.f

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

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

Purpose

INTRP2 returns the weights of 4-point Lagrange interpolation at a point $x$, without the derivative weights: the same as INTERP minus its C output.

How it fits

Called by the opacity-table routines ALEX06TAB, GETOPAL95, OP95XTAB and OP95ZTAB (ALX8TH, ALXZTAB and YALO3D also called it; removed since rp_1), by the diffusion regridding EQUAL_TO_MODEL and MICRODIFF_ETM, and by PHYSIC. No COMMON blocks, no calls.

The header has a typo and a copied comment. The banner says "INTEP2" (line 4↗), and the comment, copied from INTERP, still speaks of the VandenBerg opacity tables only (lines 15–17↗).

The method

$B_i(x) = \prod_{j\ne i}(x-a_j)/(a_i-a_j)$ for $i = 1..4$.

Definitions

subroutineINTRP2

lines 6–37 · GitHub

4-point Lagrange weights only.

Called by ALEX06TAB ×2, EQUAL_TO_MODEL, GETOPAL95 ×3, MICRODIFF_ETM, OP95XTAB, OP95ZTAB ×3, PHYSIC

Change log

The changes since rp_1

Changed since rp_1. Declarations only: IMPLICIT NONE with explicit declarations. Three of its callers (ALX8TH, ALXZTAB, YALO3D) are removed since rp_1.