mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: linearInterpolationWeights: handle values equal to table range
This commit is contained in:
@ -167,8 +167,11 @@ bool linearInterpolationWeights::integrationWeights
|
|||||||
<< exit(FatalError);
|
<< exit(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Currently no fancy logic on cached index
|
// Currently no fancy logic on cached index like in value
|
||||||
label i1 = findLower(samples_, t1);
|
|
||||||
|
//- Find lower or equal index
|
||||||
|
label i1 = findLower(samples_, t1, 0, lessEqOp<scalar>());
|
||||||
|
//- Find lower index
|
||||||
label i2 = findLower(samples_, t2);
|
label i2 = findLower(samples_, t2);
|
||||||
|
|
||||||
// For now just fail if any outside table
|
// For now just fail if any outside table
|
||||||
|
|||||||
Reference in New Issue
Block a user