Skip to content
Snippets Groups Projects
Commit 9301cc4f authored by mattijs's avatar mattijs
Browse files

ENH: linearInterpolationWeights: handle values equal to table range

parent af91ab5b
Branches
Tags
No related merge requests found
......@@ -167,8 +167,11 @@ bool linearInterpolationWeights::integrationWeights
<< exit(FatalError);
}
// Currently no fancy logic on cached index
label i1 = findLower(samples_, t1);
// Currently no fancy logic on cached index like in value
//- Find lower or equal index
label i1 = findLower(samples_, t1, 0, lessEqOp<scalar>());
//- Find lower index
label i2 = findLower(samples_, t2);
// For now just fail if any outside table
......
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