mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: mergePoints on mesh subset (e.g. patch) did not address points correctly.
This commit is contained in:
@ -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];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user