The TELEMAC-MASCARET system  trunk
update_data_mesh.f
Go to the documentation of this file.
1 ! ***************************
2  SUBROUTINE update_data_mesh
3 ! ***************************
4 !
5  &(fformat,file_id,time,record,nb_dim_mesh,npoin,coord,ierr)
6 !
7 !***********************************************************************
8 ! HERMES V7P0 01/05/2014
9 !***********************************************************************
10 !
11 !brief Update mesh coordinates
12 !
13 !history V STOBIAC (LNHE)
14 !+ 10/12/2014
15 !+ V7P0
16 !+
17 !
18 !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
19 !| FFORMAT |-->| FORMAT OF THE FILE
20 !| file_id |-->| File descriptor
21 !| time |-->| Time of the data
22 !| record |-->| Time step of the data
23 !| NB_DIM_MESH |-->| Dimension of the mesh
24 !| NPOIN |-->| Number of points in the mesh
25 !| COORD |-->| Coordinates table
26 !| Ierr |<--| 0 if no error during the opening
27 !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
28 !
29  USE utils_med
31  IMPLICIT NONE
32 !
33 !+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
34 !
35  CHARACTER(LEN=8), INTENT(IN) :: FFORMAT
36  INTEGER, INTENT(IN) :: FILE_ID
37  DOUBLE PRECISION, INTENT(IN) :: TIME
38  INTEGER, INTENT(IN) :: RECORD
39  INTEGER, INTENT(IN) :: NB_DIM_MESH, NPOIN
40  DOUBLE PRECISION, INTENT(IN) :: COORD(nb_dim_mesh*npoin)
41  INTEGER, INTENT(OUT) :: IERR
42 !
43 !+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
44 !
45  ierr=0
46  SELECT CASE (fformat(1:7))
47  CASE ('SERAFIN')
48  WRITE(lu,*)'NO NEED TO UPDATE MESH COORDINATES FOR SLF FORMAT'
49  CASE ('MED ')
50 ! Do nothing for now as the option is not available in Paravis
51  RETURN
52  CALL update_data_mesh_med (file_id,time,record,nb_dim_mesh,
53  & npoin,coord,ierr)
54  CASE DEFAULT
56  WRITE(error_message,*) 'ADD_DATA: BAD FILE FORMAT: ',fformat
57  RETURN
58  END SELECT
59 !
60 !-----------------------------------------------------------------------
61 !
62  RETURN
63  END
subroutine update_data_mesh(FFORMAT, FILE_ID, TIME, RECORD, NB_DIM_MESH, NPOIN, COORD, IERR)
character(len=200) error_message
subroutine update_data_mesh_med(FILE_ID, TIME, RECORD, NB_DIM_MESH, NPOIN, COORD, IERR)
Definition: utils_med.F:4446
integer, parameter hermes_unknown_file_format_err