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

Legend:

Unmodified
Added
Removed
  • codes/icosagcm/trunk/src/time/euler_scheme.f90

    r548 r899  
    3636    REAL(rstd),POINTER :: hflux(:,:),wflux(:,:),hfluxt(:,:),wfluxt(:,:) 
    3737    INTEGER :: ind 
    38     INTEGER :: i,j,ij,l 
     38    INTEGER :: ij,l 
    3939    CALL trace_start("Euler_scheme")   
    4040 
     
    9595    REAL(rstd), INTENT(IN) :: tau 
    9696    LOGICAL, INTENT(INOUT) :: fluxt_zero 
    97     INTEGER :: l,i,j,ij 
     97    INTEGER :: l,ij 
    9898 
    9999    IF(fluxt_zero) THEN 
  • codes/icosagcm/trunk/src/time/explicit_scheme.f90

    r548 r899  
    2222!    USE caldyn_gcm_mod, ONLY : req_ps, req_mass 
    2323 
    24     REAL(rstd),POINTER :: q(:,:,:) 
    25     REAL(rstd),POINTER :: phis(:), ps(:) ,psm1(:), psm2(:), dps(:) 
     24    REAL(rstd),POINTER :: ps(:) ,psm1(:), psm2(:), dps(:) 
    2625    REAL(rstd),POINTER :: u(:,:) , um1(:,:), um2(:,:), du(:,:) 
    27     REAL(rstd),POINTER :: rhodz(:,:), mass(:,:), massm1(:,:), massm2(:,:), dmass(:,:) 
     26    REAL(rstd),POINTER :: mass(:,:), massm1(:,:), dmass(:,:) 
    2827    REAL(rstd),POINTER :: theta_rhodz(:,:,:) , theta_rhodzm1(:,:,:), theta_rhodzm2(:,:,:), dtheta_rhodz(:,:,:) 
    2928    REAL(rstd),POINTER :: hflux(:,:),wflux(:,:),hfluxt(:,:),wfluxt(:,:) 
     
    6463      REAL(rstd), INTENT(IN) :: coef(:) 
    6564      REAL(rstd) :: tau 
    66       INTEGER :: i,j,ij,l 
     65      INTEGER :: ij,l 
    6766 
    6867      CALL trace_start("RK_scheme")   
  • codes/icosagcm/trunk/src/time/time.f90

    r706 r899  
    5454    run_length=dt*itaumax 
    5555    CALL getin('run_length',run_length) 
    56     itaumax=run_length/dt 
     56    itaumax=INT(run_length/dt) 
    5757     
    5858    time_style='dcmip' 
  • codes/icosagcm/trunk/src/time/timeloop_gcm.f90

    r895 r899  
    194194 
    195195    REAL(rstd) :: adv_over_out ! ratio itau_adv/itau_out 
    196     INTEGER :: ind, it,i,j,l,n,  stage 
     196    INTEGER :: ind, it,l 
    197197    LOGICAL :: fluxt_zero(ndomain) ! set to .TRUE. to start accumulating mass fluxes in time 
    198198    LOGICAL, PARAMETER :: check_rhodz=.FALSE. 
     
    401401       elapsed = (stop_clock-start_clock)*1./rate_clock 
    402402       per_step = elapsed/(it-itau0) 
    403        throughput = dt/per_step 
     403       throughput = INT(dt/per_step) 
    404404       total = per_step*itaumax 
    405405       WRITE(*,'(A,I5,A,F6.2,A,I6)') 'Time spent (s):',INT(elapsed), & 
Note: See TracChangeset for help on using the changeset viewer.