Ignore:
Timestamp:
Jul 19, 2024, 5:41:58 PM (2 months ago)
Author:
abarral
Message:

(lint) Fix obsolete boolean operators

File:
1 edited

Legend:

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

    r4812 r5082  
    7171!   ----------------
    7272!   on ecrase le tableau ratqsc calcule par clouds_gno
    73       if (iflag_cld_th.eq.1) then
     73      if (iflag_cld_th==1) then
    7474         do k=1,klev
    7575         do i=1,klon
     
    8686!  par nversion de la fonction log normale
    8787!-----------------------------------------------------------------------
    88       else if (iflag_cld_th.eq.4) then
     88      else if (iflag_cld_th==4) then
    8989         ptconvth(:,:)=.false.
    9090         ratqsc(:,:)=0.
    91          if(prt_level.ge.9) print*,'avant clouds_gno thermique'
     91         if(prt_level>=9) print*,'avant clouds_gno thermique'
    9292         call clouds_gno &
    9393         (klon,klev,q_seri,zqsat,clwcon0th,ptconvth,ratqsc,rnebcon0th)
    94          if(prt_level.ge.9) print*,' CLOUDS_GNO OK'
     94         if(prt_level>=9) print*,' CLOUDS_GNO OK'
    9595       
    9696       endif
     
    9999!   -------------
    100100
    101       if (iflag_ratqs.eq.0) then
     101      if (iflag_ratqs==0) then
    102102
    103103! Le cas iflag_ratqs=0 correspond a la version IPCC 2005 du modele.
     
    116116! avec thermiques.
    117117
    118       else if (iflag_ratqs.eq.1) then
     118      else if (iflag_ratqs==1) then
    119119
    120120         do k=1,klev
    121121            do i=1, klon
    122                if (pplay(i,k).ge.60000.) then
     122               if (pplay(i,k)>=60000.) then
    123123                  ratqss(i,k)=ratqsbas
    124                else if ((pplay(i,k).ge.30000.).and.(pplay(i,k).lt.60000.)) then
     124               else if ((pplay(i,k)>=30000.).and.(pplay(i,k)<60000.)) then
    125125                  ratqss(i,k)=ratqsbas+(ratqshaut-ratqsbas)*(60000.-pplay(i,k))/(60000.-30000.)
    126126               else
     
    130130         enddo
    131131
    132       else if (iflag_ratqs.eq.2) then
     132      else if (iflag_ratqs==2) then
    133133
    134134         do k=1,klev
    135135            do i=1, klon
    136                if (pplay(i,k).ge.60000.) then
     136               if (pplay(i,k)>=60000.) then
    137137                  ratqss(i,k)=ratqsbas*(paprs(i,1)-pplay(i,k))/(paprs(i,1)-60000.)
    138                else if ((pplay(i,k).ge.30000.).and.(pplay(i,k).lt.60000.)) then
     138               else if ((pplay(i,k)>=30000.).and.(pplay(i,k)<60000.)) then
    139139                    ratqss(i,k)=ratqsbas+(ratqshaut-ratqsbas)*(60000.-pplay(i,k))/(60000.-30000.)
    140140               else
     
    173173
    174174
    175        else if (iflag_ratqs .GT. 9) then
     175       else if (iflag_ratqs > 9) then
    176176 
    177177       ! interactive ratqs calculations that depend on cold pools, orography, surface heterogeneity and small-scale turbulence
     
    193193          enddo
    194194     
    195           if (iflag_ratqs .EQ. 10) then
     195          if (iflag_ratqs == 10) then
    196196             ! interactive ratqs in presence of cold pools     
    197197             call ratqs_inter(klon,klev,iflag_ratqs,pdtphys,paprs, &
     
    205205             enddo
    206206             ratqss=ratqss+ratqs_inter_
    207           else if (iflag_ratqs .EQ. 11) then
     207          else if (iflag_ratqs == 11) then
    208208            print*,'avant ratqs_inter'
    209209            ! interactive ratqs with several sources
     
    213213                       ratqs_inter_)
    214214             ratqss=ratqss+ratqs_inter_
    215           else if (iflag_ratqs .EQ. 12) then
     215          else if (iflag_ratqs == 12) then
    216216             ! contribution of surface heterogeneities to ratqs
    217217             call ratqs_hetero(klon,klev,pctsrf,s_pblh,t2m,q2m,t_seri,q_seri,pplay,paprs,ratqs_hetero_)
    218218             ratqss=ratqss+ratqs_hetero_
    219           else if (iflag_ratqs .EQ. 13) then
     219          else if (iflag_ratqs == 13) then
    220220             ! contribution of ubgrid orography to ratqs
    221221             call ratqs_oro(klon,klev,pctsrf,zstd,zqsat,t_seri,pplay,paprs,ratqs_oro_)
    222222             ratqss=ratqss+ratqs_oro_
    223           else if (iflag_ratqs .EQ. 14) then
     223          else if (iflag_ratqs == 14) then
    224224             ! effect of subgrid-scale TKE on ratqs (in development)
    225225             call ratqs_tke(klon,klev,pdtphys,t_seri,q_seri,zqsat,pplay,paprs,omega,tke,tke_dissip,lmix,wprime,ratqs_tke_)     
     
    234234!  -----------
    235235
    236       if (iflag_cld_th.eq.1 .or.iflag_cld_th.eq.2.or.iflag_cld_th.eq.4) then
     236      if (iflag_cld_th==1 .or.iflag_cld_th==2.or.iflag_cld_th==4) then
    237237
    238238! On ajoute une constante au ratqsc*2 pour tenir compte de
     
    248248
    249249!   les ratqs sont une combinaison de ratqss et ratqsc
    250        if(prt_level.ge.9) write(lunout,*)'PHYLMD NOUVEAU TAU_RATQS ',tau_ratqs
     250       if(prt_level>=9) write(lunout,*)'PHYLMD NOUVEAU TAU_RATQS ',tau_ratqs
    251251
    252252         if (tau_ratqs>1.e-10) then
     
    271271          do k=1,klev
    272272             do i=1,klon
    273                 if (ratqsc(i,k).gt.1.e-10) then
     273                if (ratqsc(i,k)>1.e-10) then
    274274                   ratqs(i,k)=ratqs(i,k)*zfratqs2+(iflag_cld_th/100.)*ratqsc(i,k)*(1.-zfratqs2)
    275275                endif
Note: See TracChangeset for help on using the changeset viewer.