utilities: Updated moveMesh -> setPoints
Mesh manipulation utilities do not need to generate or use mesh-motion fluxes so it is more efficient to use setPoints rather than moveMesh.
This commit is contained in:
@ -1145,7 +1145,7 @@ int main(int argc, char *argv[])
|
||||
// Move mesh (since morphing might not do this)
|
||||
if (map().hasMotionPoints())
|
||||
{
|
||||
subsetter.subMesh().movePoints(map().preMotionPoints());
|
||||
subsetter.subMesh().setPoints(map().preMotionPoints());
|
||||
}
|
||||
|
||||
Info<< "Writing mesh with split blockedFaces to time "
|
||||
|
||||
@ -517,7 +517,7 @@ void subsetMesh
|
||||
|
||||
if (map().hasMotionPoints())
|
||||
{
|
||||
mesh.movePoints(map().preMotionPoints());
|
||||
mesh.setPoints(map().preMotionPoints());
|
||||
}
|
||||
|
||||
// Update topology on cellRemover
|
||||
|
||||
@ -113,7 +113,7 @@ label mergePatchFaces
|
||||
// Move mesh (since morphing does not do this)
|
||||
if (map().hasMotionPoints())
|
||||
{
|
||||
mesh.movePoints(map().preMotionPoints());
|
||||
mesh.setPoints(map().preMotionPoints());
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -269,7 +269,7 @@ label mergePatchFaces
|
||||
// Move mesh (since morphing does not do this)
|
||||
if (map().hasMotionPoints())
|
||||
{
|
||||
mesh.movePoints(map().preMotionPoints());
|
||||
mesh.setPoints(map().preMotionPoints());
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -322,7 +322,7 @@ label mergeEdges(const scalar minCos, polyMesh& mesh)
|
||||
// Move mesh (since morphing does not do this)
|
||||
if (map().hasMotionPoints())
|
||||
{
|
||||
mesh.movePoints(map().preMotionPoints());
|
||||
mesh.setPoints(map().preMotionPoints());
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@ -534,7 +534,7 @@ int main(int argc, char *argv[])
|
||||
|
||||
if (map().hasMotionPoints())
|
||||
{
|
||||
mesh.movePoints(map().preMotionPoints());
|
||||
mesh.setPoints(map().preMotionPoints());
|
||||
}
|
||||
|
||||
cutter.topoChange(map());
|
||||
@ -580,7 +580,7 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
|
||||
// Move master point to destination.
|
||||
mesh.movePoints(newPoints);
|
||||
mesh.setPoints(newPoints);
|
||||
|
||||
List<pointEdgeCollapse> allPointInfo;
|
||||
const globalIndex globalPoints(mesh.nPoints());
|
||||
@ -606,7 +606,7 @@ int main(int argc, char *argv[])
|
||||
|
||||
if (map().hasMotionPoints())
|
||||
{
|
||||
mesh.movePoints(map().preMotionPoints());
|
||||
mesh.setPoints(map().preMotionPoints());
|
||||
}
|
||||
|
||||
// Not implemented yet:
|
||||
@ -651,7 +651,7 @@ int main(int argc, char *argv[])
|
||||
|
||||
if (map().hasMotionPoints())
|
||||
{
|
||||
mesh.movePoints(map().preMotionPoints());
|
||||
mesh.setPoints(map().preMotionPoints());
|
||||
}
|
||||
|
||||
cutter.topoChange(map());
|
||||
|
||||
@ -153,7 +153,7 @@ int main(int argc, char *argv[])
|
||||
// Optionally inflate mesh
|
||||
if (map().hasMotionPoints())
|
||||
{
|
||||
mesh.movePoints(map().preMotionPoints());
|
||||
mesh.setPoints(map().preMotionPoints());
|
||||
}
|
||||
|
||||
Info<< "Refined from " << returnReduce(map().nOldCells(), sumOp<label>())
|
||||
|
||||
@ -244,7 +244,7 @@ int main(int argc, char *argv[])
|
||||
|
||||
if (map().hasMotionPoints())
|
||||
{
|
||||
mesh.movePoints(map().preMotionPoints());
|
||||
mesh.setPoints(map().preMotionPoints());
|
||||
}
|
||||
|
||||
// Update stored labels on meshCutter.
|
||||
|
||||
@ -143,7 +143,7 @@ int main(int argc, char *argv[])
|
||||
// Move mesh (since morphing does not do this)
|
||||
if (map().hasMotionPoints())
|
||||
{
|
||||
mesh.movePoints(map().preMotionPoints());
|
||||
mesh.setPoints(map().preMotionPoints());
|
||||
}
|
||||
|
||||
// Update numbering of cells/vertices.
|
||||
|
||||
@ -689,7 +689,7 @@ int main(int argc, char *argv[])
|
||||
|
||||
if (map().hasMotionPoints())
|
||||
{
|
||||
mesh.movePoints(map().preMotionPoints());
|
||||
mesh.setPoints(map().preMotionPoints());
|
||||
}
|
||||
|
||||
// Update stored labels on meshCutter
|
||||
|
||||
Reference in New Issue
Block a user