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