mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: cyclicPeriodicAMI: Floor operation should add 0.5 to round to the nearest integer.
This commit is contained in:
@ -363,8 +363,8 @@ void Foam::cyclicPeriodicAMIPolyPatch::resetAMI
|
||||
// Check that both patches have replicated an integer number of times
|
||||
if
|
||||
(
|
||||
mag(srcSum - floor(srcSum + matchTolerance())) > matchTolerance()
|
||||
|| mag(tgtSum - floor(tgtSum + matchTolerance())) > matchTolerance()
|
||||
mag(srcSum - floor(srcSum + 0.5)) > matchTolerance()
|
||||
|| mag(tgtSum - floor(tgtSum + 0.5)) > matchTolerance()
|
||||
)
|
||||
{
|
||||
FatalErrorIn
|
||||
|
||||
Reference in New Issue
Block a user