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

Last change on this file since 3937 was 3578, checked in by fhourdin, 5 years ago

Correction faites dans phylmd mais non reportee dans phydev.
Permet de refaire tourner phydev sans etat initial.
Avec par exemple
iflag_phys=101
read_start=n

  • 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: 949 bytes
RevLine 
[1671]1!
2! $Id: $
3!
[1994]4SUBROUTINE phyredem (fichnom)
[1671]5
[2395]6  USE geometry_mod, ONLY : longitude_deg, latitude_deg
[3578]7  USE iostart, ONLY: open_restartphy, close_restartphy, enddef_restartphy, put_field, put_var
[1671]8
[3578]9
[1994]10  IMPLICIT NONE
[1671]11
[1994]12  CHARACTER(LEN=*),INTENT(IN) :: fichnom
[1671]13
[1994]14  INTEGER,PARAMETER :: tab_cntrl_len=100
15  REAL :: tab_cntrl(tab_cntrl_len)
[3546]16  INTEGER :: pass
[1671]17
[1994]18  ! open file
[1671]19
[1994]20  CALL open_restartphy(fichnom)
[1671]21
[1994]22  ! tab_cntrl() contains run parameters
[1671]23
[1994]24  tab_cntrl(:)=0.0
[1671]25
[3546]26  DO pass=1,2   ! pass=1 netcdf definition ; pass=2 netcdf write
[1671]27
[3546]28    CALL put_var(pass, "controle", "Control parameters", tab_cntrl)
29
[1994]30  ! coordinates
[1671]31
[3546]32    CALL put_field(pass, "longitude", "Longitudes on physics grid", longitude_deg)
[1671]33     
[3546]34    CALL put_field(pass, "latitude", "Latitudes on physics grid", latitude_deg)
[1671]35
[3578]36    IF (pass==1) CALL enddef_restartphy
37    IF (pass==2) CALL close_restartphy
38
[3546]39  ENDDO
[1994]40  ! close file
[1671]41
[1994]42  CALL close_restartphy
43  !$OMP BARRIER
[1671]44
[1994]45END SUBROUTINE phyredem
Note: See TracBrowser for help on using the repository browser.