Ignore:
Timestamp:
Feb 12, 2025, 12:03:26 PM (3 days ago)
Author:
jbclement
Message:

PEM:
Few small adjustments in the code.
JBC

File:
1 edited

Legend:

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

    r3616 r3620  
    5252real, dimension(ngrid,nsoilmx,nslope,timelen), intent(out) :: watersoil_density_timeseries ! Water density timeseries in the soil layer [kg/m^3]
    5353! Local variables
    54 integer                               :: i, j, l, islope                       ! Loop variables
     54integer                               :: i, j, t, islope                       ! Loop variables
    5555real                                  :: A, B                                  ! Intermediate variables to compute the mean molar mass of the layer
    5656character(:), allocatable             :: num                                   ! For reading sloped variables
     
    243243    !------
    244244    call get_var3("tsurf"//num,var3_read_1)
    245        write(*,*) "Data for tsurf"//num//" downloaded."
     245    write(*,*) "Data for tsurf"//num//" downloaded."
    246246
    247247    ! Compute average over the year for each point
     
    263263        var3_read_3 = sum(var4_read,4)/timelen
    264264#ifndef CPP_1D
    265         do l = 1,nsoilmx
    266             call gr_dyn_fi(timelen,iim_input + 1,jjm_input + 1,ngrid,var4_read(:,:,l,:),tsoil_timeseries(:,l,islope,:))
     265        do t = 1,timelen
     266            call gr_dyn_fi(nsoilmx,iim_input + 1,jjm_input + 1,ngrid,var4_read(:,:,:,t),tsoil_timeseries(:,:,islope,t))
    267267        enddo
    268268        call gr_dyn_fi(nsoilmx,iim_input + 1,jjm_input + 1,ngrid,var3_read_3,tsoil_avg(:,:,islope))
     
    277277        call get_var4("waterdensity_soil"//num,var4_read)
    278278#ifndef CPP_1D
    279         do l = 1,nsoilmx
    280             call gr_dyn_fi(timelen,iim_input + 1,jjm_input + 1,ngrid,var4_read(:,:,l,:),watersoil_density_timeseries(:,l,islope,:))
     279        do t = 1,timelen
     280            call gr_dyn_fi(nsoilmx,iim_input + 1,jjm_input + 1,ngrid,var4_read(:,:,:,t),watersoil_density_timeseries(:,:,islope,t))
    281281        enddo
    282282#else
Note: See TracChangeset for help on using the changeset viewer.