Ignore:
Timestamp:
03/16/20 23:56:25 (4 years ago)
Author:
ymipsl
Message:
  • 1+1=2 : missing sync for rhodz
  • add "sync" parameter in run.def to define synchronisation period (in time step) ; default value is define by model (close to every 10 timestep)

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • codes/icosagcm/trunk/src/time/timeloop_gcm.F90

    r1015 r1023  
    1212   
    1313  INTEGER, PARAMETER :: sync_it=10 
    14   TYPE(t_message),SAVE :: req_ps0, req_mass0, req_theta_rhodz0, req_u0, req_q0, req_W0, req_geopot0 
     14  TYPE(t_message),SAVE :: req_ps0, req_rhodz0, req_mass0, req_theta_rhodz0, req_u0, req_q0, req_W0, req_geopot0 
    1515  LOGICAL, SAVE :: positive_theta 
    1616  INTEGER :: itau_prof, id_timeloop, id_dyn, id_phys, id_dissip, id_adv, id_diags 
     
    167167    CALL init_message(f_ps,req_i0,req_ps0) 
    168168    CALL init_message(f_mass,req_i0,req_mass0) 
     169    CALL init_message(f_rhodz,req_i0,req_rhodz0) 
    169170    CALL init_message(f_theta_rhodz,req_i0,req_theta_rhodz0) 
    170171    CALL init_message(f_u,req_e0_vect,req_u0) 
     
    213214      IF (MOD(86400,INT(i*dt))==0 .AND. ABS((sync_it-itau_sync)*1./sync_it )/sync_it < (sync_it-itau_sync)*1./sync_it) itau_sync=i 
    214215    ENDDO 
     216    CALL getin("itau_sync",itau_sync) 
    215217    IF (is_master) PRINT*,"Synchronize frontier every itau_sync =",itau_sync 
    216218       
     
    233235    END DO 
    234236    !$OMP BARRIER 
     237 
    235238    fluxt_zero=.TRUE. 
    236239 
     
    287290          CALL send_message(f_mass,req_mass0) 
    288291          CALL wait_message(req_mass0) 
     292          CALL send_message(f_rhodz,req_rhodz0) 
     293          CALL wait_message(req_rhodz0) 
    289294          CALL send_message(f_theta_rhodz,req_theta_rhodz0)  
    290295          CALL wait_message(req_theta_rhodz0) 
Note: See TracChangeset for help on using the changeset viewer.