Topic: context
I have found, that the context functionality is not working properly.
Unfortunately, the problem is not easy to fix.
The problem is following:
- before reading context, the dofs and their applied bcs are properly initialized.
- when context is being read (restored), the dofs are deleted and created again (see DofManager :: restoreContext). In this step, the information about assigned bcs are lost and this information is not restored, it is restored only when mode is set to CM_Definition
It may seem that the solution would be to set CM_Definition when saving and restoring context. However, this will also not work, as in this case domain restoreContext deletes all instanciated components. That would be ok, but then all components should read all information when restoring context. This is not the case, for example BoundaryCondition is not restoring its values......
I am working to fix this, but functionality have to be checked before commiting when the changes are made, as its more simple to find out the problem.