| 1 |
|
| 2 |
|
| 3 |
module autompi |
| 4 |
|
| 5 |
use auto_constants, only: autoparameters |
| 6 |
|
| 7 |
implicit none |
| 8 |
private |
| 9 |
|
| 10 |
public :: mpiini, mpiiap, mpiwfi, mpireduce, mpibcksub, mpisbv, mpicbv, mpibcast |
| 11 |
public :: mpibcasti, mpibcast1i, mpibcast1l, mpibcastap, mpireducemax, mpireducemin |
| 12 |
public :: mpigat, mpiscat, mpiend, mpitim, mpiiam, mpikwt, partition |
| 13 |
public :: mpigats |
| 14 |
|
| 15 |
contains |
| 16 |
|
| 17 |
subroutine mpiini() |
| 18 |
end subroutine mpiini |
| 19 |
|
| 20 |
integer function mpiiam() |
| 21 |
mpiiam = 0 |
| 22 |
end function mpiiam |
| 23 |
|
| 24 |
integer function mpikwt() |
| 25 |
mpikwt = 1 |
| 26 |
end function mpikwt |
| 27 |
|
| 28 |
subroutine mpiiap(ap) |
| 29 |
type(autoparameters) :: ap |
| 30 |
end subroutine mpiiap |
| 31 |
|
| 32 |
logical function mpiwfi() |
| 33 |
mpiwfi = .false. |
| 34 |
end function mpiwfi |
| 35 |
|
| 36 |
subroutine partition(n,kwt,m) |
| 37 |
integer n,kwt,m(kwt) |
| 38 |
m(1) = n |
| 39 |
end subroutine partition |
| 40 |
|
| 41 |
subroutine mpireduce(a1,a2,bb,cc,c2,dd,faa,fcfc,ntst,nov,ncb,nrc,ifst,nllv,& |
| 42 |
lo,hi,level) |
| 43 |
integer, intent(in) :: ntst,nov,ncb,nrc,ifst,nllv,lo,hi,level |
| 44 |
double precision, intent(inout) :: a1(nov,nov,*),a2(nov,nov,*),bb(ncb,nov,*) |
| 45 |
double precision, intent(inout) :: cc(nov,nrc,*),c2(nov,nrc,*) |
| 46 |
double precision, intent(inout) :: dd(ncb,nrc,*),faa(nov,*) |
| 47 |
double precision, intent(inout) :: fcfc(nrc,*) |
| 48 |
end subroutine mpireduce |
| 49 |
|
| 50 |
subroutine mpibcksub(sol,fc,ntst,nov,ncb,lo,hi,level) |
| 51 |
integer, intent(in) :: ntst,nov,ncb,lo,hi,level |
| 52 |
double precision, intent(inout) :: sol(nov,*),fc(*) |
| 53 |
end subroutine mpibcksub |
| 54 |
|
| 55 |
subroutine mpisbv(solvbv) |
| 56 |
logical, intent(in) :: solvbv |
| 57 |
end subroutine mpisbv |
| 58 |
|
| 59 |
subroutine mpicbv(npar,par,rds,ss) |
| 60 |
integer, intent(in) :: npar |
| 61 |
double precision :: par(npar) |
| 62 |
double precision :: rds,ss |
| 63 |
end subroutine mpicbv |
| 64 |
|
| 65 |
subroutine mpibcast(buf,len) |
| 66 |
integer, intent(in) :: len |
| 67 |
double precision, intent(inout) :: buf(len) |
| 68 |
end subroutine mpibcast |
| 69 |
|
| 70 |
subroutine mpibcasti(buf,len) |
| 71 |
integer, intent(in) :: len |
| 72 |
integer, intent(inout) :: buf(len) |
| 73 |
end subroutine mpibcasti |
| 74 |
|
| 75 |
subroutine mpibcast1i(buf) |
| 76 |
integer, intent(inout) :: buf |
| 77 |
end subroutine mpibcast1i |
| 78 |
|
| 79 |
subroutine mpibcast1l(buf) |
| 80 |
logical, intent(inout) :: buf |
| 81 |
end subroutine mpibcast1l |
| 82 |
|
| 83 |
subroutine mpibcastap(ap) |
| 84 |
type(autoparameters), intent(inout) :: ap |
| 85 |
end subroutine mpibcastap |
| 86 |
|
| 87 |
subroutine mpiscat(buf,ndx,n,add) |
| 88 |
integer, intent(in) :: ndx,n,add |
| 89 |
double precision, intent(inout) :: buf(ndx,*) |
| 90 |
end subroutine mpiscat |
| 91 |
|
| 92 |
subroutine mpigat(buf,ndx,n) |
| 93 |
integer, intent(in) :: ndx,n |
| 94 |
double precision, intent(inout) :: buf(ndx,*) |
| 95 |
end subroutine mpigat |
| 96 |
|
| 97 |
subroutine mpigats(buf,ndx,n,linelen) |
| 98 |
integer, intent(in) :: ndx,n,linelen |
| 99 |
character(linelen), intent(inout) :: buf(*) |
| 100 |
end subroutine mpigats |
| 101 |
|
| 102 |
subroutine mpireducemax(buf,n) |
| 103 |
integer, intent(in) :: n |
| 104 |
double precision, intent(inout) :: buf(n) |
| 105 |
end subroutine mpireducemax |
| 106 |
|
| 107 |
subroutine mpireducemin(buf,n) |
| 108 |
integer, intent(in) :: n |
| 109 |
double precision, intent(inout) :: buf(n) |
| 110 |
end subroutine mpireducemin |
| 111 |
|
| 112 |
subroutine mpiend() |
| 113 |
end subroutine mpiend |
| 114 |
|
| 115 |
subroutine mpitim(tim) |
| 116 |
double precision tim |
| 117 |
end subroutine mpitim |
| 118 |
|
| 119 |
end module autompi |