Minor clean-up

This commit is contained in:
Hrvoje Jasak 2011-05-28 12:24:19 +01:00
parent 13a36b66cd
commit 7ccb738219

View file

@ -134,7 +134,8 @@ Foam::ggiGAMGInterface::ggiGAMGInterface
); );
// Table of face-sets weights to be agglomerated // Table of face-sets weights to be agglomerated
HashTable<SLList<SLList<scalar> >, label, Hash<label> > faceFaceWeightsTable HashTable<SLList<SLList<scalar> >, label, Hash<label> >
faceFaceWeightsTable
( (
localExpandAddressing.size() localExpandAddressing.size()
); );
@ -221,6 +222,7 @@ Foam::ggiGAMGInterface::ggiGAMGInterface
faceFacesIter().append(ffI); faceFacesIter().append(ffI);
faceFaceWeightsIter().append(curNW); faceFaceWeightsIter().append(curNW);
nAgglomPairs++; nAgglomPairs++;
break; break;
} }
} }
@ -436,7 +438,8 @@ Foam::ggiGAMGInterface::ggiGAMGInterface
contents[masterI] - procOffset*Pstream::myProcNo(); contents[masterI] - procOffset*Pstream::myProcNo();
nProcFaces++; nProcFaces++;
SLList<label>::iterator facesIter = faceFacesIter().begin(); SLList<label>::iterator facesIter =
faceFacesIter().begin();
SLList<scalar>::iterator weightsIter = SLList<scalar>::iterator weightsIter =
faceFaceWeightsIter().begin(); faceFaceWeightsIter().begin();
@ -473,7 +476,7 @@ Foam::ggiGAMGInterface::ggiGAMGInterface
// On slave side, the owner addressing is stored in linked lists // On slave side, the owner addressing is stored in linked lists
forAll (contents, masterI) forAll (contents, masterI)
{ {
// Note: maste processor index is irrelevant. HJ, 1/Apr/2009 // Note: master processor index is irrelevant. HJ, 1/Apr/2009
SLList<label>& curNbrs = neighboursTable.find(contents[masterI])(); SLList<label>& curNbrs = neighboursTable.find(contents[masterI])();
@ -512,7 +515,9 @@ Foam::ggiGAMGInterface::ggiGAMGInterface
nbrsIter() - procOffset*Pstream::myProcNo(); nbrsIter() - procOffset*Pstream::myProcNo();
nProcFaces++; nProcFaces++;
SLList<label>::iterator facesIter = faceFacesIter().begin(); SLList<label>::iterator facesIter =
faceFacesIter().begin();
SLList<scalar>::iterator weightsIter = SLList<scalar>::iterator weightsIter =
faceFaceWeightsIter().begin(); faceFaceWeightsIter().begin();