source: LMDZ6/trunk/libf/phydev/phyredem.F90 @ 3567

Last change on this file since 3567 was 3546, checked in by Laurent Fairhead, 5 years ago

Modifications needed after DNAMICO/LMDZ merge

  • Property copyright set to
    Name of program: LMDZ
    Creation date: 1984
    Version: LMDZ5
    License: CeCILL version 2
    Holder: Laboratoire de m\'et\'eorologie dynamique, CNRS, UMR 8539
    See the license file in the root directory
File size: 849 bytes
Line 
1!
2! $Id: $
3!
4SUBROUTINE phyredem (fichnom)
5
6  USE geometry_mod, ONLY : longitude_deg, latitude_deg
7  USE iostart, ONLY: open_restartphy, close_restartphy, put_var, put_field
8
9  IMPLICIT NONE
10
11  CHARACTER(LEN=*),INTENT(IN) :: fichnom
12
13  INTEGER,PARAMETER :: tab_cntrl_len=100
14  REAL :: tab_cntrl(tab_cntrl_len)
15  INTEGER :: pass
16
17  ! open file
18
19  CALL open_restartphy(fichnom)
20
21  ! tab_cntrl() contains run parameters
22
23  tab_cntrl(:)=0.0
24
25  DO pass=1,2   ! pass=1 netcdf definition ; pass=2 netcdf write
26
27    CALL put_var(pass, "controle", "Control parameters", tab_cntrl)
28
29  ! coordinates
30
31    CALL put_field(pass, "longitude", "Longitudes on physics grid", longitude_deg)
32     
33    CALL put_field(pass, "latitude", "Latitudes on physics grid", latitude_deg)
34
35  ENDDO
36  ! close file
37
38  CALL close_restartphy
39  !$OMP BARRIER
40
41END SUBROUTINE phyredem
Note: See TracBrowser for help on using the repository browser.