35 use,
intrinsic :: ieee_arithmetic, only: ieee_is_nan
53 strict_convergence, allow_stabilization)
56 logical,
intent(in) :: full_stress_formulation
57 logical,
intent(in),
optional :: strict_convergence
58 logical,
intent(in),
optional :: allow_stabilization
59 logical :: converged, strict_conv, allow_stab
60 character(len=LOG_SIZE) :: log_buf
64 if (full_stress_formulation) n = 2
66 if (
present(strict_convergence))
then
67 strict_conv = strict_convergence
72 if (
present(allow_stabilization))
then
73 allow_stab = allow_stabilization
79 call ksp_results(1)%print_header()
81 call ksp_results(i)%print_result(time%tstep)
87 if (ieee_is_nan(ksp_results(i)%res_final))
then
88 call neko_error(
"Fluid solver diverged for " // &
89 trim(ksp_results(i)%name))
92 if (.not. ksp_results(i)%converged)
then
94 log_buf =
'Fluid solver did not converge for ' &
95 // trim(ksp_results(i)%name)
99 else if (strict_conv)
then
Auxiliary routines for fluid solvers.
subroutine, public fluid_step_info_reset_stabilized()
Resets the stabilized flag to false.
subroutine, public fluid_step_info(time, ksp_results, full_stress_formulation, strict_convergence, allow_stabilization)
Prints for prs, velx, vely, velz the following: Number of iterations, start residual,...
logical, public, protected stabilized
To track if the solver is stabilized.
Implements the base abstract type for Krylov solvers plus helper types.
type(log_t), public neko_log
Global log stream.
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.