The TELEMAC-MASCARET system  trunk
bief_deallmat.f
Go to the documentation of this file.
1 ! ************************
2  SUBROUTINE bief_deallmat
3 ! ************************
4 !
5  &(mat)
6 !
7 !***********************************************************************
8 ! BIEF V7P1
9 !***********************************************************************
10 !
11 !brief DEALLOCATES MEMORY FOR A REAL MATRIX STRUCTURE.
12 !
13 !history Y AUDOUIN (LNHE)
14 !+ 25/05/2013
15 !+ V7P1
16 !+
17 !
18 !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
19 !| MAT |<->| THE MATRIX TO BE DEALLOCATED
20 !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
21 !
22  USE bief
23 !
25  IMPLICIT NONE
26 !
27 !+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
28 !
29  TYPE(bief_obj) , INTENT(INOUT) :: MAT
30 !
31 !+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
32 !
33  CALL bief_deallvec(mat%D)
34  DEALLOCATE(mat%D)
35  NULLIFY(mat%D)
36  CALL bief_deallvec(mat%X)
37  DEALLOCATE(mat%X)
38  NULLIFY(mat%X)
39 !
40 !-----------------------------------------------------------------------
41 !
42  RETURN
43  END
subroutine bief_deallmat(MAT)
Definition: bief_deallmat.f:7
subroutine bief_deallvec(VEC)
Definition: bief_deallvec.f:7
Definition: bief.f:3