Changeset 3736 for trunk/LMDZ.PLUTO/libf/phypluto/soil_settings.F90
- Timestamp:
- Apr 25, 2025, 10:57:05 AM (3 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.PLUTO/libf/phypluto/soil_settings.F90
r3503 r3736 82 82 ! ------------------- 83 83 ! 1.1 Start by reading how many layers of soil there are 84 dimlen=inquire_dimension_length( "subsurface_layers")84 dimlen=inquire_dimension_length(nid,"subsurface_layers") 85 85 86 86 if (dimlen.ne.nsoil) then … … 98 98 99 99 ! check if olmlayer distribution matches current one 100 call get_var( "soildepth",oldmlayer,found)100 call get_var(nid,"soildepth",oldmlayer,found) 101 101 if (found) then 102 102 malpha=oldmlayer(2)/oldmlayer(1) … … 118 118 119 119 ! 1.2 Find out the # of dimensions <inertiedat> was defined as using 120 ndims=inquire_field_ndims( "inertiedat")120 ndims=inquire_field_ndims(nid,"inertiedat") 121 121 ! 1.3 Read depths values or set olddepthdef flag and values 122 122 if (ndims.eq.1) then ! we know that there is none … … 139 139 ! read <depth> coordinate 140 140 if (interpol) then !put values in oldmlayer 141 call get_var( "soildepth",oldmlayer,found)141 call get_var(nid,"soildepth",oldmlayer,found) 142 142 if (.not.found) then 143 143 if (is_master) write(*,*)'soil_settings: Problem while reading <soildepth>' 144 144 endif 145 145 else ! put values in mlayer 146 call get_var( "soildepth",mlayer,found)146 call get_var(nid,"soildepth",mlayer,found) 147 147 if (is_master) print*,"mlayer",mlayer 148 148 if (.not.found) then … … 206 206 ! Read Surface thermal inertia 207 207 allocate(surfinertia(ngrid)) 208 call get_field( "inertiedat",surfinertia,found)208 call get_field(nid,"inertiedat",surfinertia,found) 209 209 if (.not.found) then 210 210 if (is_master) write(*,*) "soil_settings: Failed loading <inertiedat>" … … 229 229 endif 230 230 endif ! of if (.not.allocated(oldinertiedat)) 231 call get_field( "inertiedat",oldinertiedat,found)231 call get_field(nid,"inertiedat",oldinertiedat,found) 232 232 if (.not.found) then 233 233 if (is_master) write(*,*) "soil_settings: Failed loading <inertiedat>" … … 235 235 endif 236 236 else ! put values in therm_i 237 call get_field( "inertiedat",inertiedat,found)237 call get_field(nid,"inertiedat",inertiedat,found) 238 238 if (.not.found) then 239 239 if (is_master) write(*,*) "soil_settings: Failed loading <inertiedat>" … … 247 247 ! ------------------------- 248 248 ! ierr=nf90_inq_varid(nid,"tsoil",nvarid) 249 ok=inquire_field( "tsoil")249 ok=inquire_field(nid,"tsoil") 250 250 ! if (ierr.ne.nf90_noerr) then 251 251 if (.not.ok) then … … 265 265 endif 266 266 endif 267 call get_field( "tsoil",oldtsoil,found)267 call get_field(nid,"tsoil",oldtsoil,found) 268 268 if (.not.found) then 269 269 if (is_master) write(*,*) "soil_settings: Failed loading <tsoil>" … … 271 271 endif 272 272 else ! put values in tsoil 273 call get_field( "tsoil",tsoil,found,timeindex=indextime)273 call get_field(nid,"tsoil",tsoil,found,timeindex=indextime) 274 274 if (.not.found) then 275 275 if (is_master) write(*,*) "soil_settings: Failed loading <tsoil>"
Note: See TracChangeset
for help on using the changeset viewer.