Changeset 783 for XIOS/trunk/src/test


Ignore:
Timestamp:
11/12/15 16:33:08 (8 years ago)
Author:
mhnguyen
Message:

Adding attribute reading of unstructured grid

+) Fix a minor bug relating to unstructured grid detection
+) Add attribute reading for unstructured domain

Test
+) On Curie
+) test_remap passes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/test/test_remap.f90

    r775 r783  
    2020  DOUBLE PRECISION,ALLOCATABLE :: src_boundslon(:,:), dst_boundslon(:,:) 
    2121  DOUBLE PRECISION,ALLOCATABLE :: src_boundslat(:,:), dst_boundslat(:,:) 
    22   DOUBLE PRECISION,ALLOCATABLE :: src_field(:), tmp_field(:), tmp_field_1(:) 
     22  DOUBLE PRECISION,ALLOCATABLE :: src_field(:), tmp_field(:), tmp_field_1(:), tmp_field_2(:) 
    2323  INTEGER :: src_ni_glo, dst_ni_glo; 
    2424  INTEGER :: src_nvertex, dst_nvertex; 
     
    132132  ALLOCATE(tmp_field_1(src_tmp_ni*src_tmp_nj*src_tmp_n)) 
    133133 
     134  CALL xios_get_domain_attr("domain_src_unstructured", ni=src_tmp_ni, nj=src_tmp_nj) 
     135  ALLOCATE(tmp_field_2(src_tmp_ni*src_tmp_nj)) 
     136 
    134137  DO ts=1,1 
    135138    CALL xios_recv_field("src_field_regular_tmp", tmp_field) 
    136139    CALL xios_recv_field("src_field_curvilinear", tmp_field_1) 
     140    CALL xios_recv_field("field_src_unstructred", tmp_field_2) 
    137141    CALL xios_update_calendar(ts) 
    138142    CALL xios_send_field("src_field",src_field) 
    139143    CALL xios_send_field("tmp_field",tmp_field) 
    140144    CALL xios_send_field("tmp_field_1",tmp_field_1) 
     145    CALL xios_send_field("tmp_field_2",tmp_field_2) 
    141146    CALL wait_us(5000) ; 
    142147  ENDDO 
     
    146151  DEALLOCATE(src_lon, src_lat, src_boundslon,src_boundslat, src_field) 
    147152  DEALLOCATE(dst_lon, dst_lat, dst_boundslon,dst_boundslat) 
     153  DEALLOCATE(tmp_field, tmp_field_1, tmp_field_2) 
    148154 
    149155  CALL MPI_COMM_FREE(comm, ierr) 
Note: See TracChangeset for help on using the changeset viewer.