Is it possible to save / restore adaptiveleafpart?
I wish to be able to store the current "state" of my simulation at a given point in time. Then, at a later date I wish to restore it, perhaps several times with different parameters. For this, the grid, and the discrete functions need to be stored and restored. I have been able to successfully do this using the Dune::BackupRestoreFacility, for the grid and the DiscreteFunction.write() / .read() features.
However if I locally refine, the indexing is adjusted for both grid and discrete functions. On restore, the grid is renumbered and then will no longer correspond to the discrete functions when they are then restored (thus their values are incorrectly assigned).
As this information is stored by the adaptiveleafpart, is there any way of storing this and restoring it (or some equivalent notion) as with the grid or discrete functions?
I have written a very short code which demonstrates the issue (readme file within).
Thanks very much!