Ignore:
Timestamp:
Jul 24, 2024, 2:54:37 PM (2 months ago)
Author:
abarral
Message:

rename modules properly lmdz_*
move ismin, ismax, minmax into new lmdz_libmath.f90
(lint) uppercase fortran keywords

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/branches/Amaury_dev/libf/phylmd/inlandsis/sisvat_bsn.f90

    r5113 r5116  
    3333
    3434
    35   integer :: ikl   ,isn
    36   real :: h_mmWE                        ! Eroded Snow Layer Min Thickness
    37   real :: dbsaux(knonv)                 ! Drift Amount   (Dummy Variable)
    38   real :: dzweqo,dzweqn,bsno_x          ! Conversion variables for erosion
    39   real :: dz_new,rho_new
    40   real :: snofOK                        ! Threshd Snow Fall
    41   real :: Fac                           ! Correction factor for erosion
    42   real :: densif                        ! Densification rate if erosion
     35  INTEGER :: ikl   ,isn
     36  REAL :: h_mmWE                        ! Eroded Snow Layer Min Thickness
     37  REAL :: dbsaux(knonv)                 ! Drift Amount   (Dummy Variable)
     38  REAL :: dzweqo,dzweqn,bsno_x          ! Conversion variables for erosion
     39  REAL :: dz_new,rho_new
     40  REAL :: snofOK                        ! Threshd Snow Fall
     41  REAL :: Fac                           ! Correction factor for erosion
     42  REAL :: densif                        ! Densification rate if erosion
    4343
    4444  ! +--DATA
     
    7373    if((dzweqo-dzweqn)>0                    .and. &
    7474          dzsnSV(ikl,isn)>0                    .and. &
    75           ro__SV(ikl,max(1,isnoSV(ikl)))<roBdSV) then
    76 
     75          ro__SV(ikl,max(1,isnoSV(ikl)))<roBdSV) THEN
    7776    !characteristic time scale for drifting snow compaction set to 24h
    7877    !linear densification rate [kg/m3/s] over 24h
     
    8483    Fac         = max(0.,min(1.,Fac))
    8584
    86     if (ro__SV(ikl,max(1,isnoSV(ikl)))>roBdSV) then
     85    if (ro__SV(ikl,max(1,isnoSV(ikl)))>roBdSV) THEN
    8786      densif=densif*Fac
    8887    endif
     
    9493    endif
    9594
    96     if(dzsnSV(ikl,isn)>0 .and.dzsnSV(ikl,isn)<0.0001)then
     95    IF(dzsnSV(ikl,isn)>0 .and.dzsnSV(ikl,isn)<0.0001)THEN
    9796    dbs_SV(ikl) = dbs_SV(ikl)+ dzsnSV(ikl,isn)*ro__SV(ikl,isn)
    9897    dbs_Er(ikl) = dbs_Er(ikl)+ dzsnSV(ikl,isn)*ro__SV(ikl,isn)
Note: See TracChangeset for help on using the changeset viewer.