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

Commit linked to correcting relevant warnings during gfortran compilation

[minor]
Correct remnants of fixed-form "+" in massbarxy.F90
Correct COMMON alignment in clesphys.h, flux_arp.h, cv*param.h, YOECUMF.h, alpale.h
Correct obsolete logical operators
Restrict use of iso_fortran_env in nf95_abort.f90
Remove redundant save in module declarations
Remove <continue> without labels
Fix nonstandard kind selectors

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

Legend:

Unmodified
Added
Removed
  • LMDZ6/branches/Amaury_dev/libf/dyn3d_common/limy.F

    r2603 r5081  
    150150c      enddo
    151151
    152       if(dyqv(ismin(iim,dyqv,1))*dyqv(ismax(iim,dyqv,1)).le.0.)
     152      if(dyqv(ismin(iim,dyqv,1))*dyqv(ismax(iim,dyqv,1))<=0.)
    153153     &   then
    154154         do ij=1,iip1
     
    162162
    163163      if(dyqv(ismax(iim,dyqv(ip1jm-iip1+1),1)+ip1jm-iip1+1)*
    164      & dyqv(ismin(iim,dyqv(ip1jm-iip1+1),1)+ip1jm-iip1+1).le.0.)
     164     & dyqv(ismin(iim,dyqv(ip1jm-iip1+1),1)+ip1jm-iip1+1)<=0.)
    165165     &then
    166166         do ij=ip1jm+1,ip1jmp1
     
    175175c   calcul des pentes limitees
    176176
    177       do ij=1,ip1jmp1
    178          if(dyqv(ij)*dyqv(ij-iip1).gt.0.) then
     177      do ij=1,ip1jmp1 ! cf below: should it be ip1jm instead ?
     178         if(dyqv(ij)*dyqv(ij-iip1)>0.) then  ! /!\ causes Warning: iteration 1056 invokes undefined behavior [-Waggressive-loop-optimizations] in 32x32x39
    179179            dyq(ij)=sign(min(abs(dyq(ij)),dyqmax(ij)),dyq(ij))
    180180         else
  • LMDZ6/branches/Amaury_dev/libf/dyn3d_common/massbarxy.F90

    r2597 r5081  
    2121    DO ij=1,ip1jm-1
    2222      massebxy(ij,l)=masse(ij     ,l)*alpha2(ij     ) + &
    23      +               masse(ij+1   ,l)*alpha3(ij+1   ) + &
    24      +               masse(ij+iip1,l)*alpha1(ij+iip1) + &
    25      +               masse(ij+iip2,l)*alpha4(ij+iip2)
     23                     masse(ij+1   ,l)*alpha3(ij+1   ) + &
     24                     masse(ij+iip1,l)*alpha1(ij+iip1) + &
     25                     masse(ij+iip2,l)*alpha4(ij+iip2)
    2626    END DO
    2727    DO ij=iip1,ip1jm,iip1; massebxy(ij,l)=massebxy(ij-iim,l); END DO
Note: See TracChangeset for help on using the changeset viewer.