BUG: Fixing adress list size

This commit is contained in:
sergio
2014-06-19 09:24:53 +01:00
committed by Andrew Heather
parent 4b0e80f773
commit 61c85c977a

View File

@ -154,16 +154,14 @@ void Foam::directMethod::calculateAddressing
// transfer addressing into persistent storage // transfer addressing into persistent storage
forAll(srcToTgtCellAddr, i) forAll(srcToTgtCellAddr, i)
{ {
scalar v = srcVc[i]; srcToTgtCellWght[i] = scalarList(srcToTgt[i].size(), srcVc[i]);
srcToTgtCellAddr[i].transfer(srcToTgt[i]); srcToTgtCellAddr[i].transfer(srcToTgt[i]);
srcToTgtCellWght[i] = scalarList(1, v);
} }
forAll(tgtToSrcCellAddr, i) forAll(tgtToSrcCellAddr, i)
{ {
scalar v = tgtVc[i]; tgtToSrcCellWght[i] = scalarList(tgtToSrc[i].size(), tgtVc[i]);
tgtToSrcCellAddr[i].transfer(tgtToSrc[i]); tgtToSrcCellAddr[i].transfer(tgtToSrc[i]);
tgtToSrcCellWght[i] = scalarList(1, v);
} }
} }