mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-20 11:05:44 +00:00
Fixing compiler warnings
This commit is contained in:
parent
d55b9e3eb5
commit
5b1d1c999d
@ -170,10 +170,13 @@ protected:
|
|||||||
vtkm::Bounds bounds = this->Evaluator.GetSpatialBoundary();
|
vtkm::Bounds bounds = this->Evaluator.GetSpatialBoundary();
|
||||||
vtkm::Vec<ScalarType, 3> direction = velocity / vtkm::Magnitude(velocity);
|
vtkm::Vec<ScalarType, 3> direction = velocity / vtkm::Magnitude(velocity);
|
||||||
|
|
||||||
const vtkm::Float64 eps = 1e-6;
|
const ScalarType eps = vtkm::Epsilon<ScalarType>();
|
||||||
ScalarType xStepLength = vtkm::Abs(direction[0] * eps * bounds.X.Length());
|
ScalarType xStepLength =
|
||||||
ScalarType yStepLength = vtkm::Abs(direction[1] * eps * bounds.Y.Length());
|
vtkm::Abs(direction[0] * eps * static_cast<ScalarType>(bounds.X.Length()));
|
||||||
ScalarType zStepLength = vtkm::Abs(direction[2] * eps * bounds.Z.Length());
|
ScalarType yStepLength =
|
||||||
|
vtkm::Abs(direction[1] * eps * static_cast<ScalarType>(bounds.Y.Length()));
|
||||||
|
ScalarType zStepLength =
|
||||||
|
vtkm::Abs(direction[2] * eps * static_cast<ScalarType>(bounds.Z.Length()));
|
||||||
ScalarType minLength = vtkm::Min(xStepLength, vtkm::Min(yStepLength, zStepLength));
|
ScalarType minLength = vtkm::Min(xStepLength, vtkm::Min(yStepLength, zStepLength));
|
||||||
|
|
||||||
outpos = workpos + minLength * velocity;
|
outpos = workpos + minLength * velocity;
|
||||||
|
Loading…
Reference in New Issue
Block a user