Last change
on this file since 5408 was
3605,
checked in by lguez, 5 years ago
|
Merge revisions 3427:3600 of trunk into branch Ocean_skin
|
-
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
|
Rev | Line | |
---|
[1671] | 1 | ! |
---|
| 2 | ! $Id: $ |
---|
| 3 | ! |
---|
[1994] | 4 | SUBROUTINE phyredem (fichnom) |
---|
[1671] | 5 | |
---|
[2395] | 6 | USE geometry_mod, ONLY : longitude_deg, latitude_deg |
---|
[3605] | 7 | USE iostart, ONLY: open_restartphy, close_restartphy, enddef_restartphy, put_field, put_var |
---|
[1671] | 8 | |
---|
[3605] | 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) |
---|
[3605] | 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 | |
---|
[3605] | 26 | DO pass=1,2 ! pass=1 netcdf definition ; pass=2 netcdf write |
---|
[1671] | 27 | |
---|
[3605] | 28 | CALL put_var(pass, "controle", "Control parameters", tab_cntrl) |
---|
| 29 | |
---|
[1994] | 30 | ! coordinates |
---|
[1671] | 31 | |
---|
[3605] | 32 | CALL put_field(pass, "longitude", "Longitudes on physics grid", longitude_deg) |
---|
[1671] | 33 | |
---|
[3605] | 34 | CALL put_field(pass, "latitude", "Latitudes on physics grid", latitude_deg) |
---|
[1671] | 35 | |
---|
[3605] | 36 | IF (pass==1) CALL enddef_restartphy |
---|
| 37 | IF (pass==2) CALL close_restartphy |
---|
| 38 | |
---|
| 39 | ENDDO |
---|
[1994] | 40 | ! close file |
---|
[1671] | 41 | |
---|
[1994] | 42 | CALL close_restartphy |
---|
| 43 | !$OMP BARRIER |
---|
[1671] | 44 | |
---|
[1994] | 45 | END SUBROUTINE phyredem |
---|
Note: See
TracBrowser
for help on using the repository browser.