Get relative residual with respect to first iteration residual
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(controltype), | intent(inout) | :: | control | Control parameters: iterations |
subroutine get_relative_resnorm(control)
!< Get relative residual with respect to first iteration residual
implicit none
type(controltype), intent(inout) :: control
!< Control parameters: iterations
if(control%current_iter<=Res_itr) Res_save=Res_abs
if(control%start_from/=0) then
Res_save=control%previous_Res
else
control%previous_Res = Res_save
end if
Res_rel = Res_abs/Res_save
end subroutine get_relative_resnorm