mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-08 13:23:51 +00:00
rename half variable to avoid shadowing CUDA global
This commit is contained in:
parent
954e258745
commit
d59917473d
@ -164,9 +164,9 @@ VTKM_EXEC Scalar GetTriangleArea(const CollectionOfPoints& pts)
|
||||
{
|
||||
const Vector L0 = GetTriangleL0<Scalar, Vector, CollectionOfPoints>(pts);
|
||||
const Vector L1 = GetTriangleL1<Scalar, Vector, CollectionOfPoints>(pts);
|
||||
const Scalar half(0.5);
|
||||
const Scalar hhalf(0.5);
|
||||
const Scalar crossProductMagnitude = vtkm::Sqrt(vtkm::MagnitudeSquared(vtkm::Cross(L0, L1)));
|
||||
const Scalar area = half * crossProductMagnitude;
|
||||
const Scalar area = hhalf * crossProductMagnitude;
|
||||
return area;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user