Changeset 3552 for trunk/LMDZ.GENERIC/libf/phystd/soil_settings.F
- Timestamp:
- Dec 13, 2024, 5:17:13 PM (9 days ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.GENERIC/libf/phystd/soil_settings.F
r1538 r3552 81 81 ! ------------------- 82 82 ! 1.1 Start by reading how many layers of soil there are 83 dimlen=inquire_dimension_length( "subsurface_layers")83 dimlen=inquire_dimension_length(nid,"subsurface_layers") 84 84 85 85 if (dimlen.ne.nsoil) then … … 97 97 98 98 ! check if olmlayer distribution matches current one 99 call get_var( "soildepth",oldmlayer,found)99 call get_var(nid,"soildepth",oldmlayer,found) 100 100 if (found) then 101 101 malpha=oldmlayer(2)/oldmlayer(1) … … 117 117 118 118 ! 1.2 Find out the # of dimensions <inertiedat> was defined as using 119 ndims=inquire_field_ndims( "inertiedat")119 ndims=inquire_field_ndims(nid,"inertiedat") 120 120 ! 1.3 Read depths values or set olddepthdef flag and values 121 121 if (ndims.eq.1) then ! we know that there is none … … 138 138 ! read <depth> coordinate 139 139 if (interpol) then !put values in oldmlayer 140 call get_var( "soildepth",oldmlayer,found)140 call get_var(nid,"soildepth",oldmlayer,found) 141 141 if (.not.found) then 142 142 write(*,*)'soil_settings: Problem while reading <soildepth>' 143 143 endif 144 144 else ! put values in mlayer 145 call get_var( "soildepth",mlayer,found)145 call get_var(nid,"soildepth",mlayer,found) 146 146 print*,"mlayer",mlayer 147 147 if (.not.found) then … … 205 205 ! Read Surface thermal inertia 206 206 allocate(surfinertia(ngrid)) 207 call get_field( "inertiedat",surfinertia,found)207 call get_field(nid,"inertiedat",surfinertia,found) 208 208 if (.not.found) then 209 209 write(*,*) "soil_settings: Failed loading <inertiedat>" … … 228 228 endif 229 229 endif ! of if (.not.allocated(oldinertiedat)) 230 call get_field( "inertiedat",oldinertiedat,found)230 call get_field(nid,"inertiedat",oldinertiedat,found) 231 231 if (.not.found) then 232 232 write(*,*) "soil_settings: Failed loading <inertiedat>" … … 234 234 endif 235 235 else ! put values in therm_i 236 call get_field( "inertiedat",inertiedat,found)236 call get_field(nid,"inertiedat",inertiedat,found) 237 237 if (.not.found) then 238 238 write(*,*) "soil_settings: Failed loading <inertiedat>" … … 246 246 ! ------------------------- 247 247 ! ierr=nf90_inq_varid(nid,"tsoil",nvarid) 248 ok=inquire_field( "tsoil")248 ok=inquire_field(nid,"tsoil") 249 249 ! if (ierr.ne.nf90_noerr) then 250 250 if (.not.ok) then … … 264 264 endif 265 265 endif 266 call get_field( "tsoil",oldtsoil,found)266 call get_field(nid,"tsoil",oldtsoil,found) 267 267 if (.not.found) then 268 268 write(*,*) "soil_settings: Failed loading <tsoil>" … … 270 270 endif 271 271 else ! put values in tsoil 272 call get_field("tsoil",tsoil,found,timeindex=indextime) 272 call get_field(nid,"tsoil",tsoil,found, 273 & timeindex=indextime) 273 274 if (.not.found) then 274 275 write(*,*) "soil_settings: Failed loading <tsoil>"
Note: See TracChangeset
for help on using the changeset viewer.