|
|
|
@ -8,14 +8,14 @@ contains
|
|
|
|
|
|
|
|
|
|
function psb_c_error() bind(c) result(res)
|
|
|
|
|
implicit none
|
|
|
|
|
integer(c_int) :: res
|
|
|
|
|
integer(psb_c_int) :: res
|
|
|
|
|
res = 0
|
|
|
|
|
call psb_error()
|
|
|
|
|
end function psb_c_error
|
|
|
|
|
|
|
|
|
|
function psb_c_clean_errstack() bind(c) result(res)
|
|
|
|
|
implicit none
|
|
|
|
|
integer(c_int) :: res
|
|
|
|
|
integer(psb_c_int) :: res
|
|
|
|
|
res = 0
|
|
|
|
|
call psb_clean_errstack()
|
|
|
|
|
end function psb_c_clean_errstack
|
|
|
|
@ -23,9 +23,9 @@ contains
|
|
|
|
|
function psb_c_cdall_vg(ng,vg,ictxt,cdh) bind(c,name='psb_c_cdall_vg') result(res)
|
|
|
|
|
implicit none
|
|
|
|
|
|
|
|
|
|
integer(c_int) :: res
|
|
|
|
|
integer(c_int), value :: ng, ictxt
|
|
|
|
|
integer(c_int) :: vg(*)
|
|
|
|
|
integer(psb_c_int) :: res
|
|
|
|
|
integer(psb_c_int), value :: ng, ictxt
|
|
|
|
|
integer(psb_c_int) :: vg(*)
|
|
|
|
|
type(psb_c_object_type) :: cdh
|
|
|
|
|
type(psb_desc_type), pointer :: descp
|
|
|
|
|
integer :: info
|
|
|
|
@ -56,9 +56,9 @@ contains
|
|
|
|
|
function psb_c_cdall_vl(nl,vl,ictxt,cdh) bind(c,name='psb_c_cdall_vl') result(res)
|
|
|
|
|
implicit none
|
|
|
|
|
|
|
|
|
|
integer(c_int) :: res
|
|
|
|
|
integer(c_int), value :: nl, ictxt
|
|
|
|
|
integer(c_int) :: vl(*)
|
|
|
|
|
integer(psb_c_int) :: res
|
|
|
|
|
integer(psb_c_int), value :: nl, ictxt
|
|
|
|
|
integer(psb_c_int) :: vl(*)
|
|
|
|
|
type(psb_c_object_type) :: cdh
|
|
|
|
|
type(psb_desc_type), pointer :: descp
|
|
|
|
|
integer :: info
|
|
|
|
@ -88,8 +88,8 @@ contains
|
|
|
|
|
function psb_c_cdall_nl(nl,ictxt,cdh) bind(c,name='psb_c_cdall_nl') result(res)
|
|
|
|
|
implicit none
|
|
|
|
|
|
|
|
|
|
integer(c_int) :: res
|
|
|
|
|
integer(c_int), value :: nl, ictxt
|
|
|
|
|
integer(psb_c_int) :: res
|
|
|
|
|
integer(psb_c_int), value :: nl, ictxt
|
|
|
|
|
type(psb_c_object_type) :: cdh
|
|
|
|
|
type(psb_desc_type), pointer :: descp
|
|
|
|
|
integer :: info
|
|
|
|
@ -119,8 +119,8 @@ contains
|
|
|
|
|
function psb_c_cdall_repl(n,ictxt,cdh) bind(c,name='psb_c_cdall_repl') result(res)
|
|
|
|
|
implicit none
|
|
|
|
|
|
|
|
|
|
integer(c_int) :: res
|
|
|
|
|
integer(c_int), value :: n, ictxt
|
|
|
|
|
integer(psb_c_int) :: res
|
|
|
|
|
integer(psb_c_int), value :: n, ictxt
|
|
|
|
|
type(psb_c_object_type) :: cdh
|
|
|
|
|
type(psb_desc_type), pointer :: descp
|
|
|
|
|
integer :: info
|
|
|
|
@ -150,7 +150,7 @@ contains
|
|
|
|
|
function psb_c_cdasb(cdh) bind(c,name='psb_c_cdasb') result(res)
|
|
|
|
|
implicit none
|
|
|
|
|
|
|
|
|
|
integer(c_int) :: res
|
|
|
|
|
integer(psb_c_int) :: res
|
|
|
|
|
type(psb_c_object_type) :: cdh
|
|
|
|
|
type(psb_desc_type), pointer :: descp
|
|
|
|
|
integer :: info
|
|
|
|
@ -169,7 +169,7 @@ contains
|
|
|
|
|
function psb_c_cdfree(cdh) bind(c,name='psb_c_cdfree') result(res)
|
|
|
|
|
|
|
|
|
|
implicit none
|
|
|
|
|
integer(c_int) :: res
|
|
|
|
|
integer(psb_c_int) :: res
|
|
|
|
|
type(psb_c_object_type) :: cdh
|
|
|
|
|
type(psb_desc_type), pointer :: descp
|
|
|
|
|
integer :: info
|
|
|
|
@ -190,10 +190,10 @@ contains
|
|
|
|
|
function psb_c_cdins(nz,ia,ja,cdh) bind(c,name='psb_c_cdins') result(res)
|
|
|
|
|
|
|
|
|
|
implicit none
|
|
|
|
|
integer(c_int) :: res
|
|
|
|
|
integer(c_int), value :: nz
|
|
|
|
|
integer(psb_c_int) :: res
|
|
|
|
|
integer(psb_c_int), value :: nz
|
|
|
|
|
type(psb_c_object_type) :: cdh
|
|
|
|
|
integer(c_int) :: ia(*),ja(*)
|
|
|
|
|
integer(psb_c_int) :: ia(*),ja(*)
|
|
|
|
|
|
|
|
|
|
type(psb_desc_type), pointer :: descp
|
|
|
|
|
integer :: info
|
|
|
|
@ -213,7 +213,7 @@ contains
|
|
|
|
|
function psb_c_cd_get_local_rows(cdh) bind(c,name='psb_c_cd_get_local_rows') result(res)
|
|
|
|
|
implicit none
|
|
|
|
|
|
|
|
|
|
integer(c_int) :: res
|
|
|
|
|
integer(psb_c_int) :: res
|
|
|
|
|
type(psb_c_object_type) :: cdh
|
|
|
|
|
|
|
|
|
|
type(psb_desc_type), pointer :: descp
|
|
|
|
@ -234,7 +234,7 @@ contains
|
|
|
|
|
function psb_c_cd_get_local_cols(cdh) bind(c,name='psb_c_cd_get_local_cols') result(res)
|
|
|
|
|
implicit none
|
|
|
|
|
|
|
|
|
|
integer(c_int) :: res
|
|
|
|
|
integer(psb_c_int) :: res
|
|
|
|
|
type(psb_c_object_type) :: cdh
|
|
|
|
|
|
|
|
|
|
type(psb_desc_type), pointer :: descp
|
|
|
|
@ -253,7 +253,7 @@ contains
|
|
|
|
|
function psb_c_cd_get_global_rows(cdh) bind(c,name='psb_c_cd_get_global_rows') result(res)
|
|
|
|
|
implicit none
|
|
|
|
|
|
|
|
|
|
integer(c_int) :: res
|
|
|
|
|
integer(psb_c_int) :: res
|
|
|
|
|
type(psb_c_object_type) :: cdh
|
|
|
|
|
|
|
|
|
|
type(psb_desc_type), pointer :: descp
|
|
|
|
@ -274,7 +274,7 @@ contains
|
|
|
|
|
function psb_c_cd_get_global_cols(cdh) bind(c,name='psb_c_cd_get_global_cols') result(res)
|
|
|
|
|
implicit none
|
|
|
|
|
|
|
|
|
|
integer(c_int) :: res
|
|
|
|
|
integer(psb_c_int) :: res
|
|
|
|
|
type(psb_c_object_type) :: cdh
|
|
|
|
|
|
|
|
|
|
type(psb_desc_type), pointer :: descp
|
|
|
|
|