Changeset 1444


Ignore:
Timestamp:
02/28/18 17:50:04 (3 years ago)
Author:
oabramkina
Message:

Correcting a bug on reading unstructured domains introduced in r1443.

(Whatever was working should continue to work.)

File:
1 edited

Legend:

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

    r1443 r1444  
    496496    std::list<StdString> coords = this->getCoordinatesIdList(name, path); 
    497497    std::list<StdString>::const_iterator it = coords.begin(), end = coords.end(); 
    498     int nb1Ddims = 0; 
     498    std::set<StdString> dimVarList; 
    499499 
    500500    for (; it != end; it++) 
     
    510510          if (dimTmp.compare("str_len") != 0) 
    511511          { 
    512             nb1Ddims++; 
     512            dimVarList.insert(dimvar.begin()->first); 
    513513            continue; 
    514514          } 
     
    519519    } 
    520520 
    521     return (nb1Ddims != 1); 
     521    return (dimVarList.size() != 1); 
    522522  } 
    523523 
Note: See TracChangeset for help on using the changeset viewer.