Changeset 3189


Ignore:
Timestamp:
Jan 29, 2024, 11:14:07 PM (10 months ago)
Author:
llange
Message:

PEM
Fixing bug when recomputing Tsoil for the startfi. It is now done with: Tsoil averaged + Delta T where delta T is tthe difference between the instantaneous soil temperature and the yearly averaged soil temperature in the original startfi.
LL

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.COMMON/libf/evolution/pem.F90

    r3188 r3189  
    202202real, dimension(:,:),     allocatable :: tsurf_ave                          ! Physic x SLOPE field: Averaged Surface Temperature [K]
    203203real, dimension(:,:,:),   allocatable :: tsoil_ave                          ! Physic x SOIL x SLOPE field: Averaged Soil Temperature [K]
     204real, dimension(:,:,:),   allocatable :: tsoil_anom                         ! Amplitude between instataneous and yearly average soil temperature [K]
    204205real, dimension(:,:,:),   allocatable :: tsurf_PCM_timeseries               ! ngrid x SLOPE XTULES field: Surface Temperature in timeseries [K]
    205206real, dimension(:,:,:,:), allocatable :: tsoil_phys_PEM_timeseries          ! IG x SLOPE XTULES field: Non averaged Soil Temperature [K]
     
    476477
    477478allocate(tsoil_ave(ngrid,nsoilmx,nslope))
     479allocate(tsoil_anom(ngrid,nsoilmx,nslope))
    478480allocate(watersoil_density_PEM_ave(ngrid,nsoilmx_PEM,nslope))
    479481allocate(vmr_co2_PCM(ngrid,timelen))
     
    523525call ini_ice_table_porefilling(ngrid,nslope)
    524526
     527tsoil_anom(:,:,:) = tsoil(:,:,:) - tsoil_ave(:,:,:) ! compute anomaly between Tsoil(t) in the startfi - <Tsoil> to recompute properly tsoil in the restart
    525528if (soil_pem) then
    526529    call soil_settings_PEM(ngrid,nslope,nsoilmx_PEM,nsoilmx,inertiesoil,TI_PEM)
     
    985988if (soil_pem) then
    986989    call interpol_TI_PEM2PCM(ngrid,nslope,nsoilmx_PEM,nsoilmx,TI_PEM,inertiesoil)
    987     tsoil = tsoil_phys_PEM_timeseries(:,1:nsoilmx,:,timelen)
     990    tsoil = tsoil_PEM(:,1:nsoilmx,:) + tsoil_anom
    988991#ifndef CPP_STD
    989992    flux_geo = fluxgeo
Note: See TracChangeset for help on using the changeset viewer.