|
flow 1.4.0
Kokkos cut-cell IBM incompressible Navier-Stokes solver + pnm pore extraction
|
Functions | |
| load (path) | |
| meanfree_eigs (M) | |
| main (dirs) | |
Variables | |
| int | MAGIC = 0x50434D47444E5331 |
G-D2 (b), (c) of doc/vof_projection_cost_design.md §13: the FP32 V-cycle against the FP64 one.
Reads the dense preconditioners `mg_dense_precond` writes for the same configuration with the
double operator (`M_double_*`, today's FP64 V-cycle) and with `--precision fp32` (`M_vf32_*`, the
FP32 V-cycle of §4), and checks per configuration:
(b) no new indefiniteness: lambda_min(sym(M_fp32)) on the mean-free subspace
>= lambda_min(sym(M_fp64)) - 1e-3 * lambda_max(sym(M_fp64));
(c) ||M_fp32 - M_fp64||_F / ||M_fp64||_F <= 1e-4 at ratio <= 1e3, <= 1e-3 at 1e4.
The mean-free subspace is spanned by an orthonormal basis of 1^perp (every configuration here is
one connected fluid component), so the exact null direction of M does not enter lambda_min.
Usage: python mg_precond_fp32cmp.py <dir> [more dirs...]; last line G-D2 PASS|FAIL, exit 0 iff PASS.
| mg_precond_fp32cmp.load | ( | path | ) |
Definition at line 25 of file mg_precond_fp32cmp.py.
Referenced by main().
| mg_precond_fp32cmp.meanfree_eigs | ( | M | ) |
Definition at line 35 of file mg_precond_fp32cmp.py.
Referenced by main().
| mg_precond_fp32cmp.main | ( | dirs | ) |
Definition at line 44 of file mg_precond_fp32cmp.py.
References load(), main(), and meanfree_eigs().
| int mg_precond_fp32cmp.MAGIC = 0x50434D47444E5331 |
Definition at line 22 of file mg_precond_fp32cmp.py.