Make sure the vtkm::Magnitude can be used from worklets.

This commit is contained in:
Robert Maynard 2015-08-31 22:33:51 -04:00
parent 5ab136c5c0
commit 7db2df8ed9

@ -107,6 +107,7 @@ MagnitudeTemplate(const T &x, vtkm::TypeTraitsVectorTag)
/// actually plan to divide by the magnitude.
///
template<typename T>
VTKM_EXEC_CONT_EXPORT
typename vtkm::VecTraits<T>::ComponentType
Magnitude(const T &x)
{