Changeset 1037 for XIOS/dev/branch_yushan/src/test/test_client.f90
- Timestamp:
- 01/25/17 16:25:17 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/branch_yushan/src/test/test_client.f90
r794 r1037 35 35 36 36 CALL MPI_INIT(ierr) 37 38 37 CALL init_wait 39 40 !!! XIOS Initialization (get the local communicator) 41 38 42 39 CALL xios_initialize(id,return_comm=comm) 40 41 print*, "test_client xios_initialize OK" 43 42 44 43 CALL MPI_COMM_RANK(comm,rank,ierr) 44 print*, "test_client MPI_COMM_RANK OK" 45 45 CALL MPI_COMM_SIZE(comm,size,ierr) 46 46 47 47 48 DO j=1,nj_glo … … 70 71 lat(:,:)=lat_glo(ibegin+1:iend+1,jbegin+1:jend+1) 71 72 field_A(1:ni,1:nj,:)=field_A_glo(ibegin+1:iend+1,jbegin+1:jend+1,:) 73 74 CALL xios_context_initialize("test",comm) 72 75 73 CALL xios_context_initialize("test",comm)74 76 CALL xios_get_handle("test",ctx_hdl) 77 print*, "Client xios_get_handle OK" 75 78 CALL xios_set_current_context(ctx_hdl) 76 79 print*, "Client xios_set_current_handle OK" 80 81 82 83 77 84 CALL xios_get_calendar_type(calendar_type) 78 85 PRINT *, "calendar_type = ", calendar_type … … 91 98 CALL xios_add_child(file_hdl,field_hdl) 92 99 CALL xios_set_attr(field_hdl,field_ref="field_A_zoom",name="field_C") 93 100 94 101 dtime%second = 3600 95 102 CALL xios_set_timestep(dtime) 103 print*, "Client xios_set_timestep OK" 96 104 97 105 ! The calendar is created as soon as the calendar type is defined. This way … … 119 127 ni=0 ; lonvalue(:,:)=0; 120 128 CALL xios_get_domain_attr("domain_A",ni=ni,lonvalue_2D=lonvalue) 121 122 129 print *,"ni",ni 123 print *,"lonvalue",lonvalue;130 !print *,"lonvalue",lonvalue; 124 131 125 132 CALL xios_is_defined_field_attr("field_A",enabled=ok) 126 133 PRINT *,"field_A : attribute enabled is defined ? ",ok 134 127 135 CALL xios_close_context_definition() 136 print*, "xios_close_context_definition OK" 128 137 129 138 PRINT*,"field field_A is active ? ",xios_field_is_active("field_A") 130 DO ts=1,24*10 139 !DO ts=1,24*10 140 DO ts=1,24 131 141 CALL xios_update_calendar(ts) 142 print*, "xios_update_calendar OK, ts = ", ts 132 143 CALL xios_send_field("field_A",field_A) 133 CALL wait_us(5000) ; 144 print*, "xios_send_field OK, ts = ", ts 145 CALL wait_us(5000) 134 146 ENDDO 147 135 148 136 149 CALL xios_context_finalize() 150 print*, "xios_context_finalize OK" 137 151 138 152 DEALLOCATE(lon, lat, field_A, lonvalue)
Note: See TracChangeset
for help on using the changeset viewer.