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

tridiag_gs.f

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

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

Variables on this page (1)

json

Purpose

TRIDIAG_GS solves a tridiagonal system $a_j x_{j-1} + b_j x_j + c_j x_{j+1} = e'_j$, $j = 1, \dots, n$ (the Thomas algorithm), with the matrix and right-hand side as arguments. A zero pivot stops the run, with the message "#TRIDIA:SINGULAR MATRIX."

How it fits

  • Who calls it: GRSETT (the new run of $X$ in gravitational settling, by its comment) and MICRODIFF_RUN (the new run of Li).
  • Output: the solution EX.
  • Modules: DIMENSIONS_MOD (the array size JSON) only.

Definitions

subroutineTRIDIAG_GS

lines 2–31 · GitHub

The Thomas algorithm for a tridiagonal system, with arrays of size JSON (5000, from DIMENSIONS_MOD) as arguments.

Uses modules DIMENSIONS_MOD

Called by GRSETT, MICRODIFF_RUN

Compiler warnings (1)

gfortran -Wall -Wextra, compiling only; nothing was run.

  • line 22: Equality comparison for REAL(8) [-Wcompare-reals]

Change log

The changes since rp_1

Changed since rp_1. Declarations only: JSON from DIMENSIONS_MOD, IMPLICIT NONE.