The TELEMAC-MASCARET system  trunk
build_ikle_ext.f
Go to the documentation of this file.
1 ! *************************
2  SUBROUTINE build_ikle_ext
3 ! *************************
4 !
5  &(ikle_ext,nelmax,ikle,nelem)
6 !
7 !***********************************************************************
8 ! BIEF V6P3 05/10/2012
9 !***********************************************************************
10 !
11 !brief Copy of IKLE2 into a larger array with a larger number of
12 !+ elements. Values of 1 put in extended area.
13 ! This is used in post_interp (module streamline)
14 !
15 !history J-M HERVOUET (EDF-LNHE)
16 !+ 05/10/2012
17 !+ V6P3
18 !+ First version
19 !
20 !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
21 !| IKLE_EXT |<->| EXTENDED IKLE
22 !| NELMAX |-->| FIRST DIMENSION OF EXTENDED IKLE
23 !| IKLE |-->| ORIGINAL IKLE
24 !| NELEM |-->| FIRST DIMENSION OF ORIGINAL IKLE
25 !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
26 !
28  IMPLICIT NONE
29 !
30 !+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
31 !
32  INTEGER, INTENT(IN) :: NELMAX,NELEM
33  INTEGER, INTENT(IN) :: IKLE(nelem,3)
34  INTEGER, INTENT(INOUT) :: IKLE_EXT(nelmax,3)
35 !
36 !+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
37 !
38  INTEGER IELEM
39 !
40 !-----------------------------------------------------------------------
41 !
42  DO ielem=1,nelem
43  ikle_ext(ielem,1)=ikle(ielem,1)
44  ikle_ext(ielem,2)=ikle(ielem,2)
45  ikle_ext(ielem,3)=ikle(ielem,3)
46  ENDDO
47 !
48  IF(nelmax.GT.nelem) THEN
49  DO ielem=nelem+1,nelmax
50  ikle_ext(ielem,1)=1
51  ikle_ext(ielem,2)=1
52  ikle_ext(ielem,3)=1
53  ENDDO
54  ENDIF
55 !
56 !-----------------------------------------------------------------------
57 !
58  RETURN
59  END
subroutine build_ikle_ext(IKLE_EXT, NELMAX, IKLE, NELEM)
Definition: build_ikle_ext.f:7