Ignore:
Timestamp:
Jul 24, 2024, 4:23:34 PM (4 months ago)
Author:
abarral
Message:

rename modules properly lmdz_*
move some unused files to obsolete/
(lint) uppercase fortran keywords

File:
1 edited

Legend:

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

    r5116 r5117  
    6666    !****************************************************************************************
    6767    INTEGER, INTENT(IN) :: itime, knon
    68     INTEGER, DIMENSION(klon), INTENT(in) :: knindex
    69     REAL, INTENT(in) :: dtime
     68    INTEGER, DIMENSION(klon), INTENT(IN) :: knindex
     69    REAL, INTENT(IN) :: dtime
    7070    REAL, DIMENSION(klon), INTENT(IN) :: swnet ! net shortwave radiance
    7171    REAL, DIMENSION(klon), INTENT(IN) :: lwnet ! net longwave radiance
     
    135135#ifdef ISO
    136136    REAL, DIMENSION(ntiso,klon), INTENT(OUT)     :: xtevap     
    137 !    real, DIMENSION(niso,klon) :: xtrun_off_lic_0_diag ! est une variable globale de
     137!    REAL, DIMENSION(niso,klon) :: xtrun_off_lic_0_diag ! est une variable globale de
    138138!    fonte_neige
    139139#endif
     
    163163    REAL, DIMENSION(niso,klon) :: xtsnow_prec,xtsol_prec
    164164    REAL, DIMENSION(klon) :: snow_prec,qsol_prec
    165 !    real, DIMENSION(klon) :: run_off_lic_0_diag
     165!    REAL, DIMENSION(klon) :: run_off_lic_0_diag
    166166#endif
    167167
     
    433433      !****************************************************************************************
    434434
    435       if (z0m_landice > 0.) THEN
     435      IF (z0m_landice > 0.) THEN
    436436        z0m(1:knon) = z0m_landice
    437437        z0h(1:knon) = z0h_landice
     
    449449        coefd = log(z03) - coefc * ta3
    450450        do j = 1, knon
    451           if (temp_air(j) < ta1) THEN
     451          IF (temp_air(j) < ta1) THEN
    452452            z0m(j) = z01
    453           else if (temp_air(j)>=ta1 .and. temp_air(j)<ta2) THEN
     453          ELSE IF (temp_air(j)>=ta1 .AND. temp_air(j)<ta2) THEN
    454454            z0m(j) = exp(coefa * temp_air(j) + coefb)
    455           else if (temp_air(j)>=ta2 .and. temp_air(j)<ta3) THEN
     455          ELSE IF (temp_air(j)>=ta2 .AND. temp_air(j)<ta3) THEN
    456456            ! if st > 0, melting induce smooth surface
    457457            z0m(j) = exp(coefc * temp_air(j) + coefd)
     
    473473      ! this layer
    474474
    475       if (ok_bs) THEN
     475      IF (ok_bs) THEN
    476476        fluxbs(:) = 0.
    477477        do j = 1, knon
     
    484484        ! 1st step: erosion of fresh snow accumulated during the time step
    485485        do j = 1, knon
    486           if (precip_snow(j) > 0.) THEN
     486          IF (precip_snow(j) > 0.) THEN
    487487            rhos(j) = rhofresh_bs
    488488            ! blowing snow flux formula used in MAR
     
    507507            fluxbs_1(j) = max(-maxerosion, fluxbs_1(j))
    508508
    509             if (precip_snow(j) > abs(fluxbs_1(j))) THEN
     509            IF (precip_snow(j) > abs(fluxbs_1(j))) THEN
    510510              ok_remaining_freshsnow(j) = .TRUE.
    511511              bsweight_fresh(j) = 1.
     
    530530        ! which depends on surface snow density
    531531        do j = 1, knon
    532           if (ok_remaining_freshsnow(j)) THEN
     532          IF (ok_remaining_freshsnow(j)) THEN
    533533            fluxbs_2(j) = 0.
    534534          else
Note: See TracChangeset for help on using the changeset viewer.