The TELEMAC-MASCARET system  trunk
get_bnd_connectivity.f
Go to the documentation of this file.
1 ! **********************
2  SUBROUTINE get_bnd_connectivity
3 ! **********************
4 !
5  &(fformat,fid,typ_bnd_elem,nelebd,ndp,ikle_bnd,ierr)
6 !
7 !***********************************************************************
8 ! HERMES V7P0 01/05/2014
9 !***********************************************************************
10 !
11 !brief Reads the connectivity of the boundary elements
12 !
13 !history Y AUDOUIN (LNHE)
14 !+ 24/03/2014
15 !+ V7P0
16 !+
17 !
18 !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
19 !| FFORMAT |-->| FORMAT OF THE FILE
20 !| FID |-->| FILE DESCRIPTOR
21 !| TYP_BND_ELEM |-->| TYPE OF THE BOUNDARY ELEMENTS
22 !| NELEBD |-->| NUMBER OF BOUNDARY ELEMENTS
23 !| NDP |-->| NUMBER OF POINTS PER ELEMENT
24 !| IKLE_BND |<->| THE CONNECTIVITY OF THE BOUNDARY ELEMENTS
25 !| IERR |<--| 0 IF NO ERROR DURING THE EXECUTION
26 !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
27 !
28  USE utils_serafin
29  USE utils_med
30  USE utils_cgns
32  IMPLICIT NONE
33 !
34 !+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
35 !
36  CHARACTER(LEN=8), INTENT(IN) :: FFORMAT
37  INTEGER, INTENT(IN) :: FID,TYP_BND_ELEM,NELEBD,NDP
38  INTEGER, INTENT(INOUT) :: IKLE_BND(ndp*nelebd)
39  INTEGER, INTENT(OUT) :: IERR
40 !
41 !+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
42 !
43  IF((typ_bnd_elem.EQ.type_null).OR.(nelebd.EQ.0)) RETURN
44 !
45  SELECT CASE (fformat(1:7))
46  CASE ('SERAFIN')
47  CALL get_bnd_connectivity_srf(fid, typ_bnd_elem,nelebd,ndp,
48  & ikle_bnd,ierr)
49  CASE ('MED ')
50  CALL get_bnd_connectivity_med(fid, typ_bnd_elem,nelebd,ndp,
51  & ikle_bnd,ierr)
52  CASE ('CGNS ')
53  CALL get_bnd_connectivity_cgns(fid, typ_bnd_elem,nelebd,ndp,
54  & ikle_bnd,ierr)
55  CASE DEFAULT
57  WRITE(error_message,*)
58  & 'GET_BND_CONNECTIVITY: BAD FILE FORMAT: ', fformat
59  RETURN
60  END SELECT
61 !
62 !-----------------------------------------------------------------------
63 !
64  RETURN
65  END
subroutine get_bnd_connectivity_cgns(FILE_ID, TYP_BND_ELT, NELEBD, NDP, IKLE, IERR)
Definition: utils_cgns.F:1371
subroutine get_bnd_connectivity_srf(FILE_ID, TYP_BND_ELT, NELEBD, NDP, IKLE, IERR)
subroutine get_bnd_connectivity(FFORMAT, FID, TYP_BND_ELEM, NELEBD, NDP, IKLE_BND, IERR)
subroutine get_bnd_connectivity_med(FILE_ID, TYPE_ELEM, NELEBD, NDP, BND_IKLE, IERR)
Definition: utils_med.F:2087
character(len=200) error_message
integer, parameter type_null
integer, parameter hermes_unknown_file_format_err