Ignore:
Timestamp:
04/20/18 14:33:46 (6 years ago)
Author:
oabramkina
Message:

XIOS_DEV_CMIP: minor modifications for reading UGRID.

Using attribute nvertex defined by a user and not deduced from metadata of a file being read.
Taking into account the fact that the bounds attribute is not required by UGRID.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/XIOS_DEV_CMIP6/src/node/file.cpp

    r1485 r1486  
    661661 
    662662      if (isOpen) data_out->closeFile(); 
    663       if (time_counter_name.isEmpty()) data_in = shared_ptr<CDataInput>(new CNc4DataInput(oss.str(), readComm, multifile, isCollective, readMetaDataPar)); 
    664       else data_in = shared_ptr<CDataInput>(new CNc4DataInput(oss.str(), readComm, multifile, isCollective, readMetaDataPar, time_counter_name)); 
     663      bool ugridConvention = !convention.isEmpty() ? (convention == convention_attr::UGRID) : false; 
     664      if (time_counter_name.isEmpty()) 
     665        data_in = shared_ptr<CDataInput>(new CNc4DataInput(oss.str(), readComm, multifile, isCollective, readMetaDataPar, ugridConvention)); 
     666      else 
     667        data_in = shared_ptr<CDataInput>(new CNc4DataInput(oss.str(), readComm, multifile, isCollective, readMetaDataPar, ugridConvention, time_counter_name)); 
    665668      isOpen = true; 
    666669    } 
Note: See TracChangeset for help on using the changeset viewer.