save and recall error message control parameters.
ixsav saves and recalls one of two error message parameters:
lunit
, the logical unit number to which messages are printed, andmesflg
, the message print flag.this is a modification of the slatec library routine j4save
.
on return:
ixsav
= the (old) value of the parameter.Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(dvode_t), | intent(inout) | :: | me | |||
integer, | intent(in) | :: | ipar |
parameter indicator (1 for |
||
integer | :: | ivalue |
the value to be set for the parameter, if iset = .true. |
|||
logical, | intent(in) | :: | iset |
logical flag to indicate whether to read or write.
if |
integer function ixsav(me,ipar,ivalue,iset) class(dvode_t),intent(inout) :: me integer,intent(in) :: ipar !! parameter indicator (1 for `lunit`, 2 for `mesflg`). integer :: ivalue !! the value to be set for the parameter, if iset = .true. logical,intent(in) :: iset !! logical flag to indicate whether to read or write. !! if `iset = .true.`, the parameter will be given !! the value `ivalue`. if `iset = .false.`, the parameter !! will be unchanged, and `ivalue` is a dummy argument. select case (ipar) case ( 1 ) if ( me%lunit==-1 ) me%lunit = iumach ixsav = me%lunit if ( iset ) me%lunit = ivalue case ( 2 ) ixsav = me%mesflg if ( iset ) me%mesflg = ivalue end select end function ixsav