Hi all,

I am using multiple meshes in deal.ii, so that I need to read input files 
from Gmsh. For example, I have a collection of triangulations, e.g., 
tria_1, tria_2, ..., and tria_10. When I stay on a specific mesh, I need a 
corresponding triangulation. I used a vector to store all the 
triangulations, and then use copy_triangulation to call a specific 
triangulation, like follows,

std::vector<Triangulation<2>> triangulation_vector(10, Triangulation<2>());

triangulation.clear();

triangulation.copy_triangulation(triangulation_vector[0]);


However, it shows

"The name and call sequence of the exception was:

    ExcMessage ("You are not allowed to call this constructor " "because 
copying Triangulation objects is not " "allowed. Use 
Triangulation::copy_from() instead.")

"

It works if I call the name of triangulation directly like tria_1, but it 
is difficult to use.


triangulation.clear();

triangulation.copy_triangulation(tria_1);


Why it does not work when I use a vector of triangulations? And any 
suggestions when using a collection of triangulations?

In addition, it is said that copy_triangulation() is not efficient. The 
most direct way for my case is to read the corresponding Gmsh file 
everytime I need it. But it would be way more time-consuming.


Thank you!


Best,

Chenchen

-- 
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 dealii+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to