STYLE: calculateMeshToMeshWeights: cleanup

This commit is contained in:
mattijs
2012-04-04 09:49:14 +01:00
parent 4fe27dffa1
commit 76cc55c36c

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -118,7 +118,7 @@ void Foam::meshToMesh::calculateInverseVolumeWeights() const
inverseVolumeWeightsPtr_ = new scalarListList(toMesh_.nCells()); inverseVolumeWeightsPtr_ = new scalarListList(toMesh_.nCells());
scalarListList& invVolCoeffs = *inverseVolumeWeightsPtr_; scalarListList& invVolCoeffs = *inverseVolumeWeightsPtr_;
labelListList& cellToCell = *cellToCellAddressingPtr_; const labelListList& cellToCell = cellToCellAddressing();
tetOverlapVolume overlapEngine; tetOverlapVolume overlapEngine;
@ -129,7 +129,7 @@ void Foam::meshToMesh::calculateInverseVolumeWeights() const
if (overlapCells.size() > 0) if (overlapCells.size() > 0)
{ {
invVolCoeffs[celli].setSize(overlapCells.size()); invVolCoeffs[celli].setSize(overlapCells.size());
scalar v(0);
forAll(overlapCells, j) forAll(overlapCells, j)
{ {
label cellFrom = overlapCells[j]; label cellFrom = overlapCells[j];
@ -142,7 +142,7 @@ void Foam::meshToMesh::calculateInverseVolumeWeights() const
) )
); );
v = overlapEngine.cellCellOverlapVolumeMinDecomp scalar v = overlapEngine.cellCellOverlapVolumeMinDecomp
( (
toMesh_, toMesh_,
celli, celli,
@ -153,11 +153,6 @@ void Foam::meshToMesh::calculateInverseVolumeWeights() const
); );
invVolCoeffs[celli][j] = v/toMesh_.V()[celli]; invVolCoeffs[celli][j] = v/toMesh_.V()[celli];
} }
if (celli == 2)
{
Info << "cellToCell :" << cellToCell[celli] << endl;
Info << "invVolCoeffs :" << invVolCoeffs[celli] << endl;
}
} }
} }
} }