← Back to team overview

dolfin team mailing list archive

Re: [Bug 521221] Re: Memory leak in std_vector_typemaps.i interface

 


Johan Hake wrote:
> On Saturday 13 February 2010 11:58:39 Garth N. Wells wrote:
>> Johan Hake wrote:
>>> On Saturday 13 February 2010 11:44:15 Garth N. Wells wrote:
>>>> Johan Hake wrote:
>>>>> Should be fixed now
>>>> Seems we may a leak in array_typemaps.i too. Can you take a look?
>>> Could you elaborate?
>> When I create an Expression with a eval function and use it in a form
>> inside a loop, I see the memory use increasing, just like for the
>> std::vector<Foo*> case. I can try to boil down an example. The example I
>> have now is full of commented code.
> 
> Is it in a Python Expression?
>

Yes.

  class MyExpression(Expression):
      def eval(self, values, x):
          values[0] = 1.0 - x[0]

Garth


> Johan





Follow ups

References