Skip to content
  • Kenneth Moreland's avatar
    Move NewtonsMethod to the vtkm package · c503e0ce
    Kenneth Moreland authored
    All the other math functions are in the vtkm package. This one was in
    vtkm::exec because it uses a callback method. This can be problematic on
    CUDA the the declaration of NewtonsMethod does not match the callback
    method. However, we now have a VTKM_SUPPRESS_EXEC_WARNINGS macro that
    allows a VTKM_EXEC_CONT_EXPORT function (like NewtonsMethod) to call
    either a VTKM_EXEC_EXPORT or VTKM_CONT_EXPORT without a warning.
    c503e0ce