Changeset 6102
- Timestamp:
- Mar 12, 2026, 4:02:42 PM (10 days ago)
- Location:
- LMDZ6/trunk/libf/phylmd
- Files:
-
- 2 edited
-
macv2sp.f90 (modified) (7 diffs)
-
mo_simple_plumes.f90 (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/trunk/libf/phylmd/macv2sp.f90
r6100 r6102 58 58 ! 59 59 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 61 62 ! 62 63 INTEGER band, i, k, Nwv … … 79 80 ! 80 81 81 ! Call sp_setup to retrieve 'aerosol_SP_forcing_year' value used in year_fr calculation below82 ! Call sp_setup to retrieve 'aerosol_SP_forcing_year' value used in decimal_year calculation below 82 83 IF (.NOT.sp_initialized) CALL sp_setup 83 84 … … 90 91 ! Choice between yearly vs fixed_year forcing, depending on 'aerosols_SP_forcing_year' 91 92 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) 93 94 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) 95 96 ENDIF 96 97 97 IF ( year_fr.LT.1850.0.OR.year_fr.GE.2024.0) THEN98 IF (decimal_year.LT.1850.0.OR.decimal_year.GE.2024.0) THEN 98 99 CALL abort_physic ('macv2sp','year not supported by plume model',1) 99 100 ENDIF … … 103 104 CALL sp_aop_profile ( & 104 105 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 , & 106 107 asy_prof ) 107 108 ! … … 113 114 CALL sp_aop_profile ( & 114 115 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 , & 116 117 asy_prof ) 117 118 ! … … 142 143 CALL sp_aop_profile ( & 143 144 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 , & 145 146 asy_prof ) 146 147 ! … … 185 186 CALL sp_aop_profile ( & 186 187 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 , & 188 189 asy_prof ) 189 190 ! -
LMDZ6/trunk/libf/phylmd/mo_simple_plumes.f90
r6100 r6102 290 290 ! week in the year and superimposed on the yearly mean value of the weight. 291 291 ! 292 SUBROUTINE set_time_weight( year_fr)292 SUBROUTINE set_time_weight(decimal_year) 293 293 ! 294 294 ! ---------- 295 295 ! 296 296 REAL, INTENT(IN) :: & 297 year_fr!< Fractional Year (1850.0 - 2100.99)297 decimal_year !< Fractional Year (1850.0 - 2100.99) 298 298 299 299 INTEGER :: & … … 304 304 ! ---------- 305 305 ! 306 iyear = FLOOR( year_fr) - 1849307 iweek = FLOOR(( year_fr - FLOOR(year_fr)) * ntimes) + 1306 iyear = FLOOR(decimal_year) - 1849 307 iweek = FLOOR((decimal_year - FLOOR(decimal_year)) * ntimes) + 1 308 308 309 309 IF ((iweek > ntimes) .OR. (iweek < 1) .OR. (iyear > nyears) .OR. (iyear < 1)) THEN … … 328 328 SUBROUTINE sp_aop_profile ( & 329 329 nlevels ,ncol ,lambda ,oro ,lon ,lat , & 330 year_fr ,z ,dz ,dNovrN ,aod_prof ,ssa_prof , &330 decimal_year ,z ,dz ,dNovrN ,aod_prof ,ssa_prof , & 331 331 asy_prof ) 332 332 ! … … 339 339 REAL, INTENT(IN) :: & 340 340 lambda, & !< wavelength 341 year_fr,& !< Fractional Year (1903.0 is the 0Z on the first of January 1903, Gregorian)341 decimal_year, & !< Fractional Year (1903.0 is the 0Z on the first of January 1903, Gregorian) 342 342 oro(ncol), & !< orographic height (m) 343 343 lon(ncol), & !< longitude … … 393 393 ! get time weights 394 394 ! 395 CALL set_time_weight( year_fr)395 CALL set_time_weight(decimal_year) 396 396 ! 397 397 ! initialize variables, including output
Note: See TracChangeset
for help on using the changeset viewer.
