|
|
|
@ -316,8 +316,10 @@ module psb_const_mod
|
|
|
|
|
integer(psb_ipk_), parameter, public :: psb_err_invalid_preca_=5004
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
type psb_ctxt_type
|
|
|
|
|
type :: psb_ctxt_type
|
|
|
|
|
integer(psb_mpk_), allocatable :: ctxt
|
|
|
|
|
contains
|
|
|
|
|
procedure, pass(ctxt) :: get_i_ctxt => psb_get_i_ctxt
|
|
|
|
|
end type psb_ctxt_type
|
|
|
|
|
|
|
|
|
|
contains
|
|
|
|
@ -334,4 +336,19 @@ contains
|
|
|
|
|
|
|
|
|
|
end function psb_cmp_ctxt
|
|
|
|
|
|
|
|
|
|
subroutine psb_get_i_ctxt(ctxt,ictxt,info)
|
|
|
|
|
class(psb_ctxt_type), intent(in) :: ctxt
|
|
|
|
|
integer(psb_mpk_), intent(out) :: ictxt
|
|
|
|
|
integer(psb_ipk_), intent(out) :: info
|
|
|
|
|
|
|
|
|
|
if (.not.allocated(ctxt%ctxt)) then
|
|
|
|
|
ictxt = -1_psb_ipk_
|
|
|
|
|
info = psb_err_mpi_error_
|
|
|
|
|
else
|
|
|
|
|
ictxt = ctxt%ctxt
|
|
|
|
|
info = psb_success_
|
|
|
|
|
end if
|
|
|
|
|
|
|
|
|
|
end subroutine psb_get_i_ctxt
|
|
|
|
|
|
|
|
|
|
end module psb_const_mod
|
|
|
|
|