mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-08 13:23:51 +00:00
UnitTestCellDerivative: fix type conversion warning.
This commit is contained in:
parent
7f58019eb6
commit
bd43f4b1fd
@ -61,9 +61,10 @@ struct LinearField
|
||||
template <typename T>
|
||||
FieldType GetValue(vtkm::Vec<T, 3> coordinates) const
|
||||
{
|
||||
return ((coordinates[0] * this->Gradient[0] + coordinates[1] * this->Gradient[1] +
|
||||
coordinates[2] * this->Gradient[2]) +
|
||||
this->OriginValue);
|
||||
return static_cast<FieldType>((coordinates[0] * this->Gradient[0] +
|
||||
coordinates[1] * this->Gradient[1] +
|
||||
coordinates[2] * this->Gradient[2]) +
|
||||
this->OriginValue);
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user