The TELEMAC-MASCARET system
trunk
sources
stbtel
deparr.f
Go to the documentation of this file.
1
! *****************
2
SUBROUTINE
deparr
3
! *****************
4
!
5
&(ikle,ndepar,lgvec)
6
!
7
!***********************************************************************
8
! STBTEL V5P2 28/08/89
9
!***********************************************************************
10
!
11
!brief DETECTION OF BACKWARD DEPENDENCIES
12
!
13
!history J-M HERVOUET (LNH)
14
!+ 28/08/89
15
!+ V5P2
16
!+
17
!
18
!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
19
!| IKLE |<--| GLOBAL NUMBERING OF ALL NODES BY ELEMENT
20
!| NDEPAR |<--| NUMBER OF BACKWARD DEPENDENCIES
21
!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
22
!
23
USE
declarations_special
24
USE
declarations_stbtel
, ONLY
:
nelem
,
nelmax
25
IMPLICIT NONE
26
!
27
INTEGER
,
INTENT(IN)
:: LGVEC
28
INTEGER
,
INTENT(INOUT)
:: NDEPAR
29
INTEGER
,
INTENT(IN)
:: IKLE(
nelmax
,4)
30
!
31
INTEGER
IELEM , K
32
INTEGER
I1 , I2 , I3 , J1 , J2 , J3 , IEL1
33
!
34
!=======================================================================
35
!
36
ndepar = 0
37
DO
ielem = 1,
nelem
38
i1 = ikle(ielem,1)
39
i2 = ikle(ielem,2)
40
i3 = ikle(ielem,3)
41
DO
k = 2,lgvec
42
iel1 = mod(
nelem
+ielem-k,
nelem
) + 1
43
j1 = ikle(iel1,1)
44
j2 = ikle(iel1,2)
45
j3 = ikle(iel1,3)
46
IF
(i1.EQ.j1.OR.i1.EQ.j2.OR.i1.EQ.j3.OR.
47
& i2.EQ.j1.OR.i2.EQ.j2.OR.i2.EQ.j3.OR.
48
& i3.EQ.j1.OR.i3.EQ.j2.OR.i3.EQ.j3) ndepar = ndepar + 1
49
ENDDO
50
ENDDO
51
!
52
!=======================================================================
53
!
54
RETURN
55
END
declarations_special
Definition:
declarations_special.F:3
declarations_stbtel
Definition:
declarations_stbtel.F:5
deparr
subroutine deparr(IKLE, NDEPAR, LGVEC)
Definition:
deparr.f:7
declarations_stbtel::nelem
integer nelem
Definition:
declarations_stbtel.F:22
declarations_stbtel::nelmax
integer nelmax
Definition:
declarations_stbtel.F:26