Ignore:
Timestamp:
Jul 24, 2024, 2:54:37 PM (4 months ago)
Author:
abarral
Message:

rename modules properly lmdz_*
move ismin, ismax, minmax into new lmdz_libmath.f90
(lint) uppercase fortran keywords

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/branches/Amaury_dev/libf/phylmd/readaerosol_interp.F90

    r5112 r5116  
    88  ! CALL to this routine only treats the aerosol "id_aero".
    99
    10   ! 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
     10  ! 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
    1313  ! 4) Test for negative mass values
    1414
     
    102102  ! Calculation to find if it is a new day
    103103
    104   IF(mpi_rank == 0 .AND. debug)then
     104  IF(mpi_rank == 0 .AND. debug)THEN
    105105    PRINT*, 'CONTROL PANEL REGARDING TIME STEPING'
    106106  ENDIF
     
    125125  ENDIF
    126126
    127   IF(mpi_rank == 0 .AND. debug)then
     127  IF(mpi_rank == 0 .AND. debug)THEN
    128128    ! 0.02 is about 0.5/24, namly less than half an hour
    129129    OLDNEWDAY = (r_day - REAL(iday) < 0.02)
     
    280280    month_mid(:) = month_start (:) + month_len(:) / 2.
    281281
    282     if (debug) then
    283       write(lunout, *)' month_len = ', month_len
    284       write(lunout, *)' month_mid = ', month_mid
     282    if (debug) THEN
     283      WRITE(lunout, *)' month_len = ', month_len
     284      WRITE(lunout, *)' month_mid = ', month_mid
    285285    endif
    286286
     
    300300    ! Find which months and days to use for time interpolation
    301301    nbr_tsteps = 12
    302     IF (nbr_tsteps == 12) then
     302    IF (nbr_tsteps == 12) THEN
    303303      IF (jDay < month_mid(im + 1)) THEN
    304304        im2 = im - 1
     
    319319        ENDIF
    320320      ENDIF
    321     ELSE IF (nbr_tsteps == 14) then
     321    ELSE IF (nbr_tsteps == 14) THEN
    322322      im = im + 1
    323323      IF (jDay < month_mid(im)) THEN
     
    335335      CALL abort_physic('readaerosol_interp', 'number of months undefined', 1)
    336336    ENDIF
    337     if (debug) then
    338       write(lunout, *)' jDay, day1, day2, im, im2 = ', jDay, day1, day2, im, im2
     337    if (debug) THEN
     338      WRITE(lunout, *)' jDay, day1, day2, im, im2 = ', jDay, day1, day2, im, im2
    339339    endif
    340340
Note: See TracChangeset for help on using the changeset viewer.