mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: foamyHexMesh: Disable reporting of point insertion failure
This commit is contained in:
@ -194,12 +194,24 @@ void Foam::conformalVoronoiMesh::insertPoints
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
label preReinsertionSize(number_of_vertices());
|
||||||
|
|
||||||
rangeInsertWithInfo
|
rangeInsertWithInfo
|
||||||
(
|
(
|
||||||
vertices.begin(),
|
vertices.begin(),
|
||||||
vertices.end(),
|
vertices.end(),
|
||||||
true
|
false
|
||||||
);
|
);
|
||||||
|
|
||||||
|
const label nReinserted = returnReduce
|
||||||
|
(
|
||||||
|
label(number_of_vertices()) - preReinsertionSize,
|
||||||
|
sumOp<label>()
|
||||||
|
);
|
||||||
|
|
||||||
|
Info<< " Reinserted " << nReinserted << " vertices out of "
|
||||||
|
<< returnReduce(vertices.size(), sumOp<label>())
|
||||||
|
<< endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -317,7 +317,7 @@ private:
|
|||||||
void insertPoints
|
void insertPoints
|
||||||
(
|
(
|
||||||
List<Vb>& vertices,
|
List<Vb>& vertices,
|
||||||
bool distribute = true
|
bool distribute
|
||||||
);
|
);
|
||||||
|
|
||||||
//- Create a point-pair at a ppDist distance either side of
|
//- Create a point-pair at a ppDist distance either side of
|
||||||
|
|||||||
@ -873,17 +873,7 @@ void Foam::conformalVoronoiMesh::reinsertFeaturePoints(bool distribute)
|
|||||||
{
|
{
|
||||||
Info<< nl << "Reinserting stored feature points" << endl;
|
Info<< nl << "Reinserting stored feature points" << endl;
|
||||||
|
|
||||||
label preReinsertionSize(number_of_vertices());
|
|
||||||
|
|
||||||
insertPoints(featureVertices_, distribute);
|
insertPoints(featureVertices_, distribute);
|
||||||
|
|
||||||
const label nReinserted = returnReduce
|
|
||||||
(
|
|
||||||
label(number_of_vertices()) - preReinsertionSize,
|
|
||||||
sumOp<label>()
|
|
||||||
);
|
|
||||||
|
|
||||||
Info<< " Reinserted " << nReinserted << " vertices" << endl;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user