diff --git a/source/adios2/engine/table/TableWriter.tcc b/source/adios2/engine/table/TableWriter.tcc index e429b4c057..1c6d1d4ab5 100644 --- a/source/adios2/engine/table/TableWriter.tcc +++ b/source/adios2/engine/table/TableWriter.tcc @@ -104,9 +104,18 @@ void TableWriter::PutDeferredCommon(Variable &variable, const T *data) var->m_Type == helper::GetDataType>() || var->m_Type == helper::GetDataType>()) { - m_Compressor = new compress::CompressZFP({}); - var->AddOperation(*m_Compressor, - {{ops::zfp::key::accuracy, m_UseAccuracy}}); + if (m_UseAccuracy.empty()) + { + std::cerr << "Parameter accuracy for lossy compression is " + "not specified, compressor not added" + << std::endl; + } + else + { + m_Compressor = new compress::CompressZFP({}); + var->AddOperation(*m_Compressor, {{ops::zfp::key::accuracy, + m_UseAccuracy}}); + } } #else std::cerr << "ADIOS2 is not compiled with ZFP "