Changeset 1432


Ignore:
Timestamp:
02/19/18 15:31:48 (3 years ago)
Author:
oabramkina
Message:

Bugfix for reading related to introduction of new attributes in r1430.

Still to be corrected: reading of fields on rectilinear domains with empty coordinate list.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/XIOS_DEV_CMIP6/src/io/inetcdf4.cpp

    r1430 r1432  
    496496    std::list<StdString> coords = this->getCoordinatesIdList(name, path); 
    497497    std::list<StdString>::const_iterator it = coords.begin(), end = coords.end(); 
     498    std::set<StdString> dimVarList; 
     499 
    498500    for (; it != end; it++) 
    499501    { 
     
    503505        std::map<StdString, StdSize> dimvar = this->getDimensions(&coord, path); 
    504506//        if ((dimvar.size() == 1) && (dimvar.find(coord) != dimvar.end())) 
    505         if ((dimvar.size() == 1) ) 
     507        if ((dimvar.size() == 1)) 
     508        { 
     509          dimVarList.insert(dimvar.begin()->first); 
    506510          continue; 
     511        } 
    507512        else 
    508513          return false; 
    509514      } 
    510515    } 
    511     return true; 
     516 
     517    return (dimVarList.size() != 1); 
    512518  } 
    513519 
Note: See TracChangeset for help on using the changeset viewer.