On Mon, Aug 11, 2008 at 5:09 PM, Kirk, Benjamin (JSC-EG)
<[EMAIL PROTECTED]> wrote:
> It knows its size() and capacity(), right?
And perhaps a bit more. I just looked at stl_vector.h and saw:
template
struct _Vector_base
{
struct _Vector_impl
: public _Alloc
{
It knows its size() and capacity(), right?
- Original Message -
From: John Peterson <[EMAIL PROTECTED]>
To: Kirk, Benjamin (JSC-EG)
Cc: libmesh-devel@lists.sourceforge.net
Sent: Mon Aug 11 16:52:31 2008
Subject: Re: [Libmesh-devel] Memory Leak in DofObject?
On Mon, Aug 11, 2008 at 4:09
On Mon, Aug 11, 2008 at 4:09 PM, Benjamin Kirk <[EMAIL PROTECTED]> wrote:
>
>> I think I may have found the leak...
>>
>> Check out clear_dofs() in dof_object.h
>>
>> [snipped...]
>
> Just independently came to the same conclusion... Nice work.
> I am checking (_dof_ids[s] != NULL) for the general
On Mon, Aug 11, 2008 at 4:09 PM, Benjamin Kirk <[EMAIL PROTECTED]> wrote:
>
>> I think I may have found the leak...
>>
>> Check out clear_dofs() in dof_object.h
>>
>> [snipped...]
>
> Just independently came to the same conclusion... Nice work.
> I am checking (_dof_ids[s] != NULL) for the general
> I think I may have found the leak...
>
> Check out clear_dofs() in dof_object.h
>
> After deleting _n_v_comp[s], we test to see if there are any dof_ids
> to be deleted:
>
> if (this->n_vars(s) != 0) // This has only been allocated if
> {
Hi,
I think I may have found the leak...
Check out clear_dofs() in dof_object.h
After deleting _n_v_comp[s], we test to see if there are any dof_ids
to be deleted:
if (this->n_vars(s) != 0) // This has only been allocated if
{ // variables
On Mon, Aug 11, 2008 at 10:26 AM, Kirk, Benjamin (JSC-EG)
<[EMAIL PROTECTED]> wrote:
> I will. Let me know what ex10 says - it should allocate dof_objects like
> crazy.
Indeed. I ran:
valgrind --tool=memcheck --leak-check=full ./ex10-devel -n_timesteps
10 -init_timestep 0
It finds the leaks in
I will. Let me know what ex10 says - it should allocate dof_objects like crazy.
-Ben
- Original Message -
From: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
To: libmesh-devel@lists.sourceforge.net
Sent: Mon Aug 11 10:07:19 2008
Subject: [Libmesh-devel] Memory Leak in DofObject?
Hi guys,
In
Hi guys,
In running the examples through valgrind, I get:
valgrind --tool=memcheck --leak-check=full ./ex4-devel -d 2 -n 10
[... other output...]
==28772== 2,164 bytes in 541 blocks are definitely lost in loss record 4 of 8
==28772==at 0x400695C: operator new[](unsigned) (vg_replace_malloc.
I had a quick look.
There is no complex datatype in vtk as far as I can see, so it would
have to be done through two arrays.
I would be doing this "blind" since I never use this, so I propose we
settle with the #ifdef for now.
Wout
On Mon, Aug 11, 2008 at 6:56 AM, Roy Stogner <[EMAIL PROTECTED]>
10 matches
Mail list logo