mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: corrected mappedPatchBase error for multiworld introduced by 945405c32d
This commit is contained in:
@ -1048,7 +1048,10 @@ void Foam::mappedPatchBase::calcMapping() const
|
||||
}
|
||||
|
||||
updateMeshTime().setUpToDate();
|
||||
updateSampleMeshTime().setUpToDate();
|
||||
if (sameWorld())
|
||||
{
|
||||
updateSampleMeshTime().setUpToDate();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -252,9 +252,18 @@ inline bool Foam::mappedPatchBase::upToDate() const
|
||||
{
|
||||
const polyMesh& thisMesh = patch_.boundaryMesh().mesh();
|
||||
|
||||
return
|
||||
(sameWorld() && sampleMesh().upToDatePoints(updateSampleMeshTime()))
|
||||
&& thisMesh.upToDatePoints(updateMeshTime());
|
||||
if (sameWorld())
|
||||
{
|
||||
return
|
||||
sampleMesh().upToDatePoints(updateSampleMeshTime())
|
||||
&& thisMesh.upToDatePoints(updateMeshTime());
|
||||
}
|
||||
else
|
||||
{
|
||||
// If not the same world we do not know what the other side is doing
|
||||
// so only check our local side
|
||||
return thisMesh.upToDatePoints(updateMeshTime());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user