Changeset 1950 for trunk/LMDZ.TITAN/libf/phytitan
- Timestamp:
- Jun 20, 2018, 4:10:30 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.TITAN/libf/phytitan/calchim.F90
r1947 r1950 171 171 172 172 ALLOCATE(krate(nlaykim_tot,nr_kim)) 173 ALLOCATE(krpd( 15,nd_kim+1,nlrt_kim,nlat_actfluxes))173 ALLOCATE(krpd(nd_kim+1,nlrt_kim,15,nlat_actfluxes)) 174 174 175 175 ALLOCATE(nom_prod(nkim)) … … 420 420 DO i=1,nd_kim+1 ! nd_kim+1 is dissociation of N2 by GCR 421 421 422 krpddec = ( krpd(i dec+1,i,ialt,klat) * (1.0-factalt) &423 + krpd(i dec+1,i,ialt+1,klat) * factalt ) * (1.0-factlat) &424 + ( krpd(i dec+1,i,ialt,klat+1) * (1.0-factalt) &425 + krpd(i dec+1,i,ialt+1,klat+1) * factalt ) * factlat422 krpddec = ( krpd(i,ialt ,idec+1,klat) * (1.0-factalt) & 423 + krpd(i,ialt+1,idec+1,klat) * factalt ) * (1.0-factlat) & 424 + ( krpd(i,ialt ,idec+1,klat+1) * (1.0-factalt) & 425 + krpd(i,ialt+1,idec+1,klat+1) * factalt ) * factlat 426 426 427 427 if ( factdec.lt.0. ) then 428 krpddecm1 = ( krpd(i dec ,i,ialt,klat) * (1.0-factalt) &429 + krpd(i dec ,i,ialt+1,klat) * factalt ) * (1.0-factlat) &430 + ( krpd(i dec ,i,ialt,klat+1) * (1.0-factalt) &431 + krpd(i dec ,i,ialt+1,klat+1) * factalt ) * factlat428 krpddecm1 = ( krpd(i,ialt ,idec ,klat) * (1.0-factalt) & 429 + krpd(i,ialt+1,idec ,klat) * factalt ) * (1.0-factlat) & 430 + ( krpd(i,ialt ,idec ,klat+1) * (1.0-factalt) & 431 + krpd(i,ialt+1,idec ,klat+1) * factalt ) * factlat 432 432 krate(l,i) = krpddecm1 * abs(factdec) + krpddec * ( 1.0 + factdec) 433 433 else if ( factdec.gt.0. ) then 434 krpddecp1 = ( krpd(i dec+2,i,ialt,klat) * (1.0-factalt) &435 + krpd(i dec+2,i,ialt+1,klat) * factalt ) * (1.0-factlat) &436 + ( krpd(i dec+2,i,ialt,klat+1) * (1.0-factalt) &437 + krpd(i dec+2,i,ialt+1,klat+1) * factalt ) * factlat434 krpddecp1 = ( krpd(i,ialt ,idec+2,klat) * (1.0-factalt) & 435 + krpd(i,ialt+1,idec+2,klat) * factalt ) * (1.0-factlat) & 436 + ( krpd(i,ialt ,idec+2,klat+1) * (1.0-factalt) & 437 + krpd(i,ialt+1,idec+2,klat+1) * factalt ) * factlat 438 438 krate(l,i) = krpddecp1 * factdec + krpddec * ( 1.0 - factdec) 439 439 else if ( factdec.eq.0. ) then
Note: See TracChangeset
for help on using the changeset viewer.