Changeset 3266 for trunk/LMDZ.GENERIC


Ignore:
Timestamp:
Mar 13, 2024, 5:13:20 PM (9 months ago)
Author:
mturbet
Message:

first cleanup in hydrol.F90

Location:
trunk/LMDZ.GENERIC
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.GENERIC/changelog.txt

    r3265 r3266  
    18831883== 13/03/2024 == MT
    18841884
    1885 Very minor change of max sea ice fraction in ocean model
     1885- Very minor change of max sea ice fraction in ocean model
     1886- Preliminary cleanup+commenting in hydrol.F90
  • trunk/LMDZ.GENERIC/libf/phystd/hydrol.F90

    r3194 r3266  
    5555      real snowlayer
    5656      parameter (snowlayer=33.0)        ! 33 kg/m^2 of snow, equal to a layer of 3.3 cm
    57       real oceantime
     57     
     58      real oceantime ! this is a relaxation timescale for the oceanbulkavg parameterization
    5859      parameter (oceantime=10*24*3600)
    59 
    60       logical,save :: oceanbulkavg ! relax ocean temperatures to a GLOBAL mean value?
     60      logical,save :: oceanbulkavg ! simple parameterization to relax ocean temperatures to the global mean value (crude, 0th order parameterization to mimick ocean heat transport)
     61     
    6162      logical,save :: activerunoff ! enable simple runoff scheme?
    62       logical,save :: oceanalbvary ! ocean albedo varies with the diurnal cycle?
     63      logical,save :: oceanalbvary ! simple parameterization to account for the effect of solar zenith angle on the ocean albedo (for the moment it is not used, but to be included in the future)
    6364!$OMP THREADPRIVATE(oceanbulkavg,activerunoff,oceanalbvary)
    6465
    6566!     Arguments
    6667!     ---------
    67       real rnat(ngrid) ! I changed this to integer (RW)
     68      real rnat(ngrid) ! rnat is terrain type: 0-ocean; 1-continent
    6869      real,dimension(:),allocatable,save :: runoff
    6970      real totalrunoff, tsea, oceanarea
     
    175176      endif
    176177
    177 !       call writediagfi(ngrid,"hydrol_rnat"," "," ",2,rnat)
    178 !!       write (*,*) "oceanarea", oceanarea
     178!      write (*,*) "oceanarea", oceanarea
    179179
    180180!     add physical tendencies already calculated
     
    188188         enddo   
    189189      enddo
    190 
    191 !      call writediagfi(ngrid,"hydrol_zqsurf_iliq_1"," "," ",2,zqsurf(1:ngrid,iliq))
    192190 
    193191      do ig=1,ngrid
     
    350348      end do ! ig=1,ngrid
    351349
    352 !      call writediagfi(ngrid,"hydrol_zqsurf_iliq_2"," "," ",2,zqsurf(1:ngrid,iliq))
    353 
    354 !     perform crude bulk averaging of temperature in ocean
     350
     351!     simple parameterization to perform crude bulk averaging of temperature in ocean
    355352!     ----------------------------------------------------
    356       if(oceanbulkavg)then
     353      if(oceanbulkavg)then 
    357354
    358355         oceanarea2=0.       
     
    433430      endif !activerunoff         
    434431
    435 !      call writediagfi(ngrid,"hydrol_zqsurf_iliq_3"," "," ",2,zqsurf(1:ngrid,iliq))
    436 
    437432!     Re-add the albedo effects of CO2 ice if necessary
    438433!     -------------------------------------------------
     
    455450      enddo
    456451
    457 !      call writediagfi(ngrid,"hydrol_dqs_hyd_iliq"," "," ",2,dqs_hyd(1:ngrid,iliq)) 
    458 
    459452      if (activerunoff) then
    460453        call writediagfi(ngrid,'runoff','Runoff amount',' ',2,runoff)
Note: See TracChangeset for help on using the changeset viewer.