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

File:
1 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  
Note: See TracChangeset for help on using the changeset viewer.