ENH: linearInterpolationWeights: handle values equal to table range
This commit is contained in:
parent
af91ab5b91
commit
9301cc4f64
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user