The TELEMAC-MASCARET system
trunk
sources
utils
bief
addblo.f
Go to the documentation of this file.
1
! *****************
2
SUBROUTINE
addblo
3
! *****************
4
!
5
&( bloc , obj )
6
!
7
!***********************************************************************
8
! BIEF V6P1 21/08/2010
9
!***********************************************************************
10
!
11
!brief ADDS AN OBJECT TO A BLOCK STRUCTURE (WHICH IS A LIST)
12
!
13
!history J-M HERVOUET (LNH)
14
!+ 01/03/95
15
!+ V5P5
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
!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
31
!| BLOC |<->| FORTRAN NAME OF BLOCK
32
!| OBJ |-->| BIEF_OBJ STRUCTURE TO BE ADDED IN THE BLOCK
33
!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
34
!
35
USE
bief
, ex_addblo =>
addblo
36
!
37
USE
declarations_special
38
IMPLICIT NONE
39
!
40
!+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
41
!
42
TYPE
(bief_obj),
INTENT(INOUT)
:: BLOC
43
TYPE
(bief_obj),
INTENT(IN)
,
TARGET
:: OBJ
44
!
45
!+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
46
!
47
! INCREASES THE NUMBER OF OBJECTS IN THE BLOCK
48
!
49
bloc%N = bloc%N + 1
50
IF
(bloc%N.GT.bloc%MAXBLOCK)
THEN
51
WRITE
(
lu
,*)
'ADDBLO : '
,obj%NAME,
' TOO SMALL'
52
WRITE
(
lu
,*)
' INCREASE MAXBLOCK IN ALLBLO'
53
WRITE
(
lu
,*)
' (CURRENTLY : '
,bloc%MAXBLOCK,
')'
54
CALL
plante(1)
55
stop
56
ENDIF
57
!
58
! ASSIGNS THE TARGET OBJ TO THE POINTER OF RANK BLOC%N
59
!
60
bloc%ADR(bloc%N)%P => obj
61
!
62
!-----------------------------------------------------------------------
63
!
64
RETURN
65
END
declarations_special
Definition:
declarations_special.F:3
declarations_special::lu
integer lu
Definition:
declarations_special.F:45
addblo
subroutine addblo(BLOC, OBJ)
Definition:
addblo.f:7
bief
Definition:
bief.f:3