On 05/04/2018 02:34 AM, 'Maxi Miller' via deal.II User Group wrote:
I would like to use a temporary triangulation, in order to keep the triangulation I am working on untouched. Is there a way to copy the triangulation (defined as parallel::distributed::Triangulation) to a temporary triangulation? According to http://www.dealii.org/developer/doxygen/deal.II/classparallel_1_1distributed_1_1Triangulation.html there is no way to do that directly, is that correct? Or is it more efficient to scale the original triangulation, write the data, and re-scale it?

Rescaling is a cheap operation -- I'd just do that and the scale back when you're done. On the other hand, copying is expensive and difficult, so I'd avoid that if possible.

(It is possible that p::d::Triangulation has a member function copy_from(), but I don't recall for sure.)

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.

Reply via email to