Changeset 1444
- Timestamp:
- 02/28/18 17:50:04 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/XIOS_DEV_CMIP6/src/io/inetcdf4.cpp
r1443 r1444 496 496 std::list<StdString> coords = this->getCoordinatesIdList(name, path); 497 497 std::list<StdString>::const_iterator it = coords.begin(), end = coords.end(); 498 int nb1Ddims = 0;498 std::set<StdString> dimVarList; 499 499 500 500 for (; it != end; it++) … … 510 510 if (dimTmp.compare("str_len") != 0) 511 511 { 512 nb1Ddims++;512 dimVarList.insert(dimvar.begin()->first); 513 513 continue; 514 514 } … … 519 519 } 520 520 521 return ( nb1Ddims!= 1);521 return (dimVarList.size() != 1); 522 522 } 523 523
Note: See TracChangeset
for help on using the changeset viewer.