Ignore:
Timestamp:
Dec 14, 2015, 11:43:09 AM (9 years ago)
Author:
Laurent Fairhead
Message:

Merged trunk changes r2298:2396 into testing branch

Location:
LMDZ5/branches/testing
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/branches/testing

  • LMDZ5/branches/testing/libf/phylmd/aeropt_5wv.F90

    r2160 r2408  
    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
     
    588586          A1_SSSSM(klev), A2_SSSSM(klev), A3_SSSSM(klev),&
    589587          B1_SSSSM(klev), B2_SSSSM(klev), C1_SSSSM(klev), C2_SSSSM(klev), stat=ierr)
    590         IF (ierr /= 0) CALL abort_gcm('aeropt_5mw', 'pb in allocation 1',1)
     588        IF (ierr /= 0) CALL abort_physic('aeropt_5mw', 'pb in allocation 1',1)
    591589     END IF
    592590
     
    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.