Changeset 2736
- Timestamp:
- Dec 17, 2016, 8:48:54 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ5/trunk/libf/phylmd/rrtm/aeropt_6bands_rrtm.F90
r2735 r2736 99 99 REAL :: piz_MG_6bands(nbre_RH,nbands_sw_rrtm,nbclassbc) 100 100 ! 101 INTEGER :: id, classbc, classbc_pi101 INTEGER :: aerindex, classbc, classbc_pi 102 102 REAL :: tmp_var, tmp_var_pi, BC_massfra, BC_massfra_pi 103 103 … … 584 584 585 585 !--shortname for aerosol index 586 id=aerosol_name(m)586 aerindex=aerosol_name(m) 587 587 588 588 IF (soluble) THEN … … 594 594 DO i=1, klon 595 595 596 tmp_var=m_allaer(i,k, spsol)/1.e6*zdh(i,k)*fac597 tmp_var_pi=m_allaer_pi(i,k, spsol)/1.e6*zdh(i,k)*fac596 tmp_var=m_allaer(i,k,aerindex)/1.e6*zdh(i,k)*fac 597 tmp_var_pi=m_allaer_pi(i,k,aerindex)/1.e6*zdh(i,k)*fac 598 598 599 599 ! Calculate the dry BC/(BC+SUL) mass ratio for all (natural+anthropogenic) aerosols … … 642 642 cg_MG_6bands(RH_num(i,k),inu,classbc)) 643 643 644 tau_ae(i,k, id,inu) = tmp_var*tau_ae2b_int645 piz_ae(i,k, id,inu) = piz_ae2b_int646 cg_ae(i,k, id,inu) = cg_ae2b_int644 tau_ae(i,k,aerindex,inu) = tmp_var*tau_ae2b_int 645 piz_ae(i,k,aerindex,inu) = piz_ae2b_int 646 cg_ae(i,k,aerindex,inu) = cg_ae2b_int 647 647 648 648 !--natural aerosols … … 659 659 cg_MG_6bands(RH_num(i,k),inu,classbc_pi)) 660 660 661 tau_ae_pi(i,k, id,inu) = tmp_var_pi* tau_ae2b_int662 piz_ae_pi(i,k, id,inu) = piz_ae2b_int663 cg_ae_pi(i,k, id,inu) = cg_ae2b_int661 tau_ae_pi(i,k,aerindex,inu) = tmp_var_pi* tau_ae2b_int 662 piz_ae_pi(i,k,aerindex,inu) = piz_ae2b_int 663 cg_ae_pi(i,k,aerindex,inu) = cg_ae2b_int 664 664 665 665 ENDDO … … 672 672 DO k=1, klev 673 673 DO i=1, klon 674 tmp_var=m_allaer(i,k, spsol)/1.e6*zdh(i,k)*fac675 tmp_var_pi=m_allaer_pi(i,k, spsol)/1.e6*zdh(i,k)*fac674 tmp_var=m_allaer(i,k,aerindex)/1.e6*zdh(i,k)*fac 675 tmp_var_pi=m_allaer_pi(i,k,aerindex)/1.e6*zdh(i,k)*fac 676 676 677 677 DO inu=1,NSW … … 689 689 cg_aers_6bands(RH_num(i,k),inu,spsol)) 690 690 691 tau_ae(i,k, id,inu) = tmp_var*tau_ae2b_int692 tau_ae_pi(i,k, id,inu) = tmp_var_pi* tau_ae2b_int693 piz_ae(i,k, id,inu) = piz_ae2b_int694 cg_ae(i,k, id,inu) = cg_ae2b_int691 tau_ae(i,k,aerindex,inu) = tmp_var*tau_ae2b_int 692 tau_ae_pi(i,k,aerindex,inu) = tmp_var_pi* tau_ae2b_int 693 piz_ae(i,k,aerindex,inu) = piz_ae2b_int 694 cg_ae(i,k,aerindex,inu) = cg_ae2b_int 695 695 696 696 ENDDO … … 700 700 !--external mixture case for soluble BC 701 701 IF (spsol.EQ.1) THEN 702 piz_ae_pi(:,:, id,:) = piz_ae(:,:,id,:)703 cg_ae_pi(:,:, id,:) = cg_ae(:,:,id,:)702 piz_ae_pi(:,:,aerindex,:) = piz_ae(:,:,aerindex,:) 703 cg_ae_pi(:,:,aerindex,:) = cg_ae(:,:,aerindex,:) 704 704 ENDIF 705 705 … … 710 710 DO k=1, klev 711 711 DO i=1, klon 712 tmp_var=m_allaer(i,k, naero_soluble+spinsol)/1.e6*zdh(i,k)*fac713 tmp_var_pi=m_allaer_pi(i,k, naero_soluble+spinsol)/1.e6*zdh(i,k)*fac712 tmp_var=m_allaer(i,k,aerindex)/1.e6*zdh(i,k)*fac 713 tmp_var_pi=m_allaer_pi(i,k,aerindex)/1.e6*zdh(i,k)*fac 714 714 715 715 DO inu=1,NSW … … 718 718 cg_ae2b_int = cg_aeri_6bands(inu,spinsol) 719 719 720 tau_ae(i,k, id,inu) = tmp_var*tau_ae2b_int721 tau_ae_pi(i,k, id,inu) = tmp_var_pi*tau_ae2b_int722 piz_ae(i,k, id,inu) = piz_ae2b_int723 cg_ae(i,k, id,inu)= cg_ae2b_int720 tau_ae(i,k,aerindex,inu) = tmp_var*tau_ae2b_int 721 tau_ae_pi(i,k,aerindex,inu) = tmp_var_pi*tau_ae2b_int 722 piz_ae(i,k,aerindex,inu) = piz_ae2b_int 723 cg_ae(i,k,aerindex,inu)= cg_ae2b_int 724 724 ENDDO 725 725 ENDDO
Note: See TracChangeset
for help on using the changeset viewer.