evaluate_residual Function

private function evaluate_residual(me, state, iScalar) result(res)

evaluate the residual For relative errors (defined in convergence%absoluteError ), the result is divided by the current status value

Arguments

TypeIntentOptionalAttributesName
type(tem_convergence_type), intent(inout) :: me

Convergence description

real(kind=rk), intent(in) :: state

Spatially reduced variable value

integer, intent(in) :: iScalar

Current scalar

Return Value real(kind=rk)

residual to check for convergence


Called by

proc~~evaluate_residual~~CalledByGraph proc~evaluate_residual evaluate_residual proc~tem_convergence_evaluate tem_convergence_evaluate proc~tem_convergence_evaluate->proc~evaluate_residual proc~tem_convergence_check_element tem_convergence_check_element proc~tem_convergence_check_element->proc~tem_convergence_evaluate proc~tem_convergence_check_point tem_convergence_check_point proc~tem_convergence_check_point->proc~tem_convergence_evaluate proc~tem_convergence_check tem_convergence_check proc~tem_convergence_check->proc~tem_convergence_check_element proc~tem_convergence_check->proc~tem_convergence_check_point

Contents


Variables

TypeVisibilityAttributesNameInitial
integer, private :: pos_lastState
real(kind=rk), private :: average