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/fonte_neige_mod.F90

    r5087 r5099  
    1 !
     1
    22! $Header$
    3 !
     3
    44MODULE fonte_neige_mod
    5 !
     5
    66! This module will treat the process of snow, melting, accumulating, calving, in
    77! case of simplified soil model.
    8 !
     8
    99!****************************************************************************************
    1010  USE dimphy, ONLY : klon
     
    5252
    5353CONTAINS
    54 !
    55 !****************************************************************************************
    56 !
     54
     55!****************************************************************************************
     56
    5757  SUBROUTINE fonte_neige_init(restart_runoff)
    5858
     
    6060! The variable run_off_lic_0 is initialized to the field read from
    6161! restart file. The other variables are initialized to zero.
    62 !
     62
    6363!****************************************************************************************
    6464! Input argument
     
    7373!****************************************************************************************
    7474! Allocate run-off at landice and initilize with field read from restart
    75 !
     75
    7676!****************************************************************************************
    7777
     
    8585!****************************************************************************************
    8686! Allocate other variables and initilize to zero
    87 !
     87
    8888!****************************************************************************************
    8989    ALLOCATE(run_off_ter(klon), stat = error)
     
    131131!****************************************************************************************
    132132! Read tau_calv
    133 !
     133
    134134!****************************************************************************************
    135135    CALL conf_interface(tau_calv)
     
    150150    USE isotopes_verif_mod
    151151#endif
    152 !
     152
    153153!****************************************************************************************
    154154! Input argument
     
    164164!****************************************************************************************
    165165! Allocate run-off at landice and initilize with field read from restart
    166 !
     166
    167167!****************************************************************************************
    168168
     
    185185!****************************************************************************************
    186186! Allocate other variables and initilize to zero
    187 !
     187
    188188!****************************************************************************************
    189189
     
    226226#endif
    227227
    228 !
    229 !****************************************************************************************
    230 !
     228!****************************************************************************************
     229
    231230  SUBROUTINE fonte_neige( knon, nisurf, knindex, dtime, &
    232231       tsurf, precip_rain, precip_snow, &
     
    258257!   precip_rain  precipitations liquides
    259258!   precip_snow  precipitations solides
    260 !
     259
    261260! input/output:
    262261!   snow         champs hauteur de neige
     
    264263!   tsurf_new    temperature au sol
    265264!   evap
    266 !
     265
    267266  INCLUDE "YOETHF.h"
    268267  INCLUDE "YOMCST.h"
     
    329328! Start calculation
    330329! - Initialization
    331 !
     330
    332331!****************************************************************************************
    333332    coeff_rel = dtime/(tau_calv * rday)
     
    338337! - Increment snow due to precipitation and evaporation
    339338! - Calculate the water balance due to precipitation and evaporation (bil_eau_s)
    340 !
     339
    341340!****************************************************************************************
    342341    WHERE (precip_snow > 0.)
     
    374373! - Calculate calving and decrement snow, if there are to much snow
    375374! - Update temperature at surface
    376 !
     375
    377376!****************************************************************************************
    378377
     
    451450! Save ffonte, fqfonte and fqcalving in global arrays for each
    452451! sub-surface separately
    453 !
     452
    454453!****************************************************************************************
    455454    DO i = 1, knon
     
    466465
    467466  END SUBROUTINE fonte_neige
    468 !
    469 !****************************************************************************************
    470 !
     467
     468!****************************************************************************************
     469
    471470  SUBROUTINE fonte_neige_final(restart_runoff &
    472471#ifdef ISO     
     
    474473#endif   
    475474                          )
    476 !
     475
    477476! This subroutine returns run_off_lic_0 for later writing to restart file.
    478 !
     477
    479478#ifdef ISO
    480479    USE infotrac_phy, ONLY: niso
     
    484483#endif
    485484#endif
    486 !
     485
    487486!****************************************************************************************
    488487    REAL, DIMENSION(klon), INTENT(OUT) :: restart_runoff
     
    540539
    541540  END SUBROUTINE fonte_neige_final
    542 !
    543 !****************************************************************************************
    544 !
     541
     542!****************************************************************************************
     543
    545544  SUBROUTINE fonte_neige_get_vars(pctsrf, fqcalving_out, &
    546545              fqfonte_out, ffonte_out, run_off_lic_out &
     
    553552! Cumulate ffonte, fqfonte and fqcalving respectively for
    554553! all type of surfaces according to their fraction.
    555 !
     554
    556555! This routine is called from physiq.F before histwrite.
    557556!****************************************************************************************
     
    608607
    609608  END SUBROUTINE fonte_neige_get_vars
    610 !
    611 !****************************************************************************************
    612 !
     609
     610!****************************************************************************************
     611
    613612!#ifdef ISO
    614613!  subroutine fonte_neige_export_xtrun_off_lic_0(knon,xtrun_off_lic_0_diag)
    615614!    use infotrac_phy, ONLY: niso
    616 !
     615
    617616!    ! inputs
    618617!    INTEGER, INTENT(IN)                      :: knon
    619618!    real, INTENT(IN), DIMENSION(niso,klon)   :: xtrun_off_lic_0_diag
    620 !
     619
    621620!    xtrun_off_lic_0(:,:)=xtrun_off_lic_0_diag(:,:)
    622 !
     621
    623622!  end subroutine fonte_neige_export_xtrun_off_lic_0
    624623!#endif
Note: See TracChangeset for help on using the changeset viewer.