On 9/30/22 05:23, Katharina Jerg wrote:
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?
If you perform the exact same renumbering steps as you did for the original
DoFHandler, you will get the exact same numbering on the copy as well.
Best
W.
--
------------------------------------------------------------------------
Wolfgang Bangerth email: [email protected]
www: http://www.math.colostate.edu/~bangerth/
--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see
https://groups.google.com/d/forum/dealii?hl=en
---
You received this message because you are subscribed to the Google Groups "deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/dealii/c51db0ae-4a43-f871-01d3-5b299abf4578%40colostate.edu.