Commit 8dbfcf37 authored by Dave Pugmire's avatar Dave Pugmire

ZFP doesn't support UInt8

parent e670b091
......@@ -352,14 +352,12 @@ struct ZFPBlockEncoder<BlockSize, vtkm::Float64, PortalType>
template <vtkm::Int32 BlockSize, typename PortalType>
struct ZFPBlockEncoder<BlockSize, vtkm::UInt8, PortalType>
{
VTKM_EXEC void encode(vtkm::UInt8* fblock,
vtkm::Int32 maxbits,
vtkm::UInt32 blockIdx,
PortalType& stream)
VTKM_EXEC void encode(vtkm::UInt8* vtkmNotUsed(fblock),
vtkm::Int32 vtkmNotUsed(maxbits),
vtkm::UInt32 vtkmNotUsed(blockIdx),
PortalType& vtkmNotUsed(stream))
{
using Int = typename zfp::zfp_traits<vtkm::UInt8>::Int;
zfp::BlockWriter<BlockSize, PortalType> blockWriter(stream, maxbits, vtkm::Id(blockIdx));
encode_block<BlockSize>(blockWriter, maxbits, get_precision<vtkm::UInt8>(), (Int*)fblock);
throw vtkm::cont::ErrorBadType("Unsupported type for ZFP worklet: vtkm::UInt8");
}
};
......
......@@ -97,12 +97,6 @@ inline VTKM_EXEC int get_precision<int>()
return 32;
}
template <>
inline VTKM_EXEC int get_precision<unsigned char>()
{
return 8;
}
template <typename T>
inline VTKM_EXEC int get_min_exp();
template <>
......@@ -206,10 +200,10 @@ struct zfp_traits<int>
};
template <>
struct zfp_traits<unsigned char>
struct zfp_traits<char>
{
typedef unsigned char UInt;
typedef int Int;
typedef char Int;
};
template <typename T>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment