The TELEMAC-MASCARET system  trunk
get_mesh_title.f
Go to the documentation of this file.
1 ! *************************
2  SUBROUTINE get_mesh_title
3 ! *************************
4 !
5  &(fformat,fid,title,ierr)
6 !
7 !***********************************************************************
8 ! HERMES V7P0 01/05/2014
9 !***********************************************************************
10 !
11 !brief Returns the title from a mesh file
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 !| TITLE |<->| TITLE OF THE MESH FILE
22 !| IERR |<--| 0 IF NO ERROR DURING THE EXECUTION
23 !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
24 !
25  USE utils_serafin
26  USE utils_med
27  USE utils_cgns
29  IMPLICIT NONE
30 !
31 !+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
32 !
33  CHARACTER(LEN=8), INTENT(IN) :: FFORMAT
34  INTEGER, INTENT(IN) :: FID
35  CHARACTER(LEN=80), INTENT(OUT) :: TITLE
36  INTEGER, INTENT(OUT) :: IERR
37 !
38 !+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
39 !
40  title = repeat(' ', 80)
41  SELECT CASE (fformat(1:7))
42  CASE ('SERAFIN')
43  CALL get_mesh_title_srf(fid, title, ierr)
44  CASE ('MED ')
45  CALL get_mesh_title_med(fid, title, ierr)
46  CASE ('CGNS ')
47  CALL get_mesh_title_cgns(fid, title, ierr)
48  CASE DEFAULT
50  WRITE(error_message,*)
51  & 'GET_MESH_TITLE: BAD FILE FORMAT: ',fformat
52  RETURN
53  END SELECT
54 !
55 !-----------------------------------------------------------------------
56 !
57  RETURN
58  END
subroutine get_mesh_title_med(FILE_ID, TITLE, IERR)
Definition: utils_med.F:577
character(len=200) error_message
subroutine get_mesh_title_cgns(FILE_ID, TITLE, IERR)
Definition: utils_cgns.F:589
subroutine get_mesh_title(FFORMAT, FID, TITLE, IERR)
Definition: get_mesh_title.f:7
subroutine get_mesh_title_srf(FILE_ID, TITLE, IERR)
integer, parameter hermes_unknown_file_format_err