Changeset 3620 for trunk/LMDZ.COMMON/libf/evolution/read_data_PCM_mod.F90
- Timestamp:
- Feb 12, 2025, 12:03:26 PM (3 days ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.COMMON/libf/evolution/read_data_PCM_mod.F90
r3616 r3620 52 52 real, dimension(ngrid,nsoilmx,nslope,timelen), intent(out) :: watersoil_density_timeseries ! Water density timeseries in the soil layer [kg/m^3] 53 53 ! Local variables 54 integer :: i, j, l, islope ! Loop variables54 integer :: i, j, t, islope ! Loop variables 55 55 real :: A, B ! Intermediate variables to compute the mean molar mass of the layer 56 56 character(:), allocatable :: num ! For reading sloped variables … … 243 243 !------ 244 244 call get_var3("tsurf"//num,var3_read_1) 245 245 write(*,*) "Data for tsurf"//num//" downloaded." 246 246 247 247 ! Compute average over the year for each point … … 263 263 var3_read_3 = sum(var4_read,4)/timelen 264 264 #ifndef CPP_1D 265 do l = 1,nsoilmx266 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)) 267 267 enddo 268 268 call gr_dyn_fi(nsoilmx,iim_input + 1,jjm_input + 1,ngrid,var3_read_3,tsoil_avg(:,:,islope)) … … 277 277 call get_var4("waterdensity_soil"//num,var4_read) 278 278 #ifndef CPP_1D 279 do l = 1,nsoilmx280 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)) 281 281 enddo 282 282 #else
Note: See TracChangeset
for help on using the changeset viewer.