Octopus
blacs.F90
Go to the documentation of this file.
1!! Copyright (C) 2011 D. Strubbe
2!!
3!! This program is free software; you can redistribute it and/or modify
4!! it under the terms of the GNU General Public License as published by
5!! the Free Software Foundation; either version 2, or (at your option)
6!! any later version.
7!!
8!! This program is distributed in the hope that it will be useful,
9!! but WITHOUT ANY WARRANTY; without even the implied warranty of
10!! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11!! GNU General Public License for more details.
12!!
13!! You should have received a copy of the GNU General Public License
14!! along with this program; if not, write to the Free Software
15!! Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
16!! 02110-1301, USA.
17!!
18
21module blacs_oct_m
22
23 implicit none
24
25 integer, parameter :: BLACS_DLEN = 9
26
27 interface
28 subroutine blacs_get(icontxt, what, val)
29 implicit none
30 integer, intent(in) :: icontxt
31 integer, intent(in) :: what
32 integer, intent(out) :: val
33 end subroutine blacs_get
34 end interface
35
36 interface
37 subroutine blacs_gridinit(icontxt, order, nprow, npcol)
38 implicit none
39 integer, intent(inout) :: icontxt
40 character, intent(in) :: order
41 integer, intent(in) :: nprow
42 integer, intent(in) :: npcol
43 end subroutine blacs_gridinit
44 end interface
45
46 interface
47 subroutine blacs_gridmap(icontxt, usermap, ldumap, nprow, npcol)
48 implicit none
49 integer, intent(inout) :: icontxt
50 integer, intent(in) :: usermap
51 integer, intent(in) :: ldumap
52 integer, intent(in) :: nprow
53 integer, intent(in) :: npcol
54 end subroutine blacs_gridmap
55 end interface
56
57 interface
58 subroutine blacs_gridexit(icontxt)
59 implicit none
60 integer, intent(in) :: icontxt
61 end subroutine blacs_gridexit
62 end interface
63
64 interface
65 subroutine blacs_exit(icontxt)
66 implicit none
67 integer, intent(in) :: icontxt
68 end subroutine blacs_exit
69 end interface
70
71 interface
72 subroutine blacs_gridinfo(icontxt, nprow, npcol, myprow, mypcol)
73 implicit none
74 integer, intent(in) :: icontxt
75 integer, intent(out) :: nprow
76 integer, intent(out) :: npcol
77 integer, intent(out) :: myprow
78 integer, intent(out) :: mypcol
79 end subroutine blacs_gridinfo
80 end interface
81
82 interface
83 integer function numroc(n, nb, iproc, isrcproc, nprocs)
84 implicit none
85 integer, intent(in) :: n
86 integer, intent(in) :: nb
87 integer, intent(in) :: iproc
88 integer, intent(in) :: isrcproc
89 integer, intent(in) :: nprocs
90 end function numroc
91 end interface
92
93end module blacs_oct_m
94
95!! Local Variables:
96!! mode: f90
97!! coding: utf-8
98!! End:
This module contains interfaces for BLACS routines Interfaces are from http:
Definition: blacs.F90:27