Add a copy constructor for IntegralCurve that doesn't copy the std::vector.

This commit is contained in:
Dave Pugmire 2017-04-05 11:30:42 -07:00 committed by ayenpure
parent 8d50428424
commit 9edd66e2ae

@ -196,6 +196,11 @@ public:
IntegralCurve() : pos(), steps(), maxSteps(0)
{
}
VTKM_CONT
IntegralCurve(const IntegralCurve &ic) :
pos(ic.pos), steps(ic.steps), maxSteps(ic.maxSteps)
{
}
VTKM_CONT
IntegralCurve(const PosPortal &_pos,
@ -367,8 +372,6 @@ public:
else
break;
}
// if (idx % 1000 == 0)
// std::cout<<idx<<": DONE"<<std::endl;
p2 = ic.GetPos(idx);
//std::cout<<"PIC: "<<idx<<" "<<p0<<" --> "<<p2<<" #steps= "<<ic.GetStep(idx)<<std::endl;