mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: handling zero sized cyclics
This commit is contained in:
@ -419,6 +419,8 @@ void Foam::cyclicPolyPatch::getCentresAndAnchors
|
||||
<< gAverage(half1Ctrs) << endl;
|
||||
}
|
||||
|
||||
if (half0Ctrs.size())
|
||||
{
|
||||
switch (transform_)
|
||||
{
|
||||
case ROTATIONAL:
|
||||
@ -557,7 +559,7 @@ void Foam::cyclicPolyPatch::getCentresAndAnchors
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// Calculate typical distance per face
|
||||
tols = matchTolerance()*calcFaceTol(pp1, pp1.points(), half1Ctrs);
|
||||
@ -1270,7 +1272,7 @@ bool Foam::cyclicPolyPatch::order
|
||||
rotation.setSize(pp.size());
|
||||
rotation = 0;
|
||||
|
||||
if (pp.empty() || transform_ == NOORDERING)
|
||||
if (transform_ == NOORDERING)
|
||||
{
|
||||
// No faces, nothing to change.
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user