|
flow 1.4.0
Kokkos cut-cell IBM incompressible Navier-Stokes solver + pnm pore extraction
|
ctest pressure_restart: the FP64 restart of a non-converged FP32-preconditioned PCG / FCG solve under 'auto' (doc/vof_projection_distributed_design.md §4, gate G-R (a)-(g) of §8). More...
#include <cmath>#include <cstdio>#include <cstring>#include <Kokkos_Core.hpp>#include <memory>#include <stdexcept>#include <string>#include <vector>#include "flow_ibm.hpp"#include "mg_fp32_problems.hpp"Go to the source code of this file.
Functions | |
| int | main (int argc, char **argv) |
ctest pressure_restart: the FP64 restart of a non-converged FP32-preconditioned PCG / FCG solve under 'auto' (doc/vof_projection_distributed_design.md §4, gate G-R (a)-(g) of §8).
CutcellMG level, on the column, cyl and pack problems of mg_fp32_vcycle (mg_fp32_problems.hpp), PCG and FCG, rtol 1e-10, cap 200, with the C++ fault hook CutcellMG::debugSetFp32Fault (kind 1: NaN exit scale on the at-th FP32 V-cycle of an attempt; kind 2: an FP32 attempt runs at most at iterations): (a) 'auto', kind 1 at 3: x memcmp-equal to the 'fp64' cold solve, the same iterations and failure flag (false wherever 'fp64' itself does not break down), one restart, the last V-cycle FP64; where the unfaulted FP32 attempt caps or breaks down by itself (cyl, pack at 1e4) the unfaulted 'auto' solve is checked the same way (a natural restart); (b) 'auto', kind 2 at 2: as (a), and 2 discarded iterations; (c) forced 'fp32', kind 1 at 3 / kind 2 at 2: no restart; the failure flag set / 2 iterations; (d) 'fp64' with either fault: bitwise the solve without it; (e) set_pressure_strict + 'auto' + kind 1 (at 1: the initial guard, the throw site): no throw, (a) holds; strict + forced 'fp32' + kind 1 at 1: throws; (f) after (a) the next 'auto' solve runs FP64 with no restart; after setVcyclePrecision(auto) the next solve runs FP32 and is bitwise a fresh 'auto' solve. Assembled (g): a periodic VoF bubble (ratio 100, momentum-consistent transport, the exact level-0 operator, so the D5 deferral is live), 'auto' + 'projected' history 2, kind 1 at 3 on step 4: step 4's p is memcmp-equal to an 'fp64' + 'zero' step from the same state, and the history count advances (it is not reset).
Definition in file test_pressure_restart.cpp.
| int main | ( | int | argc, |
| char ** | argv ) |
Definition at line 244 of file test_pressure_restart.cpp.
References peclet_flow_fp32_problems::columnProblem(), peclet_flow_fp32_problems::cylProblem(), fails, and peclet_flow_fp32_problems::packProblem().