Changeset 999 for trunk/LMDZ.MARS/libf/phymars/soil_settings.F
- Timestamp:
- Jul 2, 2013, 9:40:28 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/libf/phymars/soil_settings.F
r38 r999 1 subroutine soil_settings(nid,ngrid,nsoil,tsurf,tsoil )1 subroutine soil_settings(nid,ngrid,nsoil,tsurf,tsoil,indextime) 2 2 3 3 use netcdf … … 12 12 ! r4 or r8 restarts independently of having compiled 13 13 ! the GCM in r4 or r8) 14 ! June 2013 TN : Possibility to read files with a time axis 15 ! 14 16 ! 15 17 ! This subroutine reads from a NetCDF file (opened by the caller) … … 42 44 integer nsoil ! # of soil layers 43 45 real tsurf(ngrid) ! surface temperature 46 integer indextime ! position on time axis 44 47 ! output: 45 48 real tsoil(ngridmx,nsoilmx) ! soil temperature … … 53 56 integer ndims ! # of dimensions of read <inertiedat> data 54 57 integer ig,iloop ! loop counters 58 59 integer edges(3),corner(3) ! to read a specific time 55 60 56 61 logical :: olddepthdef=.false. ! flag … … 298 303 endif 299 304 else ! put values in tsoil 305 corner(1)=1 306 corner(2)=1 307 corner(3)=indextime 308 edges(1)=ngridmx 309 edges(2)=nsoilmx 310 edges(3)=1 311 !ierr=nf90_get_var(nid,nvarid,tsoil,corner,edges) 300 312 ierr=nf90_get_var(nid,nvarid,tsoil) 301 313 if (ierr.ne.nf90_noerr) then
Note: See TracChangeset
for help on using the changeset viewer.