The TELEMAC-MASCARET system  trunk
close_bnd.f
Go to the documentation of this file.
1 ! ********************
2  SUBROUTINE close_bnd
3 ! ********************
4 !
5  &(fformat,file_id,ierr,mesh_number)
6 !
7 !***********************************************************************
8 ! HERMES V7P0 01/05/2014
9 !***********************************************************************
10 !
11 !BRIEF CLOSES A BOUNDARY FILE
12 !
13 !HISTORY Y AUDOUIN (LNHE)
14 !+ 24/03/2014
15 !+ V7P0
16 !+
17 !
18 !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
19 !| FFORMAT |-->| FORMAT OF THE FILE
20 !| FILE_ID |-->| FILE DESCRIPTOR
21 !| IERR |<--| 0 IF NO ERROR DURING THE EXECUTION
22 !| MESH_NUMBER |-->| IF PRESENT, THIS IS THE NUMBER OF THE PART OF
23 ! THE CONCATENATED FILE WE WANT TO ACCESS
24 !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
25 !
26  USE utils_serafin, ONLY: close_bnd_srf
27  USE utils_med, ONLY : close_bnd_med
28  USE utils_cgns, ONLY : close_bnd_cgns
30  IMPLICIT NONE
31 !
32 !+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
33 !
34  CHARACTER(LEN=8), INTENT(IN) :: FFORMAT
35  INTEGER, INTENT(IN) :: FILE_ID
36  INTEGER, INTENT(OUT) :: IERR
37  INTEGER, OPTIONAL, INTENT(IN) :: MESH_NUMBER
38 !
39 !+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
40 !
41  SELECT CASE (fformat(1:7))
42  CASE ('SERAFIN')
43  CALL close_bnd_srf(file_id,ierr,mesh_number)
44  CASE ('MED ')
45  CALL close_bnd_med(file_id,ierr,mesh_number)
46  CASE ('CGNS ')
47  CALL close_bnd_cgns(file_id,ierr)
48  CASE DEFAULT
50  WRITE(error_message,*) 'CLOSE_BND: BAD FILE FORMAT: ',fformat
51  RETURN
52  END SELECT
53 !
54 !-----------------------------------------------------------------------
55 !
56  RETURN
57  END
58 
subroutine close_bnd_med(FILE_ID, IERR, MESH_NUMBER)
Definition: utils_med.F:517
character(len=200) error_message
subroutine close_bnd(FFORMAT, FILE_ID, IERR, MESH_NUMBER)
Definition: close_bnd.f:7
subroutine close_bnd_srf(FILE_ID, IERR, MESH_NUMBER)
subroutine close_bnd_cgns(FILE_ID, IERR)
Definition: utils_cgns.F:370
integer, parameter hermes_unknown_file_format_err