The TELEMAC-MASCARET system  trunk
bief_nbsegel.f
Go to the documentation of this file.
1 ! *****************************
2  INTEGER FUNCTION bief_nbsegel
3 ! *****************************
4 !
5  &(ielm,mesh)
6 !
7 !***********************************************************************
8 ! BIEF V7P3
9 !***********************************************************************
10 !
11 !brief GIVES THE NUMBER OF SEGMENTS PER ELEMENT
12 !+ FOR EACH TYPE OF ELEMENT.
13 !
14 !history J-M HERVOUET (LNH)
15 !+ 08/04/2004
16 !+ V5P5
17 !+ Adding argument MESH.
18 !
19 !history N.DURAND (HRW), S.E.BOURBAN (HRW)
20 !+ 13/07/2010
21 !+ V6P0
22 !+ Translation of French comments within the FORTRAN sources into
23 !+ English comments.
24 !
25 !history N.DURAND (HRW), S.E.BOURBAN (HRW)
26 !+ 21/08/2010
27 !+ V6P0
28 !+ Creation of DOXYGEN tags for automated documentation and
29 !+ cross-referencing of the FORTRAN sources.
30 !
31 !history J-M HERVOUET (LNH)
32 !+ 23/09/2017
33 !+ V7P3
34 !+ Removing argument REFINE added in version 7.2.
35 !
36 !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37 !| IELM |-->| TYPE OF ELEMENT
38 !| MESH |-->| MESH STRUCTURE
39 !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
40 !
41  USE bief_def
43  IMPLICIT NONE
44 !
45 !+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
46 !
47  INTEGER, INTENT(IN) :: IELM
48  TYPE(bief_mesh), INTENT(IN) :: MESH
49 !
50 !+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
51 !
52  IF(ielm.LT.0.OR.ielm.GT.81) THEN
53  WRITE(lu,201) ielm
54  201 FORMAT(1x,'BIEF_NBSEGEL: WRONG ARGUMENT: ',1i6)
55  CALL plante(1)
56  stop
57  ELSE
58  bief_nbsegel = mesh%NDS(ielm,6)
59  ENDIF
60 !
61 !-----------------------------------------------------------------------
62 !
63  RETURN
64  END
integer function bief_nbsegel(IELM, MESH)
Definition: bief_nbsegel.f:7