The TELEMAC-MASCARET system
trunk
sources
utils
parallel
p_mail.F
Go to the documentation of this file.
1
! *****************
2
SUBROUTINE
p_mail
3
! *****************
4
!
5
&(chaine,ncar)
6
!
7
!***********************************************************************
8
! PARALLEL V6P1 21/08/2010
9
!***********************************************************************
10
!
11
!brief PASSES A CHARACTER STRING (OF LENGTH NCAR)
12
!+ FROM THE MASTER TO THE SLAVES.
13
!
14
!history RAINER JOHANNI (SGI MUNICH)
15
!+ **/10/1999
16
!+
17
!+ ADAPTED FOR MPI
18
!
19
!history J.A. JANKOWSKI (BAW KARLSRUHE)
20
!+ 28/12/1999
21
!+
22
!+ RELEASE 5.0 MODIFIED
23
!
24
!history J.-M. HERVOUET (LNHE)
25
!+ 23/06/2008
26
!+ V5P9
27
!+
28
!
29
!history N.DURAND (HRW), S.E.BOURBAN (HRW)
30
!+ 13/07/2010
31
!+ V6P0
32
!+ Translation of French comments within the FORTRAN sources into
33
!+ English comments
34
!
35
!history N.DURAND (HRW), S.E.BOURBAN (HRW)
36
!+ 21/08/2010
37
!+ V6P0
38
!+ Creation of DOXYGEN tags for automated documentation and
39
!+ cross-referencing of the FORTRAN sources
40
!
41
!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
42
!| CHAINE |---| CHARACTER STRING
43
!| NCAR |---| SIZE OF THE CHARACTER STRING
44
!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
45
!
46
USE
declarations_parallel
47
USE
declarations_special
48
IMPLICIT NONE
49
!
50
!+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
51
!
52
INTEGER
,
INTENT(IN)
:: NCAR
53
CHARACTER(LEN=PATH_LEN)
,
INTENT(INOUT)
:: CHAINE
54
!
55
!+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
56
!
57
#if defined HAVE_MPI
58
INTEGER
IER
59
!
60
!-----------------------------------------------------------------------
61
!
62
CALL
mpi_bcast(chaine,ncar,mpi_character,0,
comm
,ier)
63
!
64
IF
(ier.NE.0)
THEN
65
WRITE
(
lu
,*)
'P_MAIL: PROBLEM IN MPI_BCAST'
66
WRITE
(
lu
,*)
'MPI ERROR '
,ier
67
CALL
plante(1)
68
stop
69
ENDIF
70
#else
71
WRITE
(
lu
,*)
'CALL OF P_MAIL IN ITS VOID VERSION'
72
#endif
73
!
74
!-----------------------------------------------------------------------
75
!
76
RETURN
77
END
declarations_special
Definition:
declarations_special.F:3
p_mail
subroutine p_mail(CHAINE, NCAR)
Definition:
p_mail.F:7
declarations_parallel::comm
integer comm
Definition:
declarations_parallel.F:53
declarations_special::lu
integer lu
Definition:
declarations_special.F:45
declarations_parallel
Definition:
declarations_parallel.F:3