Changeset 3901 for trunk/LMDZ.MARS/libf/phymars/swr_toon.F
- Timestamp:
- Aug 20, 2025, 4:25:12 PM (4 days ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/libf/phymars/swr_toon.F
r3740 r3901 15 15 use callkeys_mod, only: rayleigh 16 16 use swrayleigh_mod, only: swrayleigh 17 use cvmgt_mod, only: cvmgt 17 18 18 19 IMPLICIT NONE … … 75 76 C ARGUMENTS 76 77 C --------- 77 INTEGER KDLON, KFLEV, KNU78 REAL aerosol(NDLO2,KFLEV,naerkind), albedo(NDLO2,2),79 SPDSIG(NDLO2,KFLEV),PSEC(NDLO2)80 81 REAL QVISsQREF3d(NDLO2,KFLEV,nsun,naerkind)82 REAL omegaVIS3d(NDLO2,KFLEV,nsun,naerkind)83 REAL gVIS3d(NDLO2,KFLEV,nsun,naerkind)84 85 REAL PPSOL(NDLO2)86 REAL PFD(NDLO2,KFLEV+1),PFU(NDLO2,KFLEV+1)87 REAL PRMU(NDLO2)78 INTEGER,INTENT(IN) :: KDLON, KFLEV, KNU 79 REAL,INTENT(IN) :: aerosol(NDLO2,KFLEV,naerkind), albedo(NDLO2,2) 80 REAL,INTENT(IN) :: PDSIG(NDLO2,KFLEV),PSEC(NDLO2) 81 82 REAL,INTENT(IN) :: QVISsQREF3d(NDLO2,KFLEV,nsun,naerkind) 83 REAL,INTENT(IN) :: omegaVIS3d(NDLO2,KFLEV,nsun,naerkind) 84 REAL,INTENT(IN) :: gVIS3d(NDLO2,KFLEV,nsun,naerkind) 85 86 REAL,INTENT(IN) :: PPSOL(NDLO2) 87 REAL,INTENT(OUT) :: PFD(NDLO2,KFLEV+1),PFU(NDLO2,KFLEV+1) 88 REAL,INTENT(IN) :: PRMU(NDLO2) 88 89 89 90 C LOCAL ARRAYS … … 104 105 c End part added by Tran The Trung 105 106 106 c Function107 c --------108 real CVMGT109 110 107 c Computing TOTAL single scattering parameters by adding 111 108 c properties of all the NAERKIND kind of aerosols … … 117 114 ZTAUAZ(JL,JK) = 0. 118 115 END DO 119 DO 106JAE=1,naerkind120 DO 105JL = 1 , KDLON116 DO JAE=1,naerkind 117 DO JL = 1 , KDLON 121 118 c Mean Extinction optical depth in the spectral band 122 119 c ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ … … 133 130 S QVISsQREF3d(JL,JK,KNU,JAE)* 134 131 & omegaVIS3d(JL,JK,KNU,JAE)*gVIS3d(JL,JK,KNU,JAE) 135 105 CONTINUE136 106 CONTINUE132 ENDDO 133 ENDDO 137 134 END DO 138 135 C 139 136 DO JK = 1 , nlaylte 140 137 DO JL = 1 , KDLON 138 ! NB: function CVMGT(x1,x2,l) returns x1 if l==.true. 139 ! or x2 otherwise. Maybe worth inlining someday? 141 140 ZCGAZ(JL,JK) = CVMGT( 0., ZCGAZ(JL,JK) / ZPIZAZ(JL,JK), 142 141 S (ZPIZAZ(JL,JK).EQ.0) )
Note: See TracChangeset
for help on using the changeset viewer.