rewriting empty boundary conditions

This commit is contained in:
mattijs
2009-07-21 13:29:39 +01:00
parent 51cd947675
commit 084e5aad19

View File

@ -96,11 +96,18 @@ Foam::isoSurface::adaptPatchFields
sliceFld
)
);
sliceFld.boundaryField()[patchI] ==
mesh.boundary()[patchI].patchInternalField
(
sliceFld
);
// Note: cannot use patchInternalField since uses emptyFvPatch::size
// Do our own internalField instead.
const unallocLabelList& faceCells =
mesh.boundary()[patchI].patch().faceCells();
Field<Type>& pfld = sliceFld.boundaryField()[patchI];
pfld.setSize(faceCells.size());
forAll(faceCells, i)
{
pfld[i] = sliceFld[faceCells[i]];
}
}
else if (isA<cyclicPolyPatch>(pp))
{