Changeset 1462


Ignore:
Timestamp:
03/22/18 17:28:11 (6 years ago)
Author:
yushan
Message:

restore CINetCDF4::isRectilinear

File:
1 edited

Legend:

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

    r1460 r1462  
    494494  } 
    495495 
     496 
    496497  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) 
    497518  { 
    498519    std::list<StdString> varCoords = this->getCoordinatesIdList(name, path); 
     
    536557    return (varDims1D.size() == 2); 
    537558  } 
     559*/ 
    538560 
    539561  bool CINetCDF4::isCurvilinear(const StdString& name, const CVarPath* const path) 
Note: See TracChangeset for help on using the changeset viewer.