Changeset 4034 for trunk/LMDZ.MARS/libf


Ignore:
Timestamp:
Jan 29, 2026, 6:12:08 PM (4 weeks ago)
Author:
emillour
Message:

Mars PCM:
Update albedocaps.F90 to enable specifying the maximum CO2 ice cap albedo
in callphys.def (rather than have it hard coded to 0.9) as max_icecap_albedo
(default value 0.9 for backward compatibility).
EM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/libf/phymars/albedocaps.F90

    r4008 r4034  
    22
    33implicit none
     4
     5real,save :: max_icecap_albedo ! maximum allowed value for albedo
     6!$OMP THREADPRIVATE(max_icecap_albedo)
    47
    58contains
     
    8992    write(*,*)" albedocaps: TESice_Scoef = ",TESice_Scoef
    9093  endif
     94
     95  ! load maximum allowed value for cap albedo
     96  max_icecap_albedo = 0.9 ! default
     97  call getin_p("max_icecap_albedo",max_icecap_albedo)
     98  write(*,*)" albedocaps: max_icecap_albedo = ",max_icecap_albedo
    9199
    92100  call read_TES_icecap_albedo(zls_old,pi,radeg,TESlon,TESlatn,TESlats,TESls,TESalbn,TESalbs)
     
    525533endif ! of if (icap.eq.1)
    526534
    527 ! Make sure that returned albedo is never greater than 0.90
    528 if (alb.gt.0.90) alb=0.90
     535! Make sure that returned albedo is never greater than max_icecap_albedo
     536if (alb.gt.max_icecap_albedo) alb=max_icecap_albedo
    529537
    530538end subroutine TES_icecap_albedo
Note: See TracChangeset for help on using the changeset viewer.