Changeset 1134 for XIOS/dev/branch_yushan_merged/src/test/test_client.f90
- Timestamp:
- 05/16/17 17:54:30 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/branch_yushan_merged/src/test/test_client.f90
r794 r1134 35 35 36 36 CALL MPI_INIT(ierr) 37 CALL init_wait 37 38 38 CALL init_wait 39 CALL MPI_COMM_RANK(MPI_COMM_WORLD,rank,ierr) 40 if(rank < 2) then 39 41 40 42 !!! XIOS Initialization (get the local communicator) … … 72 74 73 75 CALL xios_context_initialize("test",comm) 76 74 77 CALL xios_get_handle("test",ctx_hdl) 75 78 CALL xios_set_current_context(ctx_hdl) … … 125 128 CALL xios_is_defined_field_attr("field_A",enabled=ok) 126 129 PRINT *,"field_A : attribute enabled is defined ? ",ok 130 127 131 CALL xios_close_context_definition() 128 132 129 133 PRINT*,"field field_A is active ? ",xios_field_is_active("field_A") 134 135 call MPI_Barrier(comm, ierr) 136 130 137 DO ts=1,24*10 131 138 CALL xios_update_calendar(ts) 132 139 CALL xios_send_field("field_A",field_A) 133 CALL wait_us(5000) ;140 CALL wait_us(5000) 134 141 ENDDO 135 142 … … 141 148 142 149 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 143 159 144 160 CALL MPI_FINALIZE(ierr)
Note: See TracChangeset
for help on using the changeset viewer.