C interface. Not fully working yet.

This commit is contained in:
Salvatore Filippone
2020-11-16 09:51:08 +01:00
parent b376d226cb
commit 8b2b86d44d
3 changed files with 11 additions and 6 deletions
+8 -3
View File
@@ -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