On 11/06/2018 08:52 AM, [email protected] wrote:
>
> And now I have another question: I want to compute numerical solutions
> in different widths of meshgrid, so I need different triangulations,
> dof_handlers, solution vectors. And I need to compute the finest one at
> first because I need to use the solution_finest as the 'exact solution'.
> The question is how to coarse the meshgrid after getting the
> solution_finest? If I want to refine the mesh, I will use
> 'triangulation.refine(1)'.
There is no function that automatically does this, but the following
will do the trick:
for (auto &cell : triangulation.active_cell_iterators())
cell->set_coarsen_flag();
triangulation.execute_coarsening_and_refinement();
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].
For more options, visit https://groups.google.com/d/optout.