BUG: mergePoints on mesh subset (e.g. patch) did not address points correctly.

This commit is contained in:
mattijs
2010-02-08 17:34:32 +00:00
parent 3eb95ac527
commit f1ee3d3d6b

View File

@ -1741,7 +1741,7 @@ Foam::autoPtr<Foam::globalIndex> Foam::globalMeshData::mergePoints
}
}
label myUniquePoints = meshPoints.size() + nCoupledMaster - nCoupledSlave;
label myUniquePoints = meshPoints.size() - nCoupledSlave;
Pout<< "Points :" << nl
<< " patch : " << meshPoints.size() << nl
@ -1795,10 +1795,10 @@ Pout<< "Points :" << nl
if (slaves.size() > 0)
{
// Duplicate master globalpoint into slave slots
masterToGlobal[coupledPointI] = pointToGlobal[meshPointI];
masterToGlobal[coupledPointI] = pointToGlobal[localPointI];
forAll(slaves, i)
{
masterToGlobal[slaves[i]] = pointToGlobal[meshPointI];
masterToGlobal[slaves[i]] = pointToGlobal[localPointI];
}
}
}
@ -1825,7 +1825,7 @@ Pout<< "Points :" << nl
if (slaves.size() == 0)
{
pointToGlobal[meshPointI] = masterToGlobal[coupledPointI];
pointToGlobal[localPointI] = masterToGlobal[coupledPointI];
}
}
}