mirror of
https://github.com/sfilippone/psblas3.git
synced 2026-10-17 11:22:09 +00:00
C interface. Not fully working yet.
This commit is contained in:
@@ -870,7 +870,8 @@ contains
|
||||
include 'mpif.h'
|
||||
#endif
|
||||
type(psb_ctxt_type), intent(out) :: ictxt
|
||||
integer(psb_mpk_), intent(in), optional :: np, basectxt, ids(:)
|
||||
type(psb_ctxt_type), intent(in), optional :: basectxt
|
||||
integer(psb_mpk_), intent(in), optional :: np, ids(:)
|
||||
|
||||
integer(psb_mpk_) :: i, isnullcomm, icomm
|
||||
integer(psb_mpk_), allocatable :: iids(:)
|
||||
@@ -898,8 +899,12 @@ contains
|
||||
end if
|
||||
end if
|
||||
|
||||
if (present(basectxt)) then
|
||||
basecomm = basectxt
|
||||
if (present(basectxt)) then
|
||||
if (allocated(basectxt%ctxt)) then
|
||||
basecomm = basectxt%ctxt
|
||||
else
|
||||
basecomm = mpi_comm_world
|
||||
end if
|
||||
else
|
||||
basecomm = mpi_comm_world
|
||||
end if
|
||||
|
||||
Reference in New Issue
Block a user