Ignore:
Timestamp:
Mar 11, 2024, 6:43:35 PM (8 months ago)
Author:
gmilcareck
Message:

Fix a bug with global1d. When using global1d, the latitude used when global1d=false was still taken into account at global1d=true in the conditions for the presence of solar flux.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.GENERIC/libf/phystd/callcorrk.F90

    r3233 r3259  
    11371137!-----------------------------------------------------------------------
    11381138
    1139          if(fract(ig) .ge. 1.0e-4) then ! Only during daylight.
     1139         if((fract(ig) .ge. 1.0e-4).or.(global1d)) then ! Only during daylight.
    11401140            if((ngrid.eq.1).and.(global1d))then
    11411141               do nw=1,L_NSPECTV
     
    11711171
    11721172         ! Equivalent Albedo Calculation (for OUTPUT). MT2015
    1173          if(fract(ig) .ge. 1.0e-4) then ! equivalent albedo makes sense only during daylight.       
     1173         if((fract(ig) .ge. 1.0e-4).or.(global1d)) then ! equivalent albedo makes sense only during daylight.       
    11741174            surface_stellar_flux=sum(nfluxgndv_nu(1:L_NSPECTV))     
    11751175            if(surface_stellar_flux .gt. 1.0e-3) then ! equivalent albedo makes sense only if the stellar flux received by the surface is positive.
Note: See TracChangeset for help on using the changeset viewer.