MFIX
2016-1
Main Page
Modules
Data Types List
Files
File List
File Members
write_error.f
Go to the documentation of this file.
1
!vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvC
2
! C
3
! Module name: Write_error(Name, Line, L) C C
4
! Purpose: Write an error message C
5
! C
6
! C
7
! Author: M. Syamlal Date: 16-MAY-96 C
8
! Reviewer: Date: C
9
! C
10
! C
11
! Literature/Document References: C
12
! C
13
! Variables referenced: C
14
! Variables modified: C
15
! C
16
! Local variables: C
17
! C
18
!^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^C
19
!
20
SUBROUTINE
write_error
(NAME, LINE, LMAX)
21
!...Translated by Pacific-Sierra Research VAST-90 2.06G5 12:17:31 12/09/98
22
!...Switches: -xf
23
!-----------------------------------------------
24
! M o d u l e s
25
!-----------------------------------------------
26
USE
funits
27
USE
machine
, only
:
start_log
,
end_log
28
USE
param
29
USE
param1
30
IMPLICIT NONE
31
!-----------------------------------------------
32
! D u m m y A r g u m e n t s
33
!-----------------------------------------------
34
!
35
! Subroutine name
36
CHARACTER(LEN=*)
Name
37
!
38
! Message
39
CHARACTER(LEN=*)
LINE(*)
40
!
41
! Dimension of message array
42
INTEGER
LMAX
43
!
44
! Index
45
INTEGER
L
46
!
47
!-----------------------------------------------
48
!
49
50
CALL
start_log
51
IF
(
dmp_log
)
WRITE
(
unit_log
, 1000) name
52
DO
l = 1, lmax
53
IF
(
dmp_log
)
WRITE
(
unit_log
, 1010) line(l)
54
END DO
55
IF
(
dmp_log
)
WRITE
(
unit_log
, 1020)
56
CALL
end_log
57
RETURN
58
1000
FORMAT
(1x,70(
'*'
),/,/,1x,
'From : '
,a)
59
1010
FORMAT
(1x,a)
60
1020
FORMAT
(/,/,1x,70(
'*'
))
61
END SUBROUTINE
write_error
funits::dmp_log
logical dmp_log
Definition:
funits_mod.f:6
param1
Definition:
param1_mod.f:2
funits
Definition:
funits_mod.f:1
write_error
subroutine write_error(NAME, LINE, LMAX)
Definition:
write_error.f:21
machine
Definition:
machine_mod.f:1
funits::unit_log
integer, parameter unit_log
Definition:
funits_mod.f:21
param
Definition:
param_mod.f:2
machine::start_log
subroutine start_log
Definition:
machine_mod.f:182
machine::end_log
subroutine end_log
Definition:
machine_mod.f:208
write_error.f
Generated by
1.8.11