- Timestamp:
- Jul 24, 2024, 2:54:37 PM (4 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/branches/Amaury_dev/libf/phylmd/readaerosol_interp.F90
r5112 r5116 8 8 ! CALL to this routine only treats the aerosol "id_aero". 9 9 10 ! 1) Read in data for the whole year, onlyat first time step11 ! 2) Interpolate to the actual day, onlyat new day12 ! 3) Interpolate to the model vertical grid (target grid), onlyat new day10 ! 1) Read in data for the whole year, ONLY at first time step 11 ! 2) Interpolate to the actual day, ONLY at new day 12 ! 3) Interpolate to the model vertical grid (target grid), ONLY at new day 13 13 ! 4) Test for negative mass values 14 14 … … 102 102 ! Calculation to find if it is a new day 103 103 104 IF(mpi_rank == 0 .AND. debug) then104 IF(mpi_rank == 0 .AND. debug)THEN 105 105 PRINT*, 'CONTROL PANEL REGARDING TIME STEPING' 106 106 ENDIF … … 125 125 ENDIF 126 126 127 IF(mpi_rank == 0 .AND. debug) then127 IF(mpi_rank == 0 .AND. debug)THEN 128 128 ! 0.02 is about 0.5/24, namly less than half an hour 129 129 OLDNEWDAY = (r_day - REAL(iday) < 0.02) … … 280 280 month_mid(:) = month_start (:) + month_len(:) / 2. 281 281 282 if (debug) then283 write(lunout, *)' month_len = ', month_len284 write(lunout, *)' month_mid = ', month_mid282 if (debug) THEN 283 WRITE(lunout, *)' month_len = ', month_len 284 WRITE(lunout, *)' month_mid = ', month_mid 285 285 endif 286 286 … … 300 300 ! Find which months and days to use for time interpolation 301 301 nbr_tsteps = 12 302 IF (nbr_tsteps == 12) then302 IF (nbr_tsteps == 12) THEN 303 303 IF (jDay < month_mid(im + 1)) THEN 304 304 im2 = im - 1 … … 319 319 ENDIF 320 320 ENDIF 321 ELSE IF (nbr_tsteps == 14) then321 ELSE IF (nbr_tsteps == 14) THEN 322 322 im = im + 1 323 323 IF (jDay < month_mid(im)) THEN … … 335 335 CALL abort_physic('readaerosol_interp', 'number of months undefined', 1) 336 336 ENDIF 337 if (debug) then338 write(lunout, *)' jDay, day1, day2, im, im2 = ', jDay, day1, day2, im, im2337 if (debug) THEN 338 WRITE(lunout, *)' jDay, day1, day2, im, im2 = ', jDay, day1, day2, im, im2 339 339 endif 340 340
Note: See TracChangeset
for help on using the changeset viewer.