Ignore:
Timestamp:
Mar 12, 2026, 4:02:42 PM (11 days ago)
Author:
asima
Message:

Variable year_fr is renamed more properly decimal_year, to avoid confusion with a dimension name in the input SP aerosol file (year_fr = 52 ).

File:
1 edited

Legend:

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

    r6100 r6102  
    5858  !
    5959  REAL :: zlambda, zweight
    60   REAL :: year_fr
     60!  REAL :: year_fr  ! also a dimension name in SP aerosol file ; renamed more properly "decimal_year"
     61  REAL :: decimal_year
    6162  !
    6263  INTEGER band, i, k, Nwv
     
    7980  !
    8081
    81   ! Call sp_setup to retrieve 'aerosol_SP_forcing_year' value used in year_fr calculation below
     82  ! Call sp_setup to retrieve 'aerosol_SP_forcing_year' value used in decimal_year calculation below
    8283  IF (.NOT.sp_initialized) CALL sp_setup
    8384
     
    9091! Choice between yearly vs fixed_year forcing, depending on 'aerosols_SP_forcing_year'
    9192  IF (aerosols_SP_forcing_year.EQ.-9999) THEN
    92      year_fr= float(year_cur) + float(days_elapsed)/float(year_len)
     93     decimal_year= float(year_cur) + float(days_elapsed)/float(year_len)
    9394  ELSE
    94      year_fr= float(aerosols_SP_forcing_year) + float(days_elapsed)/float(year_len)
     95     decimal_year= float(aerosols_SP_forcing_year) + float(days_elapsed)/float(year_len)
    9596  ENDIF
    9697
    97   IF (year_fr.LT.1850.0.OR.year_fr.GE.2024.0) THEN
     98  IF (decimal_year.LT.1850.0.OR.decimal_year.GE.2024.0) THEN
    9899     CALL abort_physic ('macv2sp','year not supported by plume model',1)
    99100  ENDIF
     
    103104  CALL sp_aop_profile                                    ( &
    104105       klev     ,klon ,l443 ,oro    ,xlon     ,xlat      , &
    105        year_fr  ,z    ,dz   ,dNovrN ,aod_prof ,ssa_prof  , &
     106       decimal_year  ,z    ,dz   ,dNovrN ,aod_prof ,ssa_prof  , &
    106107       asy_prof )
    107108  !
     
    113114  CALL sp_aop_profile                                    ( &
    114115       klev     ,klon ,l550 ,oro    ,xlon     ,xlat      , &
    115        year_fr  ,z    ,dz   ,dNovrN ,aod_prof ,ssa_prof  , &
     116       decimal_year  ,z    ,dz   ,dNovrN ,aod_prof ,ssa_prof  , &
    116117       asy_prof )
    117118  !
     
    142143  CALL sp_aop_profile                                    ( &
    143144       klev     ,klon ,l865 ,oro    ,xlon     ,xlat      , &
    144        year_fr  ,z    ,dz   ,dNovrN ,aod_prof ,ssa_prof  , &
     145       decimal_year  ,z    ,dz   ,dNovrN ,aod_prof ,ssa_prof  , &
    145146       asy_prof )
    146147  !
     
    185186    CALL sp_aop_profile                                       ( &
    186187         klev     ,klon ,zlambda ,oro    ,xlon     ,xlat      , &
    187          year_fr  ,z    ,dz      ,dNovrN ,aod_prof ,ssa_prof  , &
     188         decimal_year  ,z    ,dz      ,dNovrN ,aod_prof ,ssa_prof  , &
    188189         asy_prof )
    189190    !
Note: See TracChangeset for help on using the changeset viewer.