Ignore:
Timestamp:
05/16/17 17:54:30 (7 years ago)
Author:
yushan
Message:

branch merged with trunk r1130

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/branch_yushan_merged/src/test/test_client.f90

    r794 r1134  
    3535 
    3636  CALL MPI_INIT(ierr) 
     37  CALL init_wait 
    3738 
    38   CALL init_wait 
     39  CALL MPI_COMM_RANK(MPI_COMM_WORLD,rank,ierr) 
     40  if(rank < 2) then 
    3941 
    4042!!! XIOS Initialization (get the local communicator) 
     
    7274 
    7375  CALL xios_context_initialize("test",comm) 
     76 
    7477  CALL xios_get_handle("test",ctx_hdl) 
    7578  CALL xios_set_current_context(ctx_hdl) 
     
    125128  CALL xios_is_defined_field_attr("field_A",enabled=ok) 
    126129  PRINT *,"field_A : attribute enabled is defined ? ",ok 
     130   
    127131  CALL xios_close_context_definition() 
    128132 
    129133  PRINT*,"field field_A is active ? ",xios_field_is_active("field_A") 
     134 
     135  call MPI_Barrier(comm, ierr) 
     136 
    130137  DO ts=1,24*10 
    131138    CALL xios_update_calendar(ts) 
    132139    CALL xios_send_field("field_A",field_A) 
    133     CALL wait_us(5000) ; 
     140    CALL wait_us(5000) 
    134141  ENDDO 
    135142 
     
    141148 
    142149  CALL xios_finalize() 
     150  print *, "Client : xios_finalize " 
     151 
     152    else 
     153 
     154    CALL xios_init_server 
     155    print *, "Server : xios_finalize " 
     156   
     157    endif 
     158     
    143159 
    144160  CALL MPI_FINALIZE(ierr) 
Note: See TracChangeset for help on using the changeset viewer.