3 use,
intrinsic :: ieee_arithmetic, only: ieee_is_nan
21 logical,
intent(in) :: full_stress_formulation
22 logical,
intent(in),
optional :: strict_convergence
23 character(len=LOG_SIZE) :: log_buf
27 if (full_stress_formulation) n = 2
30 call ksp_results(1)%print_header()
32 call ksp_results(i)%print_result(time%tstep)
37 if (ieee_is_nan(ksp_results(i)%res_final))
then
38 call neko_error(
"Fluid solver diverged for " // &
39 trim(ksp_results(i)%name))
42 if (
present(strict_convergence))
then
44 if (.not. ksp_results(i)%converged)
then
45 log_buf =
'Fluid solver did not converge for ' &
46 // trim(ksp_results(i)%name)
48 if (strict_convergence)
then
Auxiliary routines for fluid solvers.
subroutine, public fluid_step_info(time, ksp_results, full_stress_formulation, strict_convergence)
Prints for prs, velx, vely, velz the following: Number of iterations, start residual,...
Implements the base abstract type for Krylov solvers plus helper types.
integer, parameter, public log_size
Module with things related to the simulation time.
subroutine, public neko_warning(warning_msg)
Reports a warning to standard output.
Type for storing initial and final residuals in a Krylov solver.
A struct that contains all info about the time, expand as needed.