Changeset 498 for XIOS/trunk/src/output/onetcdf4_impl.hpp
- Timestamp:
- 10/09/14 12:28:26 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/output/onetcdf4_impl.hpp
r369 r498 3 3 4 4 #include "onetcdf4.hpp" 5 #include "netCdfInterface.hpp" 5 6 6 7 namespace xios … … 18 19 19 20 if (this->wmpi && collective) 20 C heckError(nc_var_par_access(grpid, varid, NC_COLLECTIVE));21 CNetCdfInterface::varParAccess(grpid, varid, NC_COLLECTIVE); 21 22 if (this->wmpi && !collective) 22 C heckError(nc_var_par_access(grpid, varid, NC_INDEPENDENT));23 CNetCdfInterface::varParAccess(grpid, varid, NC_INDEPENDENT); 23 24 24 25 this->getWriteDataInfos … … 31 32 << " ] Invalid input data !" ); 32 33 } 33 34 34 35 this->writeData_(grpid, varid, sstart, scount, data.dataFirst()); 35 36 } 36 37 37 38 //---------------------------------------------------------------- 38 39 39 40 template <class T> 40 41 void CONetCDF4::setDefaultValue(const StdString & varname, const T * value) … … 42 43 int grpid = this->getCurrentGroup(); 43 44 int varid = this->getVariable(varname); 44 45 45 46 if (value != NULL) 46 47 { 47 C heckError(nc_def_var_fill(grpid, varid, 0, (void*)value));48 CNetCdfInterface::defVarFill(grpid, varid, 0, (void*)value); 48 49 this->addAttribute(StdString("missing_value"), *value, &varname); 49 50 } 50 else C heckError(nc_def_var_fill(grpid, varid, 1, NULL));51 else CNetCdfInterface::defVarFill(grpid, varid, 1, NULL); 51 52 } 52 53 53 54 ///--------------------------------------------------------------- 54 55
Note: See TracChangeset
for help on using the changeset viewer.