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

(lint) Fix obsolete boolean operators

Location:
LMDZ6/branches/Amaury_dev/libf/obsolete
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/branches/Amaury_dev/libf/obsolete/mkstat.F90

    r2321 r5082  
    127127      enddo
    128128
    129     else if (ndims.eq.3) then
     129    else if (ndims==3) then
    130130
    131131!      dimout(1)=lonid
  • LMDZ6/branches/Amaury_dev/libf/obsolete/wstats.F90

    r5066 r5082  
    3737endif
    3838
    39 if (mod(step,istats).ne.0) then
     39if (mod(step,istats)/=0) then
    4040   RETURN
    4141endif
     
    4646ierr= NF_INQ_VARID(nid,namebis,meanid)
    4747
    48 if (ierr.ne.NF_NOERR) then
     48if (ierr/=NF_NOERR) then
    4949
    5050   if (firstvar==nom) then
     
    5959   ierr= NF_INQ_DIMID(nid,"longitude",id(1))
    6060   ierr= NF_INQ_DIMID(nid,"latitude",id(2))
    61    if (dim.eq.3) then
     61   if (dim==3) then
    6262      ierr= NF_INQ_DIMID(nid,"altitude",id(3))
    6363      ierr= NF_INQ_DIMID(nid,"Time",id(4))
     
    9595
    9696if (count(index)==0) then
    97    if (dim.eq.3) then
     97   if (dim==3) then
    9898      start=(/1,1,1,index/)
    9999      size=(/iip1,jjp1,llm,1/)
    100100      mean3d=0
    101101      sd3d=0
    102    else if (dim.eq.2) then
     102   else if (dim==2) then
    103103      start=(/1,1,index,0/)
    104104      size=(/iip1,jjp1,1,0/)
     
    107107   endif
    108108else
    109    if (dim.eq.3) then
     109   if (dim==3) then
    110110      start=(/1,1,1,index/)
    111111      size=(/iip1,jjp1,llm,1/)
     
    117117      ierr = NF_GET_VARA_REAL(nid,sdid,start,size,sd3d)
    118118#endif
    119       if (ierr.ne.NF_NOERR) then
     119      if (ierr/=NF_NOERR) then
    120120         write (*,*) NF_STRERROR(ierr)
    121121         stop ""
    122122      endif
    123123
    124    else if (dim.eq.2) then
     124   else if (dim==2) then
    125125      start=(/1,1,index,0/)
    126126      size=(/iip1,jjp1,1,0/)
     
    132132      ierr = NF_GET_VARA_REAL(nid,sdid,start,size,sd2d)
    133133#endif
    134       if (ierr.ne.NF_NOERR) then
     134      if (ierr/=NF_NOERR) then
    135135         write (*,*) NF_STRERROR(ierr)
    136136         stop ""
     
    139139endif
    140140
    141 if (dim.eq.3) then
     141if (dim==3) then
    142142
    143143!  Passage variable physique -->  variable dynamique
     
    167167   ierr = NF_PUT_VARA_REAL(nid,sdid,start,size,sd3d)
    168168#endif
    169    if (ierr.ne.NF_NOERR) then
     169   if (ierr/=NF_NOERR) then
    170170     write (*,*) NF_STRERROR(ierr)
    171171     stop ""
    172172   endif
    173173
    174 else if (dim.eq.2) then
     174else if (dim==2) then
    175175
    176176!    Passage variable physique -->  physique dynamique
     
    198198   ierr = NF_PUT_VARA_REAL(nid,sdid,start,size,sd2d)
    199199#endif
    200    if (ierr.ne.NF_NOERR) then
     200   if (ierr/=NF_NOERR) then
    201201     write (*,*) NF_STRERROR(ierr)
    202202     stop ""
     
    230230real, dimension(iip1,jjp1) :: dx2
    231231
    232 if (dim.eq.3) then
     232if (dim==3) then
    233233
    234234   start=(/1,1,1,index/)
     
    257257#endif
    258258
    259 else if (dim.eq.2) then
     259else if (dim==2) then
    260260
    261261      start=(/1,1,index,0/)
Note: See TracChangeset for help on using the changeset viewer.