Hi Uwe! I have been thinking, and the problem is that I do not know when to do the `dof.clear()`. In my case `dof` belongs to an instance (state) that still exists when python try to remove the instance containing the `triangulation` (geo). The only way I can think the problem can be solved would be by explicitly mentioning the order to delete the objects. I will try to ask more people around to see if I can find other solution, and then I will post it here.
Thansks. El martes, 14 de febrero de 2017, 17:30:19 (UTC+1), Uwe Köcher escribió: > > I'm wondering, if it is impossible to call dof.clear(), > which should remove the link to triangulation object, > in python or the c++ code beyond? > > I've included such a line in a destructor within my c++ codes, to get rid > of a similar message as posted above. > > On Tuesday, February 14, 2017 at 4:21:00 PM UTC+1, Bruno Turcksin wrote: >> >> 2017-02-14 10:13 GMT-05:00 Sebastian.Gonzalez-Pintor <sego...@gmail.com>: >> >> > I am doing some reading about this now. I do not have explicit >> destructors >> > neither in c++ nor in python, so I want to be carefull that I can >> define the >> > destructors to add the cout without changing the what the destructor >> would >> > do the work. Thanks for the hint. >> You should be fine just adding destructors with cout (at least in >> c++). The behavior won't change. >> >> Best, >> >> Bruno >> > -- 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.