|
|
@ -63,6 +63,21 @@ contains
|
|
|
|
if (c_associated(cctxt%item)) call c_f_pointer(cctxt%item,res)
|
|
|
|
if (c_associated(cctxt%item)) call c_f_pointer(cctxt%item,res)
|
|
|
|
end function psb_c2f_ctxt
|
|
|
|
end function psb_c2f_ctxt
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
subroutine psb_c_get_i_ctxt(cctxt,ictxt,info) bind(c)
|
|
|
|
|
|
|
|
implicit none
|
|
|
|
|
|
|
|
type(psb_c_object_type), value :: cctxt
|
|
|
|
|
|
|
|
integer(psb_c_ipk_) :: ictxt
|
|
|
|
|
|
|
|
integer(psb_c_ipk_) :: info
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
! Local variables
|
|
|
|
|
|
|
|
type(psb_ctxt_type), pointer :: ctxt
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ctxt => psb_c2f_ctxt(cctxt)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
call ctxt%get_i_ctxt(ictxt,info)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
end subroutine
|
|
|
|
|
|
|
|
|
|
|
|
subroutine psb_c_exit_ctxt(cctxt) bind(c)
|
|
|
|
subroutine psb_c_exit_ctxt(cctxt) bind(c)
|
|
|
|
use psb_base_mod, only : psb_exit, psb_ctxt_type
|
|
|
|
use psb_base_mod, only : psb_exit, psb_ctxt_type
|
|
|
|
type(psb_c_object_type), value :: cctxt
|
|
|
|
type(psb_c_object_type), value :: cctxt
|
|
|
|