Dear Timo,
I have another question still concerning the same task. I still want to coarsen the mesh and its solution at certain cells, but keep the old one (dof_handler, triangulation, solution) for further calculations.
In order to use the solution transfer, but not change the original dof_handler I created a new dof_handler_coarse_ and initialized it:
this->dof_handler_coarse_.reinit(this->triangulation_coarse_);
this->dof_handler_coarse_.distribute_dofs(this->fe_);
However, the numbering of this dof_handler_coarse_ does not correspond to the numbering of the original dof_handler_ and therefore the solution vector is senseless for this dof_handler_coarse_. The original dof_handler_ is renumbered with DoFRenumbering::Cuthill_McKee and different constraints are applied. Since the copy constructor of the dof_handler is deleted, I don't have a pretty solution for this. Do you have any suggestions?
Thank you in advance,
Katharina