Changeset 820 for XIOS/trunk/src


Ignore:
Timestamp:
02/10/16 14:34:46 (8 years ago)
Author:
mhnguyen
Message:

Fixing duplicate *_ref on reading attributes from file

+) Remove *_ref from *_ref root of the reference tree

Test
+) On Curie
+) Test passes

Location:
XIOS/trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/declare_ref_func.hpp

    r777 r820  
    5454{                                                                      \ 
    5555  for (int i = 1; i < refObjects.size(); ++i)                          \ 
    56     refObjects[i]->setAttributes(refObjects[0], apply);                \ 
     56    refObjects[i]->setAttributes(refObjects[i-1], apply);              \ 
     57  if (refObjects.size() > 1)                                           \ 
     58    refObjects[refObjects.size()-1]->removeRefInheritance();           \ 
    5759}                                                                      \ 
    5860                                                                       \ 
  • XIOS/trunk/src/test/test_remap.f90

    r786 r820  
    120120                            bounds_lon_1D=dst_boundslon, bounds_lat_1D=dst_boundslat, nvertex=dst_nvertex) 
    121121 
    122   CALL xios_set_generate_rectilinear_domain_attr("domain_regular_pole", lat_start=dble(-90.0), lat_end=dble(90), & 
    123                                                  lon_start=dble(2), lon_end=dble(360)) 
    124  
    125122  dtime%second = 3600 
    126123  CALL xios_set_timestep(dtime) 
     
    134131  ALLOCATE(tmp_field_1(src_tmp_ni*src_tmp_nj*src_tmp_n)) 
    135132 
    136   CALL xios_get_domain_attr("domain_src_unstructured", ni=src_tmp_ni, nj=src_tmp_nj) 
     133  CALL xios_get_domain_attr("src_domain_unstructured", ni=src_tmp_ni, nj=src_tmp_nj) 
    137134  ALLOCATE(tmp_field_2(src_tmp_ni*src_tmp_nj)) 
    138135 
    139136  DO ts=1,1 
     137 
    140138    CALL xios_recv_field("src_field_regular_tmp", tmp_field) 
    141139    CALL xios_recv_field("src_field_curvilinear", tmp_field_1) 
Note: See TracChangeset for help on using the changeset viewer.