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/diagnostics
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • codes/icosagcm/trunk/src/diagnostics/check_conserve.f90

    r649 r899  
    1717       AAM_mass_source(3), AAM_vel_source(3) ! read/written only IF is_master 
    1818  REAL(rstd),SAVE :: AAM_vel_plus_source(3), AAM_vel_minus_source(3) 
    19   REAL(rstd),SAVE :: mtot0,ztot0,etot0,angtot0,stot0,rmsvtot0 
    20   !$OMP THREADPRIVATE(check_type, mtot0,ztot0,etot0,angtot0,stot0,rmsvtot0) 
     19  REAL(rstd),SAVE :: mtot0,ztot0,etot0,angtot0,stot0 
     20  !$OMP THREADPRIVATE(check_type, mtot0,ztot0,etot0,angtot0,stot0) 
    2121   
    2222  PUBLIC :: init_check_conserve, check_conserve_detailed, check_conserve 
     
    6666 
    6767    REAL(rstd),POINTER :: p(:,:),rhodz(:,:)  
    68     INTEGER :: ind,ierr 
     68    INTEGER :: ind 
    6969    REAL(rstd) :: mtot, angtot, rmsdpdt 
    7070    REAL(rstd) :: etot, stot, ang_mass, ang_vel, ang_velp, ang_velm, rmsvtot, ztot 
     
    171171 
    172172    REAL(rstd),POINTER :: p(:,:),rhodz(:,:)  
    173     INTEGER::ind,ierr 
    174     REAL(rstd) :: mtot, ztot, rmsdpdt, etot,stot,rmsv, ang_mass, ang_vel, ang_velp, ang_velm 
     173    INTEGER::ind 
     174    REAL(rstd) :: etot,stot,rmsv, ang_mass, ang_vel, ang_velp, ang_velm 
    175175     
    176176    IF(check_type == check_detailed) THEN 
     
    246246    INTEGER :: ind,i,j,ij   
    247247    REAL :: mloc, rmsloc 
    248     REAL :: mloc_mpi, rmsloc_mpi 
    249248 
    250249    mloc=0.0; rmsloc=0.0 
     
    378377    REAL(rstd), POINTER :: rhodz(:,:)  
    379378    INTEGER :: ind 
    380     REAL(rstd) :: z,z_mpi 
     379    REAL(rstd) :: z 
    381380     
    382381    z=0 
     
    400399    REAL(rstd)::qv1,qv2  
    401400    REAL(rstd)::hv1,hv2   
    402     INTEGER :: i,j,ij,l,ij2 
     401    INTEGER :: i,j,ij,l 
    403402 
    404403    hv1 = 0.0 ; hv2 = 0.0  
  • codes/icosagcm/trunk/src/diagnostics/geopotential_mod.f90

    r548 r899  
    1313    TYPE(t_field), POINTER :: f_ps(:), f_phis(:), f_theta_rhodz(:), &  ! IN                                        
    1414         f_p(:), f_theta(:), f_phi(:)               ! OUT                                                          
    15     REAL(rstd),POINTER :: pk(:,:), p(:,:), theta(:,:,:), theta_rhodz(:,:,:), & 
     15    REAL(rstd),POINTER :: p(:,:), theta(:,:,:), theta_rhodz(:,:,:), & 
    1616         phi(:,:), phis(:), ps(:) 
    1717    INTEGER :: ind 
  • codes/icosagcm/trunk/src/diagnostics/kinetic.f90

    r548 r899  
    134134    REAL(rstd),INTENT(OUT):: Ki(iim*jjm,llm) 
    135135    REAL(rstd) :: Kv(2*iim*jjm,llm) 
    136     INTEGER :: ij,l, u_up, u_down 
     136    INTEGER :: ij,l 
    137137     
    138138    CALL compute_kv(ue,Kv) 
  • codes/icosagcm/trunk/src/diagnostics/observable.f90

    r668 r899  
    230230    INTEGER :: ij,l 
    231231    REAL(rstd) :: F_el(3*iim*jjm,llm+1) 
    232     REAL(rstd) :: uu_right, uu_lup, uu_ldown, W_el, DePhil 
     232    REAL(rstd) :: W_el, DePhil 
    233233    ! NB : u and uh are not in DEC form, they are normal components     
    234234    ! => we must divide by de 
Note: See TracChangeset for help on using the changeset viewer.