Ignore:
Timestamp:
Apr 25, 2025, 10:57:05 AM (3 months ago)
Author:
afalco
Message:

Pluto: added missing controle descriptor parameters.
Update for restarts from generic (restarts in 1D)
AF

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.PLUTO/libf/phypluto/soil_settings.F90

    r3503 r3736  
    8282! -------------------
    8383! 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")
    8585
    8686        if (dimlen.ne.nsoil) then
     
    9898
    9999        ! check if olmlayer distribution matches current one
    100         call get_var("soildepth",oldmlayer,found)
     100        call get_var(nid,"soildepth",oldmlayer,found)
    101101        if (found) then
    102102          malpha=oldmlayer(2)/oldmlayer(1)
     
    118118
    119119! 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")
    121121! 1.3 Read depths values or set olddepthdef flag and values
    122122      if (ndims.eq.1) then ! we know that there is none
     
    139139        ! read <depth> coordinate
    140140        if (interpol) then !put values in oldmlayer
    141           call get_var("soildepth",oldmlayer,found)
     141          call get_var(nid,"soildepth",oldmlayer,found)
    142142          if (.not.found) then
    143143            if (is_master) write(*,*)'soil_settings: Problem while reading <soildepth>'
    144144          endif
    145145        else ! put values in mlayer
    146           call get_var("soildepth",mlayer,found)
     146          call get_var(nid,"soildepth",mlayer,found)
    147147          if (is_master) print*,"mlayer",mlayer
    148148          if (.not.found) then
     
    206206       ! Read Surface thermal inertia
    207207       allocate(surfinertia(ngrid))
    208        call get_field("inertiedat",surfinertia,found)
     208       call get_field(nid,"inertiedat",surfinertia,found)
    209209       if (.not.found) then
    210210         if (is_master) write(*,*) "soil_settings: Failed loading <inertiedat>"
     
    229229           endif
    230230         endif ! of if (.not.allocated(oldinertiedat))
    231         call get_field("inertiedat",oldinertiedat,found)
     231        call get_field(nid,"inertiedat",oldinertiedat,found)
    232232        if (.not.found) then
    233233          if (is_master) write(*,*) "soil_settings: Failed loading <inertiedat>"
     
    235235        endif
    236236       else ! put values in therm_i
    237          call get_field("inertiedat",inertiedat,found)
     237         call get_field(nid,"inertiedat",inertiedat,found)
    238238         if (.not.found) then
    239239           if (is_master) write(*,*) "soil_settings: Failed loading <inertiedat>"
     
    247247! -------------------------
    248248!      ierr=nf90_inq_varid(nid,"tsoil",nvarid)
    249       ok=inquire_field("tsoil")
     249      ok=inquire_field(nid,"tsoil")
    250250!      if (ierr.ne.nf90_noerr) then
    251251      if (.not.ok) then
     
    265265           endif
    266266         endif
    267          call get_field("tsoil",oldtsoil,found)
     267         call get_field(nid,"tsoil",oldtsoil,found)
    268268         if (.not.found) then
    269269           if (is_master) write(*,*) "soil_settings: Failed loading <tsoil>"
     
    271271         endif
    272272       else ! put values in tsoil
    273          call get_field("tsoil",tsoil,found,timeindex=indextime)
     273         call get_field(nid,"tsoil",tsoil,found,timeindex=indextime)
    274274         if (.not.found) then
    275275           if (is_master) write(*,*) "soil_settings: Failed loading <tsoil>"
Note: See TracChangeset for help on using the changeset viewer.