mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-16 17:22:55 +00:00
compiler warnings.
This commit is contained in:
parent
02b0fd51e4
commit
4a7129db01
@ -55,7 +55,7 @@ private:
|
||||
static constexpr vtkm::Id TOOK_ANY_STEPS_BIT = 4;
|
||||
};
|
||||
|
||||
inline VTKM_EXEC_CONT std::ostream& operator<<(std::ostream& s, const vtkm::ParticleStatus& status)
|
||||
inline VTKM_CONT std::ostream& operator<<(std::ostream& s, const vtkm::ParticleStatus& status)
|
||||
{
|
||||
s << "[" << status.CheckOk() << " " << status.CheckTerminate() << " "
|
||||
<< status.CheckSpatialBounds() << " " << status.CheckTemporalBounds() << "]";
|
||||
|
@ -34,7 +34,7 @@ namespace worklet
|
||||
namespace particleadvection
|
||||
{
|
||||
|
||||
class VTKM_ALWAYS_EXPORT IntegratorStatus : public vtkm::Bitset<vtkm::UInt8>
|
||||
class IntegratorStatus : public vtkm::Bitset<vtkm::UInt8>
|
||||
{
|
||||
public:
|
||||
VTKM_EXEC_CONT IntegratorStatus() {}
|
||||
@ -71,7 +71,7 @@ private:
|
||||
static constexpr vtkm::Id TEMPORAL_BOUNDS_BIT = 2;
|
||||
};
|
||||
|
||||
inline VTKM_EXEC_CONT std::ostream& operator<<(std::ostream& s, const IntegratorStatus& status)
|
||||
inline VTKM_CONT std::ostream& operator<<(std::ostream& s, const IntegratorStatus& status)
|
||||
{
|
||||
s << "[" << status.CheckOk() << " " << status.CheckSpatialBounds() << " "
|
||||
<< status.CheckTemporalBounds() << "]";
|
||||
@ -161,11 +161,13 @@ protected:
|
||||
IntegratorStatus status;
|
||||
if (!this->Evaluator.IsWithinSpatialBoundary(inpos))
|
||||
{
|
||||
status.SetFail();
|
||||
status.SetSpatialBounds();
|
||||
return status;
|
||||
}
|
||||
if (!this->Evaluator.IsWithinTemporalBoundary(time))
|
||||
{
|
||||
status.SetFail();
|
||||
status.SetTemporalBounds();
|
||||
return status;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user