Commit e670b091 authored by Dave Pugmire's avatar Dave Pugmire

fix type bug in zfp.

parent d974bcb5
......@@ -359,7 +359,7 @@ struct ZFPBlockEncoder<BlockSize, vtkm::UInt8, PortalType>
{
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::Int32>(), (Int*)fblock);
encode_block<BlockSize>(blockWriter, maxbits, get_precision<vtkm::UInt8>(), (Int*)fblock);
}
};
......
......@@ -97,6 +97,12 @@ 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 <>
......
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