Changeset 811 for XIOS/trunk/src/io
- Timestamp:
- 01/07/16 09:21:51 (8 years ago)
- Location:
- XIOS/trunk/src/io
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/io/inetcdf4.cpp
r802 r811 27 27 28 28 this->timeCounterName = timeCounterName; 29 if (!CNetCdfInterface::isDimExisted(this->ncidp, this->timeCounterName)) this->timeCounterName=this->getUnlimitedDimensionName() ; 30 29 31 } 30 32 -
XIOS/trunk/src/io/nc4_data_input.cpp
r807 r811 30 30 if (SuperClassWriter::isTemporal(fieldId)) 31 31 { 32 return SuperClassWriter::getDimensions(&fieldId)[SuperClassWriter::getUnlimitedDimensionName()]; 32 // return SuperClassWriter::getDimensions(&fieldId)[SuperClassWriter::getUnlimitedDimensionName()]; 33 return SuperClassWriter::getDimensions(&fieldId)[SuperClassWriter::getTimeCounterName()]; 33 34 } 34 35 -
XIOS/trunk/src/io/netCdfInterface.cpp
r782 r811 995 995 int varId = 0; 996 996 return (NC_NOERR == (nc_inq_varid(ncId, varName.c_str(), &varId))); 997 } 998 999 bool CNetCdfInterface::isDimExisted(int ncId, const StdString& dimName) 1000 { 1001 int dimId = 0; 1002 return (NC_NOERR == (nc_inq_dimid(ncId, dimName.c_str(), &dimId))); 997 1003 } 998 1004 -
XIOS/trunk/src/io/netCdfInterface.hpp
r686 r811 172 172 //! Query the existence of a variable 173 173 static bool isVarExisted(int ncId, const StdString& varName); 174 174 static bool isDimExisted(int ncId, const StdString& dimName); 175 175 }; 176 176 }
Note: See TracChangeset
for help on using the changeset viewer.