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