mappedPatchBase is not updated if for topochange after commit 945405c3
Summary
After a recent commit (945405c3) mappedPatchBase isn't recalculating the map after a topological change to the mesh.
Steps to reproduce
I'm using the chtMultiRegionDyMFoam solver and library from https://develop.openfoam.com/Henning86, although it has been updated to work with V2212. My fork of this can be found here https://github.com/darrinl2t/multiDimAMR/tree/v2212
- Clone the repository given above.
- Source OF-v2212
- Execute the Allwmake script from the multiDimAMR repository
- Run the heatedRoom tutorial. This will crash at 0.8s when the mesh is changed.
Example case
An example case is heatedRoom tutorial in the repository link provided above.
What is the current bug behaviour?
The solver crashes after the mesh has been changed. I have isolated this to the Foam::mappedPatchBase::upToDate() function in mappedPatchBaseI.H not returning false after the sampleMesh has been changed.
What is the expected correct behavior?
The expected behaviour is the solver should run. To confirm this checkout commit 013f3ccc from the OpenFOAM repository, this is the commit before the changes to mappPatchase. Compile with this commit and recompile the multDimAMR library and solver. Run the tutorial with the code at this commit, the solver will run fine and the mesh will be adapted to the fluid temperature as expected.
Environment information
OpenFOAM version : v2212
Possible fixes
I don't have a fix for this. What I have determined is that after the fluid side mesh has been changed its eventNo() isn't updated, so the test sampleMesh().upToDatePoints(updateSampleMeshTime() returns True when it should be false.