Changeset 473


Ignore:
Timestamp:
09/05/16 15:43:48 (8 years ago)
Author:
ymipsl
Message:

Repairing openMP :
Only master thread may call XIOS

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • codes/icosagcm/trunk/src/timeloop_gcm.f90

    r429 r473  
    220220 
    221221    IF (xios_output) THEN ! we must call update_calendar before any XIOS output 
    222       CALL xios_update_calendar(1) 
     222      IF (is_omp_master) CALL xios_update_calendar(1) 
    223223    END IF 
    224224    CALL write_output_fields_basic(.TRUE., f_phis, f_ps, f_mass, f_geopot, f_theta_rhodz, f_u, f_W, f_q) 
     
    229229 
    230230       IF (xios_output) THEN 
    231           IF(it>itau0+1) CALL xios_update_calendar(it-itau0) 
     231 
     232          IF(it>itau0+1 .AND. is_omp_master) CALL xios_update_calendar(it-itau0) 
    232233       ELSE 
    233234          CALL update_time_counter(dt*it) 
Note: See TracChangeset for help on using the changeset viewer.