|
flow 1.4.0
Kokkos cut-cell IBM incompressible Navier-Stokes solver + pnm pore extraction
|
ctest mg_line_relax: the zebra line smoother of doc/mg_depth_policy.md Amendment A2.4 (gate G-LR (5), A2.5), single rank, host and device backends. More...
#include <cmath>#include <cstdio>#include <cstring>#include <Kokkos_Core.hpp>#include <random>#include <string>#include <vector>#include "mac_cutcell_mg.hpp"#include "mg_fp32_problems.hpp"Go to the source code of this file.
Functions | |
| int | main (int argc, char **argv) |
ctest mg_line_relax: the zebra line smoother of doc/mg_depth_policy.md Amendment A2.4 (gate G-LR (5), A2.5), single rank, host and device backends.
Level: 32x32x25 (level 0 of a 2-level hierarchy, s = z: the line kernel takes s explicitly; also 32x32x2 and 32x32x3, the shortest columns a triggered level can have), s = z periodic and s = z between walls (x, y periodic). Face openness uniform in [0.05, 1], 5 % of the faces closed, and one SEALED column (every lateral face of the column (5, 7) closed: its column system is the singular 1-D Neumann / periodic Laplacian, which exercises the pivot guard and the Sherman-Morrison denominator guard). Checks, for each colour and both s BCs: FP64: one colour pass of CutcellMG::lineSmoothColor equals x + delta with delta the dense (cyclic) column solve of A_col delta = b - A x on every column of that colour (long double Gaussian elimination, partial pivoting) to 1e-12 relative (max |error| / max |delta| per column); the other colour's cells are bitwise unchanged; every value finite. FP32: the same on the FP32 face weights w_f = fl32(t_f) (lineSmoothColorFp32, in-kernel wrap), the reference built from the FP32 operands (D = fp32Diag, r in the flux form), to 1e-4 relative; x = c * 1, b = 0 bitwise unchanged for c in {1, -3.7, 1e5}; all finite. Wall weights: between walls the face coefficient on both wall planes is exactly 0 (FP64 AF_z and FP32 W_z), so the kernel's l_0 = u_{m-1} := 0 drops nothing.
Definition in file test_mg_line_relax.cpp.
| int main | ( | int | argc, |
| char ** | argv ) |
Definition at line 361 of file test_mg_line_relax.cpp.