The TELEMAC-MASCARET system  trunk
dimens.f
Go to the documentation of this file.
1 ! ***********************
2  INTEGER FUNCTION dimens
3 ! ***********************
4 !
5  &(ielm)
6 !
7 !***********************************************************************
8 ! BIEF V6P1 21/08/2010
9 !***********************************************************************
10 !
11 !brief GIVES THE DIMENSION OF AN ELEMENT.
12 !
13 !note COULD ALSO CREATE A DATA ARRAY TO SPEED UP.
14 !
15 !history J-M HERVOUET (LNHE)
16 !+ 13/02/2008
17 !+ V5P9
18 !+
19 !
20 !history N.DURAND (HRW), S.E.BOURBAN (HRW)
21 !+ 13/07/2010
22 !+ V6P0
23 !+ Translation of French comments within the FORTRAN sources into
24 !+ English comments
25 !
26 !history N.DURAND (HRW), S.E.BOURBAN (HRW)
27 !+ 21/08/2010
28 !+ V6P0
29 !+ Creation of DOXYGEN tags for automated documentation and
30 !+ cross-referencing of the FORTRAN sources
31 !
32 !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
33 !| IELM |-->| TYPE OF ELEMENT.
34 !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
35 !
37  IMPLICIT NONE
38 !
39 !+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
40 !
41  INTEGER, INTENT(IN) :: IELM
42 !
43 !+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
44 !
45  IF(ielm.EQ.0 .OR.
46  & ielm.EQ.1 .OR.
47  & ielm.EQ.2) THEN
48 !
49  dimens = 1
50 !
51  ELSEIF(ielm.EQ.10.OR.
52  & ielm.EQ.11.OR.
53  & ielm.EQ.12.OR.
54  & ielm.EQ.13.OR.
55  & ielm.EQ.14.OR.
56  & ielm.EQ.70.OR.
57  & ielm.EQ.71.OR.
58  & ielm.EQ.80.OR.
59  & ielm.EQ.81.OR.
60  & ielm.EQ.61.OR.
61  & ielm.EQ.60.OR.
62  & ielm.EQ.20.OR.
63  & ielm.EQ.21) THEN
64 !
65  dimens = 2
66 !
67  ELSEIF(ielm.EQ.30.OR.
68  & ielm.EQ.31.OR.
69  & ielm.EQ.40.OR.
70  & ielm.EQ.41.OR.
71  & ielm.EQ.50.OR.
72  & ielm.EQ.51 ) THEN
73 !
74  dimens = 3
75 !
76  ELSE
77  WRITE(lu,101) ielm
78 101 FORMAT(1x,'DIMENS (BIEF) : ',1i6,' ELEMENT NOT IMPLEMENTED')
79  CALL plante(1)
80  stop
81  ENDIF
82 !
83 !-----------------------------------------------------------------------
84 !
85  RETURN
86  END
integer function dimens(IELM)
Definition: dimens.f:7