예제 #1
0
Foam::extendedCentredCellToFaceStencil::extendedCentredCellToFaceStencil
(
    const cellToFaceStencil& stencil
)
:
    extendedCellToFaceStencil(stencil.mesh()),
    stencil_(stencil)
{
    // Calculate distribute map (also renumbers elements in stencil)
    List<Map<label> > compactMap(Pstream::nProcs());
    mapPtr_.reset
    (
        new mapDistribute
        (
            stencil.globalNumbering(),
            stencil_,
            compactMap
        )
    );
}
Foam::extendedCentredCellToCellExtStencil::extendedCentredCellToCellExtStencil
(
    const cellToCellExtStencil& stencil
)
:
    extendedCellToCellExtStencil(stencil.mesh()),
    untransformedElements_(stencil.untransformedElements())
{
    // Calculate distribute map (also renumbers elements in stencil)
    List<Map<label> > compactMap(Pstream::nProcs());
    mapPtr_.reset
    (
        new mapDistribute
        (
            stencil.globalNumbering(),
            untransformedElements_,
            stencil.mesh().globalData().globalTransforms(),
            stencil.transformedElements(),
            transformedElements_,
            compactMap
        )
    );
}