Ignore:
Timestamp:
04/01/15 17:53:02 (9 years ago)
Author:
mhnguyen
Message:

Fixing some bugs on writting non-distributed data

+) Implement scalar grid: Allow to send scalar real data
+) Modify the way to compute the mapping of buffer size from one client to a server
+) Fix a bug of writting axis on one_file mode
+) Make some changes in test_new_features.f90 and test_complete.f90

Test
+) On Curie,
+) test_client and test_complete pass and results are correct

File:
1 edited

Legend:

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

    r569 r586  
    1717  INTEGER,PARAMETER :: ni_glo=100 
    1818  INTEGER,PARAMETER :: nj_glo=100 
    19   INTEGER,PARAMETER :: llm=10 
    20   DOUBLE PRECISION  :: lval(llm)=1 
     19  INTEGER,PARAMETER :: llm=5 
     20  DOUBLE PRECISION  :: lval(llm)=1, tsTemp 
    2121  TYPE(xios_field) :: field_hdl 
    2222  TYPE(xios_fieldgroup) :: fieldgroup_hdl 
     
    8686  CALL xios_set_current_context(ctx_hdl) 
    8787 
    88 !  CALL xios_get_calendar_type(calendar_type) 
    89 !  PRINT *, "calendar_type = ", calendar_type 
     88  CALL xios_get_calendar_type(calendar_type) 
     89  PRINT *, "calendar_type = ", calendar_type 
    9090 
    9191  CALL xios_set_axis_attr("axis_A", size=ni_glo, ibegin=ibegin, ni=ni, value=lval_ni) 
    9292  CALL xios_set_axis_attr("axis_B", size=nj_glo, ibegin=jbegin, ni=nj, value=lval_nj) 
    9393  CALL xios_set_axis_attr("axis_C", size=llm, value=lval) 
    94   CALL xios_set_axis_attr("axis_D", size=llm, value=lval) 
     94  CALL xios_set_axis_attr("axis_D", size=llm, ibegin=axisBegin, ni=nAxis, value=lval) 
    9595  CALL xios_set_domain_attr("domain_A",ni_glo=ni_glo, nj_glo=nj_glo, ibegin=ibegin, ni=ni,jbegin=jbegin,nj=nj) 
    9696  CALL xios_set_domain_attr("domain_A",data_dim=2, data_ibegin=-1, data_ni=ni+2, data_jbegin=-2, data_nj=nj+4) 
    9797  CALL xios_set_domain_attr("domain_A",lonvalue=RESHAPE(lon,(/ni*nj/)),latvalue=RESHAPE(lat,(/ni*nj/))) 
     98  CALL xios_set_domain_attr("domain_A",zoom_ibegin=40, zoom_ni=20, zoom_jbegin=40, zoom_nj=10) 
    9899  CALL xios_set_fieldgroup_attr("field_definition",enabled=.TRUE.) 
    99100 
     
    106107  CALL xios_set_attr(field_hdl,field_ref="field_A",name="field_C") 
    107108 
    108   CALL xios_get_handle("output_Axis",file_hdl) 
     109  CALL xios_get_handle("output_All_Axis",file_hdl) 
    109110  CALL xios_add_child(file_hdl,field_hdl) 
    110111  CALL xios_set_attr(field_hdl,field_ref="field_All_Axis",name="field_C") 
     
    146147    CALL xios_update_calendar(ts) 
    147148    CALL xios_send_field("field_A",field_A) 
    148 !    CALL xios_send_field("field_Axis",field_Axis) 
     149    CALL xios_send_field("field_Axis",field_Axis) 
    149150    CALL xios_send_field("field_All_Axis",field_All_Axis) 
     151    tsTemp = ts 
     152    CALL xios_send_field("field_Scalar", tsTemp) 
    150153    CALL wait_us(5000) ; 
    151154  ENDDO 
Note: See TracChangeset for help on using the changeset viewer.