|
1D Heat Equation Solver 1.0
Computational Methods Assignment 2025
|
Uniform 1D spatial grid. More...
#include <vector>#include <cstddef>

Go to the source code of this file.
Classes | |
| struct | Grid |
| Uniform 1D grid on x ∈ [0, L], including both boundary nodes. More... | |
Functions | |
| bool | validate_grid (const Grid &g, double tol=1e-12) |
| Validate grid consistency (assertions in Debug mode). | |
Uniform 1D spatial grid.
Definition in file grid.hpp.
| 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.
