Ignore:
Timestamp:
Jul 22, 2024, 9:29:09 PM (4 months ago)
Author:
abarral
Message:

Replace most uses of CPP_DUST by the corresponding logical defined in lmdz_cppkeys_wrapper.F90
Convert several files from .F to .f90 to allow Dust to compile w/o rrtm/ecrad
Create lmdz_yoerad.f90
(lint) Remove "!" on otherwise empty line

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/branches/Amaury_dev/libf/phylmd/surf_ocean_mod.F90

    r5093 r5099  
    1 !
     1
    22! $Id$
    3 !
     3
    44MODULE surf_ocean_mod
    55
     
    77
    88CONTAINS
    9   !
     9
    1010  !******************************************************************************
    11   !
     11
    1212  SUBROUTINE surf_ocean(rlon, rlat, swnet, lwnet, alb1, &
    1313       windsp, rmu0, fder, tsurf_in, &
     
    4545    USE limit_read_mod
    4646    USE config_ocean_skin_m, ONLY: activate_ocean_skin
    47     !
     47
    4848    ! This subroutine will make a call to ocean_XXX_noice according to the ocean mode (force,
    4949    ! slab or couple). The calculations of albedo and rugosity for the ocean surface are
     
    196196    !******************************************************************************
    197197    ! Calculate total net radiance at surface
    198     !
     198
    199199    !******************************************************************************
    200200    radsol(1:klon) = 0.0 ! initialisation a priori inutile
     
    294294    IF (iflag_albedo==0) THEN
    295295       !--old parametrizations of ocean surface albedo
    296        !
     296
    297297       IF (iflag_cycle_diurne>=1) THEN
    298           !
     298
    299299          CALL alboc_cd(rmu0,alb_eau)
    300           !
     300
    301301          !--ad-hoc correction for model radiative balance tuning
    302302          !--now outside alboc_cd routine
    303303          alb_eau(1:klon) = fmagic*alb_eau(1:klon) + pmagic
    304304          alb_eau(1:klon)=MIN(MAX(alb_eau(1:klon),0.0),1.0)
    305           !
     305
    306306       ELSE
    307           !
     307
    308308          CALL alboc(REAL(jour),rlat,alb_eau)
    309309          !--ad-hoc correction for model radiative balance tuning
     
    311311          alb_eau(1:klon) = fmagic*alb_eau(1:klon) + pmagic
    312312          alb_eau(1:klon)=MIN(MAX(alb_eau(1:klon),0.04),0.60)
    313           !
     313
    314314       ENDIF
    315        !
     315
    316316       DO i =1, knon
    317317          DO  k=1,nsw
     
    323323       alb_dif_new(1:knon,:)=alb_dir_new(1:knon,:)
    324324       !IM 09122015 end
    325        !
     325
    326326    ELSE IF (iflag_albedo==1) THEN
    327327       !--new parametrization of ocean surface albedo by Sunghye Baek
    328328       !--albedo for direct and diffuse radiation are different
    329        !
     329
    330330       CALL ocean_albedo(knon,rmu0,knindex,windsp,SFRWL,alb_dir_new,alb_dif_new)
    331        !
     331
    332332       !--ad-hoc correction for model radiative balance tuning
    333333       alb_dir_new(1:knon,:) = fmagic*alb_dir_new(1:knon,:) + pmagic
     
    335335       alb_dir_new(1:knon,:)=MIN(MAX(alb_dir_new(1:knon,:),0.0),1.0)
    336336       alb_dif_new(1:knon,:)=MIN(MAX(alb_dif_new(1:knon,:),0.0),1.0)
    337        !
     337
    338338    ELSE IF (iflag_albedo==2) THEN
    339339       ! F. Codron albedo read from limit.nc
     
    399399  END SUBROUTINE surf_ocean
    400400  !****************************************************************************
    401   !
     401
    402402END MODULE surf_ocean_mod
Note: See TracChangeset for help on using the changeset viewer.