Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions model/src/PDLIB/yowpdlibmain.F90
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,44 @@ subroutine runParmetis(MNP)

INTEGER :: np_toSend

#ifdef W3_SCOTCH
interface
#ifdef SCOTCH_707
subroutine SCOTCHFParMETIS_V3_PartGeomKway(vtxdist, xadj, adjncy, &
vwgt, adjwgt, wgtflag, numflag, ndims, xyz, ncon, nparts, &
tpwgts, ubvec, options, edgecut, part, comm, ref)
import :: MPI_Comm
integer, intent(in) :: vtxdist(*), xadj(*), adjncy(*)
integer, intent(in) :: vwgt(*), adjwgt(*)
integer, intent(in) :: wgtflag, numflag, ndims, ncon, nparts
real(4), intent(in) :: xyz(*)
real(4), intent(in) :: tpwgts(*), ubvec(*)
integer, intent(in) :: options(*)
integer, intent(out) :: edgecut
integer, intent(inout) :: part(*)
type(MPI_Comm), intent(in) :: comm
integer, intent(out) :: ref
end subroutine SCOTCHFParMETIS_V3_PartGeomKway
#else
subroutine SCOTCH_ParMETIS_V3_PartGeomKway(vtxdist, xadj, adjncy, &
vwgt, adjwgt, wgtflag, numflag, ndims, xyz, ncon, nparts, &
tpwgts, ubvec, options, edgecut, part, comm, ref)
import :: MPI_Comm
integer, intent(in) :: vtxdist(*), xadj(*), adjncy(*)
integer, intent(in) :: vwgt(*), adjwgt(*)
integer, intent(in) :: wgtflag, numflag, ndims, ncon, nparts
real(4), intent(in) :: xyz(*)
real(4), intent(in) :: tpwgts(*), ubvec(*)
integer, intent(in) :: options(*)
integer, intent(out) :: edgecut
integer, intent(inout) :: part(*)
type(MPI_Comm), intent(in) :: comm
integer, intent(out) :: ref
end subroutine SCOTCH_ParMETIS_V3_PartGeomKway
#endif
end interface
#endif

! CALL REAL_MPI_BARRIER_PDLIB(comm, "runParmetis, step 1")
! Create xadj and adjncy arrays. They holds the nodes neighbors in CSR Format
! Here, the adjacency structure of a graph is represented by two arrays,
Expand Down
2 changes: 1 addition & 1 deletion model/src/w3profsmd_pdlib.F90
Original file line number Diff line number Diff line change
Expand Up @@ -5521,7 +5521,7 @@ SUBROUTINE PDLIB_JACOBI_GAUSS_SEIDEL_BLOCK(IMOD, FACX, FACY, DTG, VGX, VGY, LCAL
use yowDatapool, only: rtype
use YOWNODEPOOL, only: npa, iplg
use yowExchangeModule, only : PDLIB_exchange2Dreal_zero, PDLIB_exchange2Dreal
use mpi_f08, only : MPI_SUM, MPI_INT, MPI_ALLREDUCE
use mpi_f08, only : MPI_SUM, MPI_INT, MPI_ALLREDUCE, MPI_COMM_RANK
USE W3ADATMD, only: MPI_COMM_WCMP
USE W3GDATMD, only: NSEA, SIG, FACP, FLSOU
USE W3GDATMD, only: IOBP_LOC, IOBPD_LOC, IOBDP_LOC, IOBPA_LOC
Expand Down