The TELEMAC-MASCARET system  trunk
get_mesh_nptir.f
Go to the documentation of this file.
1 ! *************************
2  SUBROUTINE get_mesh_nptir
3 ! *************************
4 !
5  &(fformat,fid,nptir,ierr)
6 !
7 !***********************************************************************
8 ! HERMES V7P0 01/05/2014
9 !***********************************************************************
10 !
11 !brief Returns the number of interface point
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 !| NPTIR |<->| NUMBER OF INTERFACE POINT
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  INTEGER, INTENT(OUT) :: NPTIR
36  INTEGER, INTENT(OUT) :: IERR
37 !
38 !+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
39 !
40  nptir = 0
41  SELECT CASE (fformat(1:7))
42  CASE ('SERAFIN')
43  CALL get_mesh_nptir_srf(fid, nptir, ierr)
44  CASE ('MED ')
45  CALL get_mesh_nptir_med(fid, nptir, ierr)
46  CASE ('CGNS ')
47  CALL get_mesh_nptir_cgns(fid, nptir, ierr)
48  CASE DEFAULT
50  WRITE(error_message,*)
51  & 'GET_MESH_NPTIR: BAD FILE FORMAT: ',fformat
52  RETURN
53  END SELECT
54 !
55 !-----------------------------------------------------------------------
56 !
57  RETURN
58  END
subroutine get_mesh_nptir(FFORMAT, FID, NPTIR, IERR)
Definition: get_mesh_nptir.f:7
character(len=200) error_message
subroutine get_mesh_nptir_srf(FILE_ID, NPTIR, IERR)
subroutine get_mesh_nptir_cgns(FILE_ID, NPTIR, IERR)
Definition: utils_cgns.F:1122
subroutine get_mesh_nptir_med(FILE_ID, NPTIR, IERR)
Definition: utils_med.F:1116
integer, parameter hermes_unknown_file_format_err