The TELEMAC-MASCARET system
trunk
sources
utils
bief
diffcl.f
Go to the documentation of this file.
1
! *****************
2
SUBROUTINE
diffcl
3
! *****************
4
!
5
&(litbor,ttild,tbor,nbor,iconv,npoin,nptfr)
6
!
7
!***********************************************************************
8
! BIEF V6P1 21/08/2010
9
!***********************************************************************
10
!
11
!brief INITIALISES THE VALUE OF THE TRACER FOR BOUNDARY
12
!+ CONDITIONS OF TYPE DIRICHLET, IN THE DIFFUSION STEP.
13
!
14
!history J-M HERVOUET (LNHE)
15
!+ 09/10/2009
16
!+ V6P0
17
!+ MOVED FROM TELEMAC-2D TO ALLOW CALL BY SISYPHE
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
!| ICONV |-->| THE CONVENTION FOR THE ADVECTION SCHEME
33
!| | | E.G. 1 FOR CHARACTERISTICS
34
!| LITBOR |-->| TYPES OF BOUNDARY CONDITIONS FOR THE TRACER
35
!| NBOR |-->| GLOBAL NUMBERS OF BOUNDARY POINTS
36
!| NPOIN |-->| NUMBER OF POINTS
37
!| NPTFR |-->| NUMBER OF BOUNDARY POINTS
38
!| TBOR |<->| PRESCRIBED BOUNDARY CONDITIONS ON T.
39
!| TTILD |-->| TRACER AFTER ADVECTION.
40
!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
41
!
42
USE
declarations_telemac
43
!
44
USE
declarations_special
45
IMPLICIT NONE
46
!
47
!+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
48
!
49
INTEGER
,
INTENT(IN)
:: NPOIN,NPTFR,ICONV
50
INTEGER
,
INTENT(IN)
:: NBOR(nptfr)
51
INTEGER
,
INTENT(IN)
:: LITBOR(nptfr)
52
DOUBLE PRECISION
,
INTENT(IN)
:: TTILD(npoin)
53
DOUBLE PRECISION
,
INTENT(INOUT)
:: TBOR(nptfr)
54
!
55
!+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
56
!
57
INTEGER
K
58
!
59
!----------------------------------------------------------------------
60
!
61
! INITIALISES TBOR (SEE CONSTRUCTION OF LIMTRA IN DIFFIN)
62
!
63
IF
(iconv.EQ.
adv_car
)
THEN
64
!
65
DO
k=1,nptfr
66
!
67
! IMPOSES THE RESULT OF ADVECTION AT FREE EXITS
68
! WITH THE METHOD OF CHARACTERISTICS
69
!
70
IF
(litbor(k).EQ.
ksort
) tbor(k) = ttild(nbor(k))
71
!
72
ENDDO
! K
73
!
74
ENDIF
75
!
76
!-----------------------------------------------------------------------
77
!
78
RETURN
79
END
declarations_special
Definition:
declarations_special.F:3
declarations_telemac
Definition:
declarations_telemac.f:3
diffcl
subroutine diffcl(LITBOR, TTILD, TBOR, NBOR, ICONV, NPOIN, NPTFR)
Definition:
diffcl.f:7
declarations_telemac::adv_car
integer, parameter adv_car
Definition:
declarations_telemac.f:82
declarations_telemac::ksort
integer, parameter ksort
Definition:
declarations_telemac.f:41