35 use,
intrinsic :: ieee_arithmetic, only: ieee_is_nan
56 logical,
intent(in),
optional :: strict_convergence
57 logical,
intent(in),
optional :: allow_stabilization
58 logical :: converged, strict_conv, allow_stab
59 character(len=LOG_SIZE) :: log_buf
62 if (
present(strict_convergence))
then
63 strict_conv = strict_convergence
68 if (
present(allow_stabilization))
then
69 allow_stab = allow_stabilization
75 call ksp_results%print_result(time%tstep)
79 if (ieee_is_nan(ksp_results%res_final))
then
80 call neko_error(
"Scalar solver diverged for " // trim(ksp_results%name))
83 if (.not. ksp_results%converged)
then
85 log_buf =
'Scalar solver did not converge for ' // trim(ksp_results%name)
89 else if (strict_conv)
then
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
Auxiliary routines for fluid solvers.
subroutine, public scalar_step_info(time, ksp_results, 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.
subroutine, public scalar_step_info_reset_stabilized()
Resets the stabilized flag to false.
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.