Changeset 3605 for LMDZ6/branches/Ocean_skin/libf/phydev/phyredem.F90
- Timestamp:
- Nov 21, 2019, 4:43:45 PM (5 years ago)
- Location:
- LMDZ6/branches/Ocean_skin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/branches/Ocean_skin
-
LMDZ6/branches/Ocean_skin/libf/phydev/phyredem.F90
r2395 r3605 5 5 6 6 USE geometry_mod, ONLY : longitude_deg, latitude_deg 7 USE iostart, ONLY: open_restartphy, close_restartphy, put_var, put_field 7 USE iostart, ONLY: open_restartphy, close_restartphy, enddef_restartphy, put_field, put_var 8 8 9 9 10 IMPLICIT NONE … … 13 14 INTEGER,PARAMETER :: tab_cntrl_len=100 14 15 REAL :: tab_cntrl(tab_cntrl_len) 16 INTEGER :: pass 15 17 16 18 ! open file … … 21 23 22 24 tab_cntrl(:)=0.0 23 24 25 25 CALL put_var("controle", "Control parameters", tab_cntrl) 26 DO pass=1,2 ! pass=1 netcdf definition ; pass=2 netcdf write 27 28 CALL put_var(pass, "controle", "Control parameters", tab_cntrl) 26 29 27 30 ! coordinates 28 31 29 CALL put_field("longitude", "Longitudes on physics grid", longitude_deg)32 CALL put_field(pass, "longitude", "Longitudes on physics grid", longitude_deg) 30 33 31 CALL put_field("latitude", "Latitudes on physics grid", latitude_deg)34 CALL put_field(pass, "latitude", "Latitudes on physics grid", latitude_deg) 32 35 36 IF (pass==1) CALL enddef_restartphy 37 IF (pass==2) CALL close_restartphy 38 39 ENDDO 33 40 ! close file 34 41
Note: See TracChangeset
for help on using the changeset viewer.