Ignore:
Timestamp:
06/13/19 16:45:41 (5 years ago)
Author:
adurocher
Message:

trunk : Fixed GCC warnings

Fixed iso c bindings
fixed warnings with -Wall -Wno-aliasing -Wno-unused -Wno-unused-dummy-argument -Wno-maybe-uninitialized -Wno-tabs warnings
Removed all unused variables (-Wunused-variable)
vector%dot_product is now dot_product_3d to avoid compilation warning "dot_product shadows intrinsic" with GCC

Location:
codes/icosagcm/trunk/src/transport
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • codes/icosagcm/trunk/src/transport/advect.F90

    r896 r899  
    5959    REAL(rstd),INTENT(OUT) :: gradq3d(iim*jjm,llm,3) 
    6060    REAL(rstd) :: maxq,minq,minq_c,maxq_c  
    61     REAL(rstd) :: alphamx,alphami,alpha ,maggrd 
    62     REAL(rstd) :: leng1,leng2 
     61    REAL(rstd) :: alphamx,alphami,alpha,maggrd 
    6362    REAL(rstd) :: arr(2*iim*jjm) 
    6463    REAL(rstd) :: ar(iim*jjm) 
    6564    REAL(rstd) :: gradtri(2*iim*jjm,llm,3)  
    66     INTEGER :: ij,k,ind,l 
     65    INTEGER :: ij,k,l 
    6766    REAL(rstd) :: detx,dety,detz,det 
    6867    REAL(rstd) :: A(3,3), a11,a12,a13,a21,a22,a23,a31,a32,a33 
     
    243242!DIR$ SIMD 
    244243      DO ij=ij_begin,ij_end 
    245 !             maggrd =  dot_product(gradq3d(ij,l,:),gradq3d(ij,l,:)) 
     244!             maggrd =  dot_product_3d(gradq3d(ij,l,:),gradq3d(ij,l,:)) 
    246245             maggrd = gradq3d(ij,l,1)*gradq3d(ij,l,1) + gradq3d(ij,l,2)*gradq3d(ij,l,2) + gradq3d(ij,l,3)*gradq3d(ij,l,3)  
    247246             maggrd = sqrt(maggrd)  
     
    275274    REAL(rstd), INTENT(OUT)    :: dq1,dq2,dq3,det 
    276275    REAL(rstd)    :: dq(3) 
    277      
    278     REAL(rstd)  ::detx,dety,detz 
    279     INTEGER    :: info 
    280     INTEGER    :: IPIV(3) 
    281276 
    282277    REAL(rstd) :: A(3,3) 
    283     REAL(rstd) :: B(3) 
    284278     
    285279    ! TODO : replace A by A1,A2,A3 
     
    345339    REAL(rstd),INTENT(IN)    :: tau 
    346340 
    347     REAL(rstd) :: v_e(3), up_e, qe, ed(3)     
     341    REAL(rstd) :: v_e(3), up_e    
    348342    INTEGER :: ij,l 
    349343 
     
    422416    REAL(rstd), INTENT(INOUT) :: qfluxt(3*iim*jjm,MERGE(llm,1,diagflux_on)) ! time-integrated tracer flux 
    423417 
    424     REAL(rstd) :: dq,dmass,qe,ed(3), newmass 
     418    REAL(rstd) :: dq,dmass,qe, newmass 
    425419    REAL(rstd) :: qflux(3*iim*jjm,llm) 
    426     INTEGER :: ij,k,l 
     420    INTEGER :: ij,l 
    427421 
    428422    CALL trace_start("compute_advect_horiz") 
  • codes/icosagcm/trunk/src/transport/advect_tracer.f90

    r599 r899  
    242242 
    243243    REAL(rstd) :: dzqmax, newmass, sigw, qq, w 
    244     INTEGER :: i,ij,l,j,ijb,ije 
     244    INTEGER :: ij,l,ijb,ije 
    245245 
    246246    CALL trace_start("vlz") 
Note: See TracChangeset for help on using the changeset viewer.