Loading [MathJax]/extensions/tex2jax.js
PISM, A Parallel Ice Sheet Model 2.2.2-d6b3a29ca committed by Constantine Khrulev on 2025-03-28
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages

◆ solve() [1/2]

void pism::TridiagonalSystem::solve ( unsigned int  system_size,
double result 
)

The actual code for solving a tridiagonal system.

This is modified slightly from a Numerical Recipes version.

Input size n is size of instance. Requires n <= TridiagonalSystem::m_max_system_size.

Solution of system in x.

Definition at line 215 of file ColumnSystem.cc.

References pism::RuntimeError::formatted(), pism::k, m_D, m_L, m_max_system_size, m_rhs, m_U, m_work, and PISM_ERROR_LOCATION.