mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-19 18:45:43 +00:00
fix compiler warning.
This commit is contained in:
parent
22becf6de3
commit
0527fad6ce
@ -583,12 +583,12 @@ void TestParticleStatus()
|
||||
auto res = pa.Run(rk4, seedsArray, maxSteps);
|
||||
auto statusPortal = res.status.GetPortalConstControl();
|
||||
|
||||
bool tookStep0 =
|
||||
vtkm::Id tookStep0 =
|
||||
statusPortal.Get(0) & vtkm::worklet::particleadvection::ParticleStatus::TOOK_ANY_STEPS;
|
||||
bool tookStep1 =
|
||||
vtkm::Id tookStep1 =
|
||||
statusPortal.Get(1) & vtkm::worklet::particleadvection::ParticleStatus::TOOK_ANY_STEPS;
|
||||
VTKM_TEST_ASSERT(tookStep0 == true, "Particle failed to take any steps");
|
||||
VTKM_TEST_ASSERT(tookStep1 == false, "Particle took a step when it should not have.");
|
||||
VTKM_TEST_ASSERT(tookStep0 != 0, "Particle failed to take any steps");
|
||||
VTKM_TEST_ASSERT(tookStep1 == 0, "Particle took a step when it should not have.");
|
||||
}
|
||||
|
||||
void TestParticleAdvection()
|
||||
|
Loading…
Reference in New Issue
Block a user