The TELEMAC-MASCARET system  trunk
p_mpi_type_commit.F
Go to the documentation of this file.
1 ! ****************************
2  SUBROUTINE p_mpi_type_commit
3 ! ****************************
4 !
5  &(data_type,ierr)
6 !
7 !***********************************************************************
8 ! PARALLEL V6P2 21/08/2010
9 !***********************************************************************
10 !
11 !brief CALLS FUNCTION MPI_TYPE_COMMIT.
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 !| DATA_TYPE |-->| DATATYPE
32 !| IERR |<--| ERROR VALUE
33 !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
34 !
37  IMPLICIT NONE
38 !
39 !+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
40 !
41  INTEGER, INTENT(INOUT) :: DATA_TYPE
42  INTEGER, INTENT(OUT) :: IERR
43 !
44 !+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
45 !
46  ierr = 0
47 #if defined HAVE_MPI
48  CALL mpi_type_commit(data_type,ierr)
49 !
50  IF(ierr.NE.0) THEN
51  WRITE(lu,*) 'P_MPI_TYPE_COMMIT:'
52  WRITE(lu,*) 'MPI ERROR ',ierr
53  CALL plante(1)
54  stop
55  ENDIF
56  RETURN
57 #else
58  ierr = 0
59  WRITE(lu,*) 'CALL OF P_MPI_TYPE_COMMIT VOID VERSION'
60 #endif
61 !
62 !-----------------------------------------------------------------------
63 !
64  END
subroutine p_mpi_type_commit(DATA_TYPE, IERR)