Skip to content

Overload stream operator to print vtkm::Particle.

Nick Thompson requested to merge NAThompson/vtk-m:print_particle into master

The output looks like this:

156: v(0) = [0.00705807,0.700189,0.0824718], ID: 0, NumSteps: 0, Status: [ok= 1 term= 0 spat= 0 temp= 0 ghst= 0]
156: v(0) = [0.965941,0.93809,0.0562588], ID: 1, NumSteps: 0, Status: [ok= 1 term= 0 spat= 0 temp= 0 ghst= 0]
156: v(0) = [0.702409,0.974634,0.0552536], ID: 2, NumSteps: 0, Status: [ok= 1 term= 0 spat= 0 temp= 0 ghst= 0]
156: v(0.01) = [0.00705807,0.700189,0.0924718], ID: 0, NumSteps: 10, Status: [ok= 1 term= 1 spat= 0 temp= 0 ghst= 0]
156: v(0.01) = [0.965941,0.93809,0.0662588], ID: 1, NumSteps: 10, Status: [ok= 1 term= 1 spat= 0 temp= 0 ghst= 0]
156: v(0.01) = [0.702409,0.974634,0.0652536], ID: 2, NumSteps: 10, Status: [ok= 1 term= 1 spat= 0 temp= 0 ghst= 0]

Chosen symbol v arbitrarily to represent the solution to v' = f.

Merge request reports

Loading