[deal.II] Re: How to clear data of triangulation completely

2017-08-02 Thread Felix Lorenz
Yes, you are both right. This part of the code is correct. The problem was that I declared the size of cells as static const, which is not good when the size varies. Best regards, Felix -- The deal.II project is located at http://www.dealii.org/ For mailing list/forum options, see https://grou

[deal.II] Re: How to clear data of triangulation completely

2017-08-01 Thread Jean-Paul Pelteret
Dear Felix, Like Bruno said, if you call clear() on the triangulation at the end of this cycle then it should work. Here you can see that regardless of what other objects are "subscribed"

[deal.II] Re: How to clear data of triangulation completely

2017-08-01 Thread Bruno Turcksin
Felix, it should work. I have done something similar in the past. Can you send a small example that shows the problem. Best, Bruno On Tuesday, August 1, 2017 at 1:26:00 PM UTC-4, Felix Lorenz wrote: > > Hello everybody, > I have the following problem: > > Class C{ > ... > > Triangulation <