Commit f5569fb9 authored by Mark Kim's avatar Mark Kim

More warnings.

parent 6beefb4a
......@@ -69,7 +69,7 @@ public:
size_t outbits = detail::CalcMem1d(paddedDims, stream.minbits);
vtkm::Id outsize = outbits / sizeof(ZFPWord);
vtkm::Id outsize = vtkm::Id(outbits / sizeof(ZFPWord));
vtkm::cont::ArrayHandle<vtkm::Int64> output;
// hopefully this inits/allocates the mem only on the device
......
......@@ -71,7 +71,7 @@ public:
size_t outbits = detail::CalcMem2d(paddedDims, stream.minbits);
vtkm::Id outsize = outbits / sizeof(ZFPWord);
vtkm::Id outsize = vtkm::Id(outbits / sizeof(ZFPWord));
vtkm::cont::ArrayHandle<vtkm::Int64> output;
// hopefully this inits/allocates the mem only on the device
......
......@@ -73,7 +73,7 @@ public:
size_t outbits = detail::CalcMem3d(paddedDims, stream.minbits);
vtkm::Id outsize = outbits / sizeof(ZFPWord);
vtkm::Id outsize = vtkm::Id(outbits / sizeof(ZFPWord));
vtkm::cont::ArrayHandle<vtkm::Int64> output;
// hopefully this inits/allocates the mem only on the device
......
......@@ -315,7 +315,7 @@ inline VTKM_EXEC void zfp_encodef(Scalar* fblock,
PortalType& stream)
{
using Int = typename zfp::zfp_traits<Scalar>::Int;
zfp::BlockWriter<BlockSize, PortalType> blockWriter(stream, maxbits, blockIdx);
zfp::BlockWriter<BlockSize, PortalType> blockWriter(stream, maxbits, vtkm::Id(blockIdx));
vtkm::Int32 emax = zfp::MaxExponent<BlockSize, Scalar>(fblock);
// std::cout<<"EMAX "<<emax<<"\n";
vtkm::Int32 maxprec =
......@@ -375,7 +375,7 @@ struct ZFPBlockEncoder<BlockSize, vtkm::Int32, PortalType>
PortalType& stream)
{
using Int = typename zfp::zfp_traits<vtkm::Int32>::Int;
zfp::BlockWriter<BlockSize, PortalType> blockWriter(stream, maxbits, blockIdx);
zfp::BlockWriter<BlockSize, PortalType> blockWriter(stream, maxbits, vtkm::Id(blockIdx));
encode_block<BlockSize>(blockWriter, maxbits, get_precision<vtkm::Int32>(), (Int*)fblock);
}
};
......@@ -389,7 +389,7 @@ struct ZFPBlockEncoder<BlockSize, vtkm::Int64, PortalType>
PortalType& stream)
{
using Int = typename zfp::zfp_traits<vtkm::Int64>::Int;
zfp::BlockWriter<BlockSize, PortalType> blockWriter(stream, maxbits, blockIdx);
zfp::BlockWriter<BlockSize, PortalType> blockWriter(stream, maxbits, vtkm::Id(blockIdx));
encode_block<BlockSize>(blockWriter, maxbits, get_precision<vtkm::Int64>(), (Int*)fblock);
}
};
......
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