Commit 66b67cdc authored by Markus Wolff's avatar Markus Wolff
Browse files

added assert in spline caclulation



git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux/trunk@4177 2fb0f335-1f38-0410-981e-8018bf24f1b0
parent 751bcc17
......@@ -799,7 +799,11 @@ private:
};
Scalar h_(int i) const
{ return x_[i] - x_[i-1]; }
{
assert(x_[i] - x_[i-1] > 0);
return x_[i] - x_[i-1];
}
int findIntervalIdx_(Scalar x) const
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment