BUG: scalarTransport: have regIOobject member data
functionObjects only get detroyed when the runTime gets destroyed. So the mesh is already destroyed and we cannot hold e.g. a volScalarField since that will try to 'checkOut' from the objectRegistry(=mesh) upon destruction. Note that we only see this in chtMultiRegionFoam.
Showing with 46 additions and 30 deletions