diff --git a/source/adios2/toolkit/format/dataman/DataManSerializer.tcc b/source/adios2/toolkit/format/dataman/DataManSerializer.tcc index 84514af336..00355293f8 100644 --- a/source/adios2/toolkit/format/dataman/DataManSerializer.tcc +++ b/source/adios2/toolkit/format/dataman/DataManSerializer.tcc @@ -157,9 +157,10 @@ void DataManSerializer::PutData( size_t datasize = 0; bool compressed = false; + std::string compressionMethod; if (not ops.empty()) { - std::string compressionMethod = ops[0].Op->m_Type; + compressionMethod = ops[0].Op->m_Type; std::transform(compressionMethod.begin(), compressionMethod.end(), compressionMethod.begin(), ::tolower); if (compressionMethod == "zfp")