Add a copy constructor for IntegralCurve that doesn't copy the std::vector.
This commit is contained in:
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;
|
||||
|
Loading…
Reference in New Issue
Block a user