Changeset 6196


Ignore:
Timestamp:
Apr 23, 2026, 5:29:58 PM (11 days ago)
Author:
lguez
Message:

Remove argument daily of open_climoz

Instead, in open_climoz, use ok_daily_climoz from module
conf_phys_m.

Location:
LMDZ6/trunk/libf
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/phylmd/conf_phys_m.f90

    r6195 r6196  
    6565    ! TRUE  => daily interpolation
    6666    ! FALSE => no interpolation (14 months)
     67    ! calendar dependent number of days
    6768    !$OMP THREADPRIVATE(ok_daily_climoz)
    6869
  • LMDZ6/trunk/libf/phylmd/open_climoz_m.f90

    r6189 r6196  
    99  !-------------------------------------------------------------------------------
    1010  !
    11   SUBROUTINE open_climoz(ncid, press_in_cen, time_in, daily, adjust)
     11  SUBROUTINE open_climoz(ncid, press_in_cen, time_in, adjust)
    1212    !
    1313    !-------------------------------------------------------------------------------
    1414    USE netcdf95, ONLY: nf95_open, nf95_close, nf95_gw_var, nf95_inq_varid
    1515    USE netcdf,   ONLY: nf90_nowrite
     16    use conf_phys_m, only: ok_daily_climoz
    1617    use mod_phys_lmdz_omp_data, only: is_omp_root
    1718    USE mod_phys_lmdz_mpi_data,      ONLY: is_mpi_root
     
    2930    REAL, allocatable, intent(out):: press_in_cen(:) !--- at cells centers
    3031    REAL, allocatable, intent(out):: time_in(:)      !--- records times, in days since Jan. 1st
    31     LOGICAL, INTENT(IN) :: daily     !--- daily files (calendar dependent days nb)
    3232    LOGICAL, INTENT(IN) :: adjust    !--- tropopause adjustement required
    3333    !   pressure levels press_in_cen/edg are in Pa a,d strictly ascending order.
     
    5757
    5858       !--- CHECK RECORDS NUMBER AND DISPLAY CORRESPONDING INFORMATION
    59        IF(daily.AND.ntim/=year_len) THEN
     59       IF(ok_daily_climoz.AND.ntim/=year_len) THEN
    6060          WRITE(msg,'(a,3(i4,a))')TRIM(sub)//': Expecting a daily ozone file with',&
    6161               &year_len,' records (year ',year_cur,') ; found ',ntim,' instead'
     
    6666          CALL abort_physic(sub, msg, 1)
    6767       ELSE
    68           IF(daily) THEN
     68          IF(ok_daily_climoz) THEN
    6969             WRITE(msg,'(a,2(i4,a))')'daily file (',ntim,' days in ',year_cur,')'
    7070          ELSE IF(ntim==14) THEN
  • LMDZ6/trunk/libf/phylmd/physiq_mod.F90

    r6195 r6196  
    21012101
    21022102       IF (read_climoz >= 1) CALL open_climoz(ncid_climoz, press_cen_climoz,   &
    2103             time_climoz, ok_daily_climoz, adjust_tropopause)
     2103            time_climoz, adjust_tropopause)
    21042104       !
    21052105       !IM betaCRF
  • LMDZ6/trunk/libf/phylmdiso/physiq_mod.F90

    r6195 r6196  
    22402240
    22412241       IF (read_climoz >= 1) CALL open_climoz(ncid_climoz, press_cen_climoz,   &
    2242            time_climoz, ok_daily_climoz, adjust_tropopause)
     2242           time_climoz, adjust_tropopause)
    22432243       !
    22442244       !IM betaCRF
Note: See TracChangeset for help on using the changeset viewer.