Changeset 1009 for XIOS/dev/dev_olga/src/test/test_regular.f90
- Timestamp:
- 12/05/16 17:47:54 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_olga/src/test/test_regular.f90
r924 r1009 20 20 INTEGER :: size, rank 21 21 22 INTEGER :: nlon = 10023 INTEGER :: nlat = 10022 INTEGER :: nlon = 5 !100 23 INTEGER :: nlat = 5 !100 24 24 INTEGER :: ncell 25 25 INTEGER :: ilat, ilon, ind … … 37 37 DOUBLE PRECISION,ALLOCATABLE :: bounds_lat(:,:) 38 38 DOUBLE PRECISION,ALLOCATABLE :: field_temp(:,:) 39 DOUBLE PRECISION,ALLOCATABLE :: field_temp1(:,:) 40 DOUBLE PRECISION,ALLOCATABLE :: field_temp2(:,:) 39 41 40 42 !!! MPI Initialization … … 118 120 ALLOCATE(bounds_lat(4,ni)) 119 121 ALLOCATE(field_temp(ni,ntime)) 120 lon = lon_glo(1+ibegin:1+ibegin+ni) 121 lat = lat_glo(1+ibegin:1+ibegin+ni) 122 bounds_lon(:,:) = bounds_lon_glo(:,1+ibegin:1+ibegin+ni) 123 bounds_lat(:,:) = bounds_lat_glo(:,1+ibegin:1+ibegin+ni) 122 ALLOCATE(field_temp1(ni,ntime)) 123 ALLOCATE(field_temp2(ni,ntime)) 124 lon = lon_glo(ibegin:1+ibegin+ni) 125 lat = lat_glo(ibegin:1+ibegin+ni) 126 bounds_lon(:,:) = bounds_lon_glo(:,ibegin:1+ibegin+ni) 127 bounds_lat(:,:) = bounds_lat_glo(:,ibegin:1+ibegin+ni) 128 124 129 field_temp(:,:) = rank 130 field_temp1(:,:) = rank 131 field_temp2(:,:) = rank + 10 125 132 126 133 … … 135 142 time_origin=xios_date(1999, 01, 01, 15, 00, 00)) 136 143 137 CALL xios_set_domain_attr("face", ni_glo=ncell, ibegin=ibegin, ni=ni, type='unstructured') 138 CALL xios_set_domain_attr("face", lonvalue_1d=lon, latvalue_1d=lat) 139 CALL xios_set_domain_attr("face", bounds_lon_1d=bounds_lon, bounds_lat_1d=bounds_lat) 140 144 CALL xios_set_domain_attr("face1", ni_glo=ncell, ibegin=ibegin, ni=ni, type='unstructured') 145 CALL xios_set_domain_attr("face1", lonvalue_1d=lon, latvalue_1d=lat) 146 CALL xios_set_domain_attr("face1", bounds_lon_1d=bounds_lon, bounds_lat_1d=bounds_lat) 147 148 CALL xios_set_domain_attr("face2", ni_glo=ncell, ibegin=ibegin, ni=ni, type='unstructured') 149 CALL xios_set_domain_attr("face2", lonvalue_1d=lon, latvalue_1d=lat) 150 CALL xios_set_domain_attr("face2", bounds_lon_1d=bounds_lon, bounds_lat_1d=bounds_lat) 141 151 142 152 !!! Definition du timestep … … 160 170 161 171 !!! On donne la valeur du champ atm 162 CALL xios_send_field("temp",field_temp(:,1)) 172 CALL xios_send_field("temp1",field_temp1(:,1)) 173 CALL xios_send_field("temp2",field_temp2(:,1)) 163 174 164 175 ENDDO … … 178 189 DEALLOCATE(bounds_lon, bounds_lat) 179 190 DEALLOCATE(field_temp) 191 DEALLOCATE(field_temp1, field_temp2) 180 192 181 193 !!! Fin de XIOS
Note: See TracChangeset
for help on using the changeset viewer.