Changeset 775 for XIOS/trunk/src/test/test_remap.f90
- Timestamp:
- 11/02/15 11:46:25 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/test/test_remap.f90
r742 r775 20 20 DOUBLE PRECISION,ALLOCATABLE :: src_boundslon(:,:), dst_boundslon(:,:) 21 21 DOUBLE PRECISION,ALLOCATABLE :: src_boundslat(:,:), dst_boundslat(:,:) 22 DOUBLE PRECISION,ALLOCATABLE :: src_field(:), tmp_field(:) 22 DOUBLE PRECISION,ALLOCATABLE :: src_field(:), tmp_field(:), tmp_field_1(:) 23 23 INTEGER :: src_ni_glo, dst_ni_glo; 24 24 INTEGER :: src_nvertex, dst_nvertex; 25 25 INTEGER :: src_ibegin, dst_ibegin; 26 26 INTEGER :: src_ni, dst_ni; 27 INTEGER :: src_tmp_ni, src_tmp_nj, src_tmp_n; 27 28 CHARACTER(LEN=*),PARAMETER :: src_file="h14.nc" 28 29 CHARACTER(LEN=*),PARAMETER :: dst_file="r180x90.nc" … … 119 120 bounds_lon_1D=dst_boundslon, bounds_lat_1D=dst_boundslat, nvertex=dst_nvertex) 120 121 121 ALLOCATE(tmp_field(180*90/2)) 122 122 123 dtime%second = 3600 123 124 CALL xios_set_timestep(dtime) 124 125 125 126 CALL xios_close_context_definition() 127 CALL xios_get_domain_attr("src_domain_regular_tmp", ni=src_tmp_ni, nj=src_tmp_nj) 128 ALLOCATE(tmp_field(src_tmp_ni*src_tmp_nj)) 129 130 CALL xios_get_axis_attr("src_axis_curvilinear", n=src_tmp_n) 131 CALL xios_get_domain_attr("src_domain_curvilinear", ni=src_tmp_ni, nj=src_tmp_nj) 132 ALLOCATE(tmp_field_1(src_tmp_ni*src_tmp_nj*src_tmp_n)) 126 133 127 134 DO ts=1,1 128 CALL xios_recv_field("src_field_regular", tmp_field) 135 CALL xios_recv_field("src_field_regular_tmp", tmp_field) 136 CALL xios_recv_field("src_field_curvilinear", tmp_field_1) 129 137 CALL xios_update_calendar(ts) 130 138 CALL xios_send_field("src_field",src_field) 131 139 CALL xios_send_field("tmp_field",tmp_field) 140 CALL xios_send_field("tmp_field_1",tmp_field_1) 132 141 CALL wait_us(5000) ; 133 142 ENDDO
Note: See TracChangeset
for help on using the changeset viewer.