no meshed surfaces

This commit is contained in:
mattijs
2008-07-09 10:08:50 +01:00
parent 0dff8de603
commit 106d1447fa

View File

@ -1004,14 +1004,17 @@ Foam::vectorField Foam::autoSnapDriver::calcNearestSurface
const refinementSurfaces& surfaces = meshRefiner_.surfaces();
const fvMesh& mesh = meshRefiner_.mesh();
// Displacement per patch point
vectorField patchDisp(localPoints.size(), vector::zero);
if (returnReduce(localPoints.size(), sumOp<label>()) > 0)
{
// Divide surfaces into zoned and unzoned
labelList zonedSurfaces;
labelList unzonedSurfaces;
getZonedSurfaces(zonedSurfaces, unzonedSurfaces);
// Displacement per patch point
vectorField patchDisp(localPoints.size(), vector::zero);
// 1. All points to non-interface surfaces
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@ -1119,6 +1122,7 @@ Foam::vectorField Foam::autoSnapDriver::calcNearestSurface
<< " min:" << gMin(magDisp)
<< " max:" << gMax(magDisp) << endl;
}
}
Info<< "Calculated surface displacement in = "
<< mesh.time().cpuTimeIncrement() << " s\n" << nl << endl;