The TELEMAC-MASCARET system  trunk
get_mesh_connectivity.f
Go to the documentation of this file.
1 ! ********************************
2  SUBROUTINE get_mesh_connectivity
3 ! ********************************
4 !
5  &(fformat,fid,typ_elem,ikle,nelem,ndp,ierr)
6 !
7 !***********************************************************************
8 ! HERMES V7P0 01/05/2014
9 !***********************************************************************
10 !
11 !brief Returns the connectivity table for
12 !+ the element of type typ_elem in the mesh
13 !+ will do nothing if there are no element of typ_elem in the mesh
14 !
15 !history Y AUDOUIN (LNHE)
16 !+ 24/03/2014
17 !+ V7P0
18 !+
19 !
20 !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
21 !| FFORMAT |-->| FORMAT OF THE FILE
22 !| FID |-->| FILE DESCRIPTOR
23 !| TYP_ELEM |-->| TYPE OF THE ELEMENT
24 !| IKLE |<->| THE CONNECTIVITY TABLE
25 !| NELEM |-->| NUMBER OF ELEMENTS
26 !| NDP |-->| NUMBER OF POINTS PER ELEMENT
27 !| IERR |<--| 0 IF NO ERROR DURING THE EXECUTION
28 !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
29 !
30  USE utils_serafin
31  USE utils_med
32  USE utils_cgns
34  IMPLICIT NONE
35 !
36 !+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
37 !
38  CHARACTER(LEN=8), INTENT(IN) :: FFORMAT
39  INTEGER, INTENT(IN) :: FID
40  INTEGER, INTENT(IN) :: TYP_ELEM
41  INTEGER, INTENT(IN) :: NELEM
42  INTEGER, INTENT(IN) :: NDP
43  INTEGER, INTENT(INOUT) :: IKLE(nelem*ndp)
44  INTEGER, INTENT(OUT) :: IERR
45 !
46 !+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
47 !
48  SELECT CASE (fformat(1:7))
49  CASE ('SERAFIN')
50  CALL get_mesh_connectivity_srf(fid, typ_elem, ikle, nelem,
51  & ndp, ierr)
52  CASE ('MED ')
53  CALL get_mesh_connectivity_med(fid, typ_elem, ikle, nelem,
54  & ndp, ierr)
55  CASE ('CGNS ')
56  CALL get_mesh_connectivity_cgns(fid, typ_elem, ikle, nelem,
57  & ndp, ierr)
58  CASE DEFAULT
60  WRITE(error_message,*)
61  & 'GET_MESH_CONNECTIVITY: BAD FILE FORMAT: ', fformat
62  RETURN
63  END SELECT
64 !
65 !-----------------------------------------------------------------------
66 !
67  RETURN
68  END
subroutine get_mesh_connectivity_med(FILE_ID, TYPE_ELEM, IKLE, NELEM, NDP, IERR)
Definition: utils_med.F:747
character(len=200) error_message
subroutine get_mesh_connectivity_srf(FILE_ID, TYP_ELT, IKLE, NELEM, NDP, IERR)
subroutine get_mesh_connectivity_cgns(FILE_ID, TYP_ELT, IKLE, NELEM, NDP, IERR)
Definition: utils_cgns.F:740
subroutine get_mesh_connectivity(FFORMAT, FID, TYP_ELEM, IKLE, NELEM, NDP, IERR)
integer, parameter hermes_unknown_file_format_err