Changeset 2428 for XIOS2/trunk/src/io/netCdfInterface_impl.hpp
- Timestamp:
- 11/22/22 14:25:20 (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS2/trunk/src/io/netCdfInterface_impl.hpp
r1158 r2428 13 13 #include "netCdfInterface.hpp" 14 14 #include "netCdfException.hpp" 15 #include "mem_checker.hpp" 15 16 16 17 namespace xios … … 28 29 int CNetCdfInterface::getAttType(int ncid, int varId, const StdString& attrName, T* data) 29 30 { 31 CMemChecker::get("NetCDF get/put").resume(); 30 32 int status = ncGetAttType(ncid, varId, attrName.c_str(), data); 31 33 if (NC_NOERR != status) … … 39 41 throw CNetCdfException(sstr.str()); 40 42 } 43 CMemChecker::get("NetCDF get/put").suspend(); 41 44 42 45 return status; … … 57 60 StdSize numVal, const T* data) 58 61 { 62 CMemChecker::get("NetCDF get/put").resume(); 59 63 int status = ncPutAttType(ncid, varId, attrName.c_str(), numVal, data); 60 64 if (NC_NOERR != status) … … 69 73 throw CNetCdfException(sstr.str()); 70 74 } 75 CMemChecker::get("NetCDF get/put").suspend(); 71 76 72 77 return status; … … 85 90 int CNetCdfInterface::getVaraType(int ncid, int varId, const StdSize* start, const StdSize* count, T* data) 86 91 { 92 CMemChecker::get("NetCDF get/put").resume(); 87 93 int status = ncGetVaraType(ncid, varId, start, count, data); 88 94 if (NC_NOERR != status) … … 96 102 throw CNetCdfException(sstr.str()); 97 103 } 104 CMemChecker::get("NetCDF get/put").suspend(); 98 105 99 106 return status; … … 112 119 int CNetCdfInterface::putVaraType(int ncid, int varId, const StdSize* start, const StdSize* count, const T* data) 113 120 { 121 CMemChecker::get("NetCDF get/put").resume(); 114 122 int status = ncPutVaraType(ncid, varId, start, count, data); 115 123 if (NC_NOERR != status) … … 123 131 throw CNetCdfException(sstr.str()); 124 132 } 125 133 CMemChecker::get("NetCDF get/put").suspend(); 134 126 135 return status; 127 136 }
Note: See TracChangeset
for help on using the changeset viewer.