|
1D Heat Equation Solver 1.0
Computational Methods Assignment 2025
|
Implementation of the uniform 1D grid and its validator. More...

Go to the source code of this file.
Functions | |
| bool | validate_grid (const Grid &g, double tol) |
| Validate grid consistency (assertions in Debug mode). | |
Implementation of the uniform 1D grid and its validator.
Definition in file grid.cpp.
| bool validate_grid | ( | const Grid & | g, |
| double | tol = 1e-12 ) |
Validate grid consistency (assertions in Debug mode).
Checks endpoints, monotonicity, uniform spacing and Nx consistency.
| g | Grid to validate |
| tol | Tolerance for floating-point comparisons (default 1e-12) |
Definition at line 26 of file grid.cpp.
