Ignore:
Timestamp:
Aug 20, 2025, 4:25:12 PM (4 days ago)
Author:
emillour
Message:

Mars PCM:
Some code tidying:

  • turn aeroptproperties, albedocaps, cvmgp and convadj into modules
  • remove useless check in callradite
  • clean module vlz_fi (remove obsolete #ifdef CRAY cpp alternatives)
  • remove function cvmgp since it was only called under #ifdef CRAY in vlz_fi

EM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/libf/phymars/swr_fouquart.F

    r3759 r3901  
    1515      use callkeys_mod, only: rayleigh
    1616      use swrayleigh_mod, only: swrayleigh
     17      use cvmgt_mod, only: cvmgt
    1718
    1819      IMPLICIT NONE
     
    112113     S     ,  ZTRA1(NDLON,NFLEV+1), ZTRA2(NDLON,NFLEV+1)
    113114
    114 c     Function
    115 c     --------
    116       real CVMGT
    117 
    118115C    --------------------------------
    119116C     OPTICAL PARAMETERS FOR AEROSOLS
     
    138135            ZTAUAZ(JL,JK) = 0.
    139136         END DO
    140          DO 106 JAE=1,naerkind
    141             DO 105 JL = 1 , KDLON
     137         DO JAE=1,naerkind
     138            DO JL = 1 , KDLON
    142139c              Mean Extinction optical depth in the spectral band
    143140c              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     
    154151     S           QVISsQREF3d(JL,JK,KNU,JAE)*
    155152     &           omegaVIS3d(JL,JK,KNU,JAE)*gVIS3d(JL,JK,KNU,JAE)
    156  105        CONTINUE
    157  106     CONTINUE
     153            ENDDO
     154         ENDDO
    158155      END DO
    159156C     
    160157      DO JK = 1 , nlaylte
    161158         DO JL = 1 , KDLON
     159           ! NB: function CVMGT(x1,x2,l) returns x1 if l==.true.
     160           !     or x2 otherwise. Maybe worth inlining someday?
    162161            ZCGAZ(JL,JK) = CVMGT( 0., ZCGAZ(JL,JK) / ZPIZAZ(JL,JK),
    163162     S            (ZPIZAZ(JL,JK).EQ.0) )
Note: See TracChangeset for help on using the changeset viewer.