Return the status code and message from the nlesolver_type class.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nlesolver_type), | intent(inout) | :: | me | |||
| integer, | intent(out), | optional | :: | istat |
Integer status code. |
|
| character(len=:), | intent(out), | optional, | allocatable | :: | message |
Text status message |
subroutine get_status(me, istat, message) implicit none class(nlesolver_type),intent(inout) :: me integer,intent(out),optional :: istat !! Integer status code. character(len=:),allocatable,intent(out),optional :: message !! Text status message if (present(istat)) istat = me%istat if (present(message)) then if (allocated(me%message)) then message = trim(me%message) else message = 'Error: class has not been initialized' end if end if end subroutine get_status