The TELEMAC-MASCARET system
trunk
sources
utils
special
check_call.f
Go to the documentation of this file.
1
! *********************
2
SUBROUTINE
check_call
3
! *********************
4
!
5
&(ierr, chfile)
6
!
7
!***********************************************************************
8
! BIEF V6P3 21/08/2010
9
!***********************************************************************
10
!
11
!brief Check the value of ierr and if different from 0 calls plante
12
!+
13
!
14
!history Y AUDOUIN (LNHE)
15
!+ 11/07/2008
16
!+ V7P0
17
!+
18
!
19
!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
20
!| N |-->| TOTAL NUMBER OF PROCESSORS
21
!| I |-->| RANK OF THE PROCESSOR
22
!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
23
!
24
USE
declarations_special
25
IMPLICIT NONE
26
27
INTEGER
,
INTENT(IN)
:: ierr
28
CHARACTER(LEN=*)
,
INTENT(IN)
:: chfile
29
!
30
CHARACTER(LEN=200)
write_error
31
EXTERNAL
write_error
32
!
33
!-----------------------------------------------------------------------
34
!
35
IF
(ierr.NE.0)
THEN
36
WRITE
(
lu
,*)
'ERROR '
,ierr,
'DURING CALL OF '
,chfile
37
WRITE
(
lu
,*)
'ERROR TEXT: '
,write_error(ierr)
38
WRITE
(
lu
,*) trim(
error_message
)
39
CALL
plante(1)
40
stop
41
ENDIF
42
!
43
!-----------------------------------------------------------------------
44
!
45
END SUBROUTINE
check_call
declarations_special
Definition:
declarations_special.F:3
declarations_special::error_message
character(len=200) error_message
Definition:
declarations_special.F:74
declarations_special::lu
integer lu
Definition:
declarations_special.F:45