mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: viewFactorsGen: stabilise calculation. Fixes #2583
This commit is contained in:
@ -1062,7 +1062,12 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
}
|
||||
|
||||
scalar err = (F2LIij-oldEToeInt)/F2LIij;
|
||||
const scalar err
|
||||
(
|
||||
mag(F2LIij) > ROOTVSMALL
|
||||
? (F2LIij-oldEToeInt)/F2LIij
|
||||
: 0
|
||||
);
|
||||
|
||||
if
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user