Changeset 517 for XIOS/trunk/src/output/onetcdf4_impl.hpp
- Timestamp:
- 11/26/14 12:06:21 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/output/onetcdf4_impl.hpp
r501 r517 46 46 if (value != NULL) 47 47 { 48 CNetCdfInterface::defVarFill(grpid, varid, 0, (void*)value); 48 // nc_def_var_fill will automatically set the _FillValue attribute when 49 // using the NetCDF 4 format but we need to do it manually otherwise 50 if (useClassicFormat) 51 this->addAttribute(StdString("_FillValue"), *value, &varname); 52 else 53 CNetCdfInterface::defVarFill(grpid, varid, 0, (void*)value); 49 54 this->addAttribute(StdString("missing_value"), *value, &varname); 50 55 } 51 else CNetCdfInterface::defVarFill(grpid, varid, 1, NULL); 56 else if (!useClassicFormat) 57 { 58 // The "no-fill mode" is set globally for the classic NetCDF format 59 CNetCdfInterface::defVarFill(grpid, varid, 1, NULL); 60 } 52 61 } 53 62
Note: See TracChangeset
for help on using the changeset viewer.