The TELEMAC-MASCARET system  trunk
pttoel.f
Go to the documentation of this file.
1 ! *****************
2  SUBROUTINE pttoel
3 ! *****************
4 !
5  &(xel,x,mesh)
6 !
7 !***********************************************************************
8 ! BIEF V6P3 21/08/2010
9 !***********************************************************************
10 !
11 !brief GOES FROM A VECTOR BY POINTS TO A VECTOR BY ELEMENTS.
12 !
13 !history J-M HERVOUET (LNH)
14 !+ 10/01/95
15 !+ V5P6
16 !+
17 !
18 !history N.DURAND (HRW), S.E.BOURBAN (HRW)
19 !+ 13/07/2010
20 !+ V6P0
21 !+ Translation of French comments within the FORTRAN sources into
22 !+ English comments
23 !
24 !history N.DURAND (HRW), S.E.BOURBAN (HRW)
25 !+ 21/08/2010
26 !+ V6P0
27 !+ Creation of DOXYGEN tags for automated documentation and
28 !+ cross-referencing of the FORTRAN sources
29 !
30 !history J-M HERVOUET (LNH)
31 !+ 03/01/2013
32 !+ V6P3
33 !+ Adding 3D cases.
34 !
35 !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
36 !| MESH |-->| MESH STRUCTURE
37 !| X |-->| VECTOR DEFINED PER POINT
38 !| XEL |<--| SAME VECTOR DEFINED PER ELEMENT
39 !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
40 !
41  USE bief, ex_pttoel => pttoel
42 !
44  IMPLICIT NONE
45 !
46 !+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
47 !
48 ! VECTORS STRUCTURES
49 !
50  TYPE(bief_obj), INTENT(IN) :: X
51  TYPE(bief_obj), INTENT(INOUT) :: XEL
52 !
53 !-----------------------------------------------------------------------
54 !
55 ! MESH STRUCTURE
56 !
57  TYPE(bief_mesh), INTENT(IN) :: MESH
58 !
59 !+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
60 !
61  IF(x%ELM.EQ.11) THEN
62 !
63  CALL ptel11(xel%R,x%R,mesh%IKLE%I,mesh%NELMAX,mesh%NELEM)
64 !
65  ELSEIF(x%ELM.EQ.31.OR.x%ELM.EQ.51) THEN
66 !
67  CALL ptel31(xel%R,x%R,mesh%IKLE%I,mesh%NELMAX,mesh%NELEM)
68 !
69  ELSEIF(x%ELM.EQ.41) THEN
70 !
71  CALL ptel41(xel%R,x%R,mesh%IKLE%I,mesh%NELMAX,mesh%NELEM)
72 !
73  ELSE
74  WRITE(lu,101) x%ELM
75 101 FORMAT(1x,'PTTOEL (BIEF) : IELM = ',1i6,' ELEMENT NOT AVAILABLE')
76  CALL plante(1)
77  stop
78  ENDIF
79 !
80 !-----------------------------------------------------------------------
81 !
82  RETURN
83  END
subroutine ptel11(XEL, X, IKLE, NELMAX, NELEM)
Definition: ptel11.f:7
subroutine pttoel(XEL, X, MESH)
Definition: pttoel.f:7
Definition: bief.f:3
subroutine ptel31(XEL, X, IKLE, NELMAX, NELEM)
Definition: ptel31.f:7
subroutine ptel41(XEL, X, IKLE, NELMAX, NELEM)
Definition: ptel41.f:7