Changeset 1076 for XIOS/trunk/src/test


Ignore:
Timestamp:
03/16/17 15:04:53 (7 years ago)
Author:
mhnguyen
Message:

Correcting behavior of detecting_missing_value:

  • Missing value detection is activated only when detecting_missing_value = true

and a default_value is defined.

  • By default, undefined value by the computation of vertical (horizontal) interpolation will be NaN (not a number).

They are only converted to default_value if missing value detection is activated

Test

  • On Curie
  • Work
File:
1 edited

Legend:

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

    r1064 r1076  
    9090  DO i=1,src_ni 
    9191    src_field_3D(i,:) = src_field_2D(i) 
    92     IF ((23.5 < src_lat(i)) .AND. (src_lat(i) < 65.5) .AND. (0 < src_lon(i)) .AND. (src_lon(i) < 30)) THEN 
     92    IF ((0 < src_lat(i)) .AND. (src_lat(i) < 25.5) .AND. (30 < src_lon(i)) .AND. (src_lon(i) < 60)) THEN 
    9393      src_mask_2D(i)=.FALSE. 
    94       src_field_2D(i) = missing_value 
     94      ! src_field_2D(i) = missing_value 
    9595    ELSE 
    9696      src_mask_2D(i)=.TRUE.       
     
    192192  CALL xios_get_domain_attr("src_domain_unstructured_read", ni=src_tmp_ni, nj=src_tmp_nj) 
    193193  ALLOCATE(tmp_field_2(src_tmp_ni*src_tmp_nj)) 
    194  
    195   DO ts=1,1 
    196     CALL xios_recv_field("src_field_regular", tmp_field_0) 
    197     CALL xios_recv_field("src_field_curvilinear", tmp_field_1) 
    198     CALL xios_recv_field("src_field_unstructured", tmp_field_2) 
     194   
     195  CALL xios_recv_field("src_field_regular", tmp_field_0) 
     196  CALL xios_recv_field("src_field_curvilinear", tmp_field_1) 
     197  CALL xios_recv_field("src_field_unstructured", tmp_field_2) 
     198 
     199  DO ts=1,10 
    199200    CALL xios_update_calendar(ts) 
    200201    CALL xios_send_field("src_field_2D",src_field_2D) 
Note: See TracChangeset for help on using the changeset viewer.