The TELEMAC-MASCARET system
trunk
sources
utils
parallel
p_mpi_type_get_extent.F
Go to the documentation of this file.
1
! ********************************
2
SUBROUTINE
p_mpi_type_get_extent
3
! ********************************
4
!
5
&(datatype,lower_bound,extent,ierr)
6
!
7
!***********************************************************************
8
! PARALLEL V6P2 21/08/2010
9
!***********************************************************************
10
!
11
!brief CALLS FUNCTION MPI_TYPE_GET_EXTENT.
12
!
13
!history C. DENIS (SINETICS)
14
!+ 27/10/2009
15
!+ V6P0
16
!+
17
!
18
!history N.DURAND (HRW), S.E.BOURBAN (HRW)
19
!+ 13/07/2010
20
!+ V6P0
21
!+ Translation of French comments within the FORTRAN sources into
22
!+ English comments
23
!
24
!history N.DURAND (HRW), S.E.BOURBAN (HRW)
25
!+ 21/08/2010
26
!+ V6P0
27
!+ Creation of DOXYGEN tags for automated documentation and
28
!+ cross-referencing of the FORTRAN sources
29
!
30
!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
31
!| DATATYPE |-->| DATATYPE
32
!| LOWER_BOUND |<--| LOWER BOUND OF THE DATATYPE
33
!| EXTENT |<--| EXTENT OF THE DATATYPE
34
!| IERR |<--| ERROR VALUE
35
!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
36
!
37
USE
declarations_parallel
38
USE
declarations_special
39
IMPLICIT NONE
40
!
41
!+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
42
!
43
INTEGER(KIND=MY_ADDRESS_KIND)
,
INTENT(INOUT)
:: LOWER_BOUND,EXTENT
44
INTEGER
,
INTENT(IN)
:: DATATYPE
45
INTEGER
,
INTENT(OUT)
:: IERR
46
!
47
!+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
48
!
49
ierr = 0
50
#if defined HAVE_MPI
51
CALL
mpi_type_get_extent(datatype,lower_bound,extent,ierr)
52
!
53
IF
(ierr.NE.0)
THEN
54
WRITE
(
lu
,*)
'P_MPI_TYPE_EXTENT:'
55
WRITE
(
lu
,*)
'MPI ERROR '
,ierr
56
CALL
plante(1)
57
stop
58
ENDIF
59
RETURN
60
#else
61
WRITE
(
lu
,*)
'CALL OF P_MPI_TYPE_GET_EXTENT IN '
//
62
&
'ITS VOID VERSION'
63
#endif
64
!
65
!-----------------------------------------------------------------------
66
!
67
END
declarations_special
Definition:
declarations_special.F:3
p_mpi_type_get_extent
subroutine p_mpi_type_get_extent(DATATYPE, LOWER_BOUND, EXTENT, IERR)
Definition:
p_mpi_type_get_extent.F:7
declarations_special::lu
integer lu
Definition:
declarations_special.F:45
declarations_parallel
Definition:
declarations_parallel.F:3