flow 1.4.0
Kokkos cut-cell IBM incompressible Navier-Stokes solver + pnm pore extraction
Loading...
Searching...
No Matches
test_mg_vcycle_symmetry.cpp File Reference

ctest mg_vcycle_symmetry: gate G-SYM of doc/mg_depth_policy.md Amendment A3 (A3.5), single rank, host and device backends – the symmetric pressure V-cycle (CutcellMG::setSymmetricVcycle: piecewise-constant prolongation P = c R^T of the cell-average restriction, palindromic smoothed bottom). More...

#include <cmath>
#include <cstdio>
#include <Kokkos_Core.hpp>
#include <string>
#include <vector>
#include "mac_cutcell_mg.hpp"
#include "mg_fp32_problems.hpp"

Go to the source code of this file.

Typedefs

using Level = CutcellMG::Level

Functions

int main (int argc, char **argv)

Detailed Description

ctest mg_vcycle_symmetry: gate G-SYM of doc/mg_depth_policy.md Amendment A3 (A3.5), single rank, host and device backends – the symmetric pressure V-cycle (CutcellMG::setSymmetricVcycle: piecewise-constant prolongation P = c R^T of the cell-average restriction, palindromic smoothed bottom).

Also the guard against reintroducing a prolongation that is not c R^T under a CG driver: a gate, not a grep.

Measure (D3 of gpu_diag/mgd/WO7_DIAG.md): a = |x^T M y - y^T M x| / (|x| |M y|) of the production V-cycle M (precondVcycle, the drivers' schedule pre = post = 2, bottom 12), x and y deterministic pseudo-random, closed cells zero, mean-free. Checks (switch on): a <= 1e-14 on the smoothed-bottom hierarchies thinW (64x64x4, z walls, a rho x 100 blob, 5 levels) with line relaxation on and off, the thin periodic slab (thinW periodic in z), the state_hash scalar hierarchy (16x16x4, x/y walls, z periodic, derived depth), 64^3 periodic and walled with a rho x 100 blob (5 levels), cylProblem (32^3, fractional-aperture cylinder, a rho x 1e4 blob), and an outflow-anchored channel (32x16x16, -x inflow, +x outflow, y/z walls, uniform); a <= 1e-8 with the agglomerated bottom (64^3 periodic blob, 4 levels, forced); the FP32 V-cycle (forced 'fp32' where eligible) on thinW: a <= 100 x its recorded value (host 3.582e-10, CUDA 1.154e-9: the FP32 face weights' rounding, not a structural asymmetry – with the trilinear FP32 prolongation it is 1.345e-4) and production PCG <= 18 (recorded 10; trilinear 140); production solvePCG (rhsOf, rtol 1e-10, zero guess, cap 500): thinW <= 16 (line relaxation on and off), thin periodic slab <= 14. The switch-off values are printed for reference (the trilinear V-cycle's a), not gated.

Definition in file test_mg_vcycle_symmetry.cpp.

Typedef Documentation

◆ Level

using Level = CutcellMG::Level

Definition at line 37 of file test_mg_vcycle_symmetry.cpp.

Function Documentation

◆ main()

int main ( int argc,
char ** argv )

Definition at line 223 of file test_mg_vcycle_symmetry.cpp.

References peclet_flow_fp32_problems::cylProblem(), and fails.