mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Fix for if no level 0 cells present.
This commit is contained in:
@ -474,7 +474,7 @@ Foam::scalar Foam::hexRef8::getLevel0EdgeLength() const
|
||||
|
||||
forAll(typEdgeLenSqr, levelI)
|
||||
{
|
||||
if (typEdgeLenSqr[levelI] == GREAT2)
|
||||
if (typEdgeLenSqr[levelI] == GREAT2 && maxEdgeLenSqr[levelI] >= 0)
|
||||
{
|
||||
typEdgeLenSqr[levelI] = maxEdgeLenSqr[levelI];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user