- Timestamp:
- 03/22/18 17:28:11 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/branch_openmp/src/io/inetcdf4.cpp
r1460 r1462 494 494 } 495 495 496 496 497 bool CINetCDF4::isRectilinear(const StdString& name, const CVarPath* const path) 498 { 499 std::list<StdString> varCoords = this->getCoordinatesIdList(name, path); 500 std::list<StdString>::const_iterator it = varCoords.begin(), end = varCoords.end(); 501 for (; it != end; it++) 502 { 503 const StdString& coord = *it; 504 if (this->hasVariable(coord, path) && !this->isTemporal(coord, path)) 505 { 506 std::map<StdString, StdSize> dimvar = this->getDimensions(&coord, path); 507 if ((dimvar.size() == 1) && (dimvar.find(coord) != dimvar.end())) 508 continue; 509 else 510 return false; 511 } 512 } 513 return true; 514 } 515 516 /* 517 bool CINetCDF4::isRectilinear_1459(const StdString& name, const CVarPath* const path) 497 518 { 498 519 std::list<StdString> varCoords = this->getCoordinatesIdList(name, path); … … 536 557 return (varDims1D.size() == 2); 537 558 } 559 */ 538 560 539 561 bool CINetCDF4::isCurvilinear(const StdString& name, const CVarPath* const path)
Note: See TracChangeset
for help on using the changeset viewer.