Ignore:
Timestamp:
Jul 22, 2024, 9:29:09 PM (2 months ago)
Author:
abarral
Message:

Replace most uses of CPP_DUST by the corresponding logical defined in lmdz_cppkeys_wrapper.F90
Convert several files from .F to .f90 to allow Dust to compile w/o rrtm/ecrad
Create lmdz_yoerad.f90
(lint) Remove "!" on otherwise empty line

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/branches/Amaury_dev/libf/phylmd/Dust/dustemission_mod.F90

    r5087 r5099  
    466466!  emdustsco(k)=auxr3*tuningfactor
    467467!enddo
    468 !
    469 
    470 
    471 
    472468
    473469!JEdbg<<
     
    904900if (1==1) then
    905901!  !  CALL writefield_phy("AA",tmp1(1:klon,1:5),5)
    906 !
     902
    907903    CALL writefield_phy("REPART5",feff(1:klon,1:5),5)
    908904    CALL writefield_phy("REPART5dbg",feffdbg(1:klon,1:5),5)
     
    925921!  if (.false.) then
    926922!!**************L718
    927 !
     923
    928924!!c------------------------------------------------------------------------
    929925!! isolog distrib and massfrac calculations.
    930 !
     926
    931927!      nbinsout=nbins+1
    932928!      b1=log(sizedustmin)
    933929!      b2=log(sizedustmax)
    934930!! restricted ISOLOG bins distributions
    935 !
     931
    936932!!      step=(b2-b1)/(nbinsout-1)
    937933!!      DO ni=1,nbinsout
     
    945941!     binsHR(nb)=exp(b1+(nb-1)*stepbin)
    946942!  END DO
    947 !
     943
    948944!  DO nb=1,nbinsHR
    949945!     binsHRcm(nb)=binsHR(nb)*1.e-4
     
    951947!! Making HIGH RESOLUTION dry deposition velocity
    952948!     CALL calcvd(vdout)
    953 !
    954 !
     949
     950
    955951! DO nb=1,nbinsHR
    956952!     vdHR(nb)=vdout(nb)
    957953!!  WRITE(18,*),binsHR(nb),vdHR(nb)
    958954!  END DO
    959 !
     955
    960956!   !searching for minimum value of dry deposition velocity
    961957!  minisograd=1.e20
     
    966962!     END IF
    967963!  END DO
    968 !
     964
    969965!! searching for optimal number of bins in positive slope Vd part
    970 !
     966
    971967!  nbins1=1
    972968!  nbins2=nbinsout-1
     
    976972!        IF(delta2.GE.delta1)THEN
    977973!        GOTO 50
    978 !
     974
    979975!        ELSE
    980976!           nbins2=nbins2-1
     
    994990!     logvdISOGRAD(k)=logvdISOGRAD(1)-(k-1)*delta1
    995991!  END DO
    996 !
     992
    997993!  logvdISOGRAD(nbins1+1)=log(minisograd)
    998 !
     994
    999995!  DO k=1,nbins2
    1000996!     logvdISOGRAD(nbins1+1+k)=logvdISOGRAD(nbins1+1)+k*delta2
    1001997!  END DO
    1002 !
     998
    1003999!  DO k=1,nbinsout
    10041000!     vdISOGRAD(k)=exp(logvdISOGRAD(k))
     
    10401036
    10411037! Making dust size distribution (in um)
    1042 !
     1038
    10431039      nbinsout=nbins+1
    10441040      b1=log(sizedustmin)
     
    10531049!     binsHR(nb)=exp(b1+(nb-1)*stepbin)
    10541050!  END DO
    1055 !
     1051
    10561052!  DO nb=1,nbinsHR
    10571053!     binsHRcm(nb)=binsHR(nb)*1.e-4
     
    11881184!  print
    11891185!*,'zwstar=sqrt(2.*(',flag_wstarBL,'ale_bl+0.01*(',flag_wstar,'-100)*ale_wake))'
    1190   !
     1186
    11911187    DO i=1,klon  ! main loop
    11921188     zwstar(i)=sqrt(2.*(param_wstarBL(i)*ale_bl(i)+param_wstarWAKE(i)*ale_wake(i)))
Note: See TracChangeset for help on using the changeset viewer.