Hello,
i've got the following problem:
i've coded a deal.ii application that calculates some mechanical
deformations. It runs very clean and without any problems when i compile
it as a stand-alone program. The problem occures when the routine is
binded into another application (in my case this is an inner point
optimization algorithm). When an instance of the mechanical problem is
destroyed inside the optimization procedure the program crashes while
trying to destroy the triangulation at the point the
subscriptor-destuctor is called:
--------------------------------------------------------
An error occurred in line <103> of file <source/subscriptor.cc> in function
virtual dealii::Subscriptor::~Subscriptor()
The violated condition was:
counter == 0
The name and call sequence of the exception was:
ExcInUse (counter, object_info->name(), infostring)
Additional Information:
Object of class N6dealii13TriangulationILi2EEE is still used by 1 other
objects.
from Subscriber unknown subscriber
the last three lines of the stacktrace:
#0 /home/ft/Desktop/deal.II/lib/libbase.g.so:
dealii::Subscriptor::~Subscriptor()
#1 /home/ft/Desktop/deal.II/lib/libdeal_II_2d.g.so:
dealii::Triangulation<2>::~Triangulation()
#2 ./hs071_prog: HS071_NLP::eval_f(int, double const*, bool, double&)
I can't figure out which object is using the triangulation and why it
should do so at all. The triangulation should only be used in the
mechanical calculation which (as said before) runs without problems on
its own.
I would appreciate any explanation on why this problem occures and how i
can fix it.
Kind regards
F.Taebi
_______________________________________________
dealii mailing list http://poisson.dealii.org/mailman/listinfo/dealii