Ignore:
Timestamp:
06/05/15 10:03:37 (7 years ago)
Author:
rlacroix
Message:

Improve the error message when compression cannot be used.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/branchs/xios-1.0/src/output/onetcdf4.cpp

    r606 r607  
    290290      void CONetCDF4::setCompressionLevel(const StdString& varname, int compressionLevel) 
    291291      { 
     292         if (compressionLevel < 0 || compressionLevel > 9) 
     293           ERROR("void CONetCDF4::setCompressionLevel(const StdString& varname, int compressionLevel)", 
     294                 "Invalid compression level for variable \"" << varname << "\", the value should range between 0 and 9."); 
     295         if (compressionLevel && wmpi) 
     296           ERROR("void CONetCDF4::setCompressionLevel(const StdString& varname, int compressionLevel)", 
     297                 "Impossible to use compression for variable \"" << varname << "\" when using parallel mode."); 
     298 
    292299         int grpid = this->getCurrentGroup(); 
    293300         int varid = this->getVariable(varname); 
Note: See TracChangeset for help on using the changeset viewer.