Changeset 1443
- Timestamp:
- 02/28/18 11:18:22 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/XIOS_DEV_CMIP6/src/io/inetcdf4.cpp
r1432 r1443 496 496 std::list<StdString> coords = this->getCoordinatesIdList(name, path); 497 497 std::list<StdString>::const_iterator it = coords.begin(), end = coords.end(); 498 std::set<StdString> dimVarList;498 int nb1Ddims = 0; 499 499 500 500 for (; it != end; it++) … … 504 504 { 505 505 std::map<StdString, StdSize> dimvar = this->getDimensions(&coord, path); 506 // if ((dimvar.size() == 1) && (dimvar.find(coord) != dimvar.end()))507 506 if ((dimvar.size() == 1)) 508 507 { 509 dimVarList.insert(dimvar.begin()->first); 510 continue; 508 // Check that the coordinate is not a scalar label 509 StdString dimTmp = dimvar.begin()->first; 510 if (dimTmp.compare("str_len") != 0) 511 { 512 nb1Ddims++; 513 continue; 514 } 511 515 } 512 516 else … … 515 519 } 516 520 517 return ( dimVarList.size()!= 1);521 return (nb1Ddims != 1); 518 522 } 519 523
Note: See TracChangeset
for help on using the changeset viewer.