Skip to content

Commit

Permalink
Fix interpolate option in equations.
Browse files Browse the repository at this point in the history
  • Loading branch information
netterfield committed Mar 2, 2017
1 parent cad185a commit bf249d7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/libkstmath/equation.cpp
Expand Up @@ -308,6 +308,8 @@ void Equation::setExistingXVector(VectorPtr in_xv, bool do_interp) {
return;
}

_doInterp = do_interp;

VectorPtr v = _inputVectors[XINVECTOR];
if (v == in_xv) {
return;
Expand All @@ -318,7 +320,6 @@ void Equation::setExistingXVector(VectorPtr in_xv, bool do_interp) {
_inputVectors.insert(XINVECTOR, in_xv);

_ns = 2; // reset the updating
_doInterp = do_interp;
}

//FIXME: equations should not use ScalarsUsed and VectorsUsed:
Expand Down

0 comments on commit bf249d7

Please sign in to comment.