The TELEMAC-MASCARET system
trunk
sources
utils
bief
bief_deallvec.f
Go to the documentation of this file.
1
! ************************
2
SUBROUTINE
bief_deallvec
3
! ************************
4
!
5
&(vec)
6
!
7
!***********************************************************************
8
! BIEF V7P2
9
!***********************************************************************
10
!
11
!brief DEALLOCATES MEMORY FOR A VECTOR STRUCTURE.
12
!
13
!history Y AUDOUIN (LNHE)
14
!+ 23/05/2013
15
!+ V7P1
16
!+ First version
17
!
18
!history J-M HERVOUET (EDF LAB, LNHE)
19
!+ 21/01/2016
20
!+ V7P2
21
!+ Adding VEC%NAT=3, combining double precision and integers.
22
!
23
!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
24
!| VEC |<--| VECTOR TO BE DEALLOCATED
25
!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
26
!
27
USE
bief
28
!
29
USE
declarations_special
30
IMPLICIT NONE
31
!
32
!+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
33
!
34
TYPE
(bief_obj) ,
INTENT(INOUT)
:: VEC
35
!
36
!+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
37
!
38
IF
(vec%NAT.EQ.1)
THEN
39
IF
(
ASSOCIATED
(vec%R))
DEALLOCATE
(vec%R)
40
ELSEIF
(vec%NAT.EQ.2)
THEN
41
IF
(
ASSOCIATED
(vec%I))
DEALLOCATE
(vec%I)
42
ELSEIF
(vec%NAT.EQ.3)
THEN
43
IF
(
ASSOCIATED
(vec%R))
DEALLOCATE
(vec%R)
44
IF
(
ASSOCIATED
(vec%I))
DEALLOCATE
(vec%I)
45
ELSE
46
WRITE
(
lu
,*)
'UNKNOWN NAT IN BIEF_DEALLVEC FOR :'
, vec%NAME
47
CALL
plante(1)
48
stop
49
ENDIF
50
NULLIFY
(vec%R)
51
NULLIFY
(vec%I)
52
!
53
!-----------------------------------------------------------------------
54
!
55
RETURN
56
END SUBROUTINE
bief_deallvec
declarations_special
Definition:
declarations_special.F:3
declarations_special::lu
integer lu
Definition:
declarations_special.F:45
bief_deallvec
subroutine bief_deallvec(VEC)
Definition:
bief_deallvec.f:7
bief
Definition:
bief.f:3