The Newton finish's iteration printout.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nlesolver_type), | intent(inout) | :: | me | |||
| real(kind=wp), | intent(in), | dimension(:) | :: | x |
the variables |
|
| real(kind=wp), | intent(in), | dimension(:) | :: | f |
the functions |
|
| integer, | intent(in) | :: | iter |
the iteration |
subroutine newton_export(me, x, f, iter) class(nlesolver_type),intent(inout) :: me real(wp),dimension(:),intent(in) :: x !! the variables real(wp),dimension(:),intent(in) :: f !! the functions integer,intent(in) :: iter !! the iteration integer :: m select type (me) type is (eclipse_newton_type) m = me%d%m_halo if (size(f) > m) then write(*,'(A,I4,A,ES12.4,A,ES12.4)') ' iter ', iter, ': continuity norm ', norm2(f(1:m)), & ', eclipse rows max |KS - phi_min| ', maxval(abs(f(m+1:))) else write(*,'(A,I4,A,ES12.4)') ' iter ', iter, ': continuity norm ', norm2(f(1:m)) end if class default error stop 'newton_export: invalid class' end select end subroutine newton_export