The TELEMAC-MASCARET system  trunk
cg1113.f
Go to the documentation of this file.
1 ! *****************
2  SUBROUTINE cg1113
3 ! *****************
4 !
5  &(x,dim1,dim2,ikle,nelem,nelmax)
6 !
7 !***********************************************************************
8 ! BIEF V6P1 21/08/2010
9 !***********************************************************************
10 !
11 !brief CHANGES THE DISCRETISATION OF A VECTOR
12 !+ FROM 11 TO 13 HERE (LINEAR TO QUADRATIC).
13 !
14 !history J-M HERVOUET (LNH)
15 !+ 06/02/08
16 !+ V5P9
17 !+
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 !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
32 !| DIM1 |-->| FIRST DIMENSION OF X
33 !| DIM2 |-->| SECOND DIMENSION OF X
34 !| IKLE |-->| CONNECTIVITY TABLE
35 !| NELEM |-->| NUMBER OF ELEMENTS IN THE MESH
36 !| NELMAX |-->| FIRST DIMENSION OF IKLE AND W.
37 !| X |<--| VECTOR TO BE MODIFIED.
38 !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
39 !
41  IMPLICIT NONE
42 !
43 !+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
44 !
45  INTEGER , INTENT(IN) :: NELEM,NELMAX,DIM1,DIM2
46  DOUBLE PRECISION, INTENT(INOUT) :: X(dim1,dim2)
47  INTEGER , INTENT(IN) :: IKLE(nelmax,6)
48 !
49 !+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
50 !
51  INTEGER IELEM,IDIM
52 !
53 !-----------------------------------------------------------------------
54 !
55 !VOCL LOOP,NOVREC
56 !DIR$ IVDEP
57  DO idim = 1 , dim2
58  DO ielem = 1 , nelem
59 !
60  x(ikle(ielem,4),idim) = 0.5d0 * ( x(ikle(ielem,1),idim)
61  & + x(ikle(ielem,2),idim) )
62  x(ikle(ielem,5),idim) = 0.5d0 * ( x(ikle(ielem,2),idim)
63  & + x(ikle(ielem,3),idim) )
64  x(ikle(ielem,6),idim) = 0.5d0 * ( x(ikle(ielem,3),idim)
65  & + x(ikle(ielem,1),idim) )
66 !
67  ENDDO
68  ENDDO
69 !
70 !-----------------------------------------------------------------------
71 !
72  RETURN
73  END
subroutine cg1113(X, DIM1, DIM2, IKLE, NELEM, NELMAX)
Definition: cg1113.f:7