Ignore:
Timestamp:
Jul 8, 2015, 5:20:22 PM (9 years ago)
Author:
oboucher
Message:

Tidying up the old aerosol optical properties
especially use naero_tot dimension wherever needed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/trunk/libf/phylmd/aeropt_5wv.F90

    r2311 r2324  
    6767  !
    6868  REAL, DIMENSION(klon), INTENT(out)          :: ai      ! POLDER aerosol index
    69 !  REAL, DIMENSION(klon,nwave,naero_spc), INTENT(out)      :: tausum
    70 !  REAL, DIMENSION(klon,klev,nwave,naero_spc), INTENT(out) :: tau
    7169  REAL, DIMENSION(klon,nwave,naero_tot), INTENT(out)      :: tausum
    7270  REAL, DIMENSION(klon,klev,nwave,naero_tot), INTENT(out) :: tau
     
    626624  DO k=1, klev
    627625    DO i=1, klon
    628 !      IF (t_seri(i,k).EQ.0) stop 'stop aeropt_5wv T '
    629 !      IF (pplay(i,k).EQ.0) stop  'stop aeropt_5wv p '
    630626      zrho=pplay(i,k)/t_seri(i,k)/RD                  ! kg/m3
    631627      dh(i,k)=pdel(i,k)/(gravit*zrho)
    632 !CDIR UNROLL=naero_spc
    633628      mass_temp(i,k,:) = m_allaer(i,k,:) / zrho / 1.e+9
    634629      zdp1(i,k)=pdel(i,k)/(gravit*delt)     ! air mass auxiliary  variable --> zdp1 [kg/(m^2 *s)]
     
    760755    ENDIF
    761756
    762 !Bug 21 12 10 AI
    763 !    used_tau(spsol)=.TRUE.
    764757    IF (soluble) then
    765758      used_tau(spsol)=.TRUE.
    766        ELSE
     759    ELSE
    767760      used_tau(naero_soluble+spinsol)=.TRUE.
    768761    ENDIF
     
    866859     DO m=1,naero_spc
    867860        od550aer(i)=od550aer(i)+tausum(i,2,m)
    868      END DO
    869   END DO
     861     ENDDO
     862  ENDDO
     863
    870864  DO i=1, klon
    871865     od865aer(i)=0.
    872866     DO m=1,naero_spc
    873867        od865aer(i)=od865aer(i)+tausum(i,5,m)
    874      END DO
    875   END DO
     868     ENDDO
     869  ENDDO
     870
    876871  DO i=1, klon
    877872     DO k=1, KLEV
     
    879874        DO m=1,naero_spc
    880875           ec550aer(i,k)=ec550aer(i,k)+tau(i,k,2,m)/dh(i,k)
    881         END DO
    882      END DO
    883   END DO
     876        ENDDO
     877     ENDDO
     878  ENDDO
    884879 
    885    od550lt1aer(:)=tausum(:,2,id_ASSO4M_phy)+tausum(:,2,id_ASBCM_phy)+tausum(:,2,id_AIBCM_phy)+ &
    886         tausum(:,2,id_ASPOMM_phy)+tausum(:,2,id_AIPOMM_phy)+tausum(:,2,id_ASSSM_phy)+ &
    887         0.03*tausum(:,2,id_CSSSM_phy)+0.4*tausum(:,2,id_CIDUSTM_phy)
    888 
    889 
     880   od550lt1aer(:)=tausum(:,2,id_ASSO4M_phy)+tausum(:,2,id_ASBCM_phy)+tausum(:,2,id_AIBCM_phy)+  &
     881                  tausum(:,2,id_ASPOMM_phy)+tausum(:,2,id_AIPOMM_phy)+tausum(:,2,id_ASSSM_phy)+ &
     882                  0.03*tausum(:,2,id_CSSSM_phy)+0.4*tausum(:,2,id_CIDUSTM_phy)
    890883
    891884  DEALLOCATE(aerosol_name)
Note: See TracChangeset for help on using the changeset viewer.