UIndirectList

This commit is contained in:
mattijs
2009-03-12 19:25:21 +00:00
parent 6c387489d7
commit 0128b2be68
49 changed files with 390 additions and 197 deletions

View File

@ -103,8 +103,8 @@ void Foam::polyMeshGeometry::updateCellCentresAndVols
)
{
// Clear the fields for accumulation
IndirectList<vector>(cellCentres_, changedCells) = vector::zero;
IndirectList<scalar>(cellVolumes_, changedCells) = 0.0;
UIndirectList<vector>(cellCentres_, changedCells) = vector::zero;
UIndirectList<scalar>(cellVolumes_, changedCells) = 0.0;
const labelList& own = mesh_.faceOwner();
const labelList& nei = mesh_.faceNeighbour();
@ -112,9 +112,9 @@ void Foam::polyMeshGeometry::updateCellCentresAndVols
// first estimate the approximate cell centre as the average of face centres
vectorField cEst(mesh_.nCells());
IndirectList<vector>(cEst, changedCells) = vector::zero;
UIndirectList<vector>(cEst, changedCells) = vector::zero;
scalarField nCellFaces(mesh_.nCells());
IndirectList<scalar>(nCellFaces, changedCells) = 0.0;
UIndirectList<scalar>(nCellFaces, changedCells) = 0.0;
forAll(changedFaces, i)
{