mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 05:20:34 +05:00
memory tracer - fix memory accumulation of children
This commit is contained in:
parent
b55264e0ee
commit
91f127ef71
@ -1068,9 +1068,8 @@ namespace ngcore
|
|||||||
{
|
{
|
||||||
// reverse topological order to accumulate total memory usage of all children
|
// reverse topological order to accumulate total memory usage of all children
|
||||||
auto i = sorting[sorting.Size()-1-i_];
|
auto i = sorting[sorting.Size()-1-i_];
|
||||||
if(parents[i]==-1)
|
if(i==0)
|
||||||
root.size += nodes[i]->size;
|
continue;
|
||||||
else
|
|
||||||
nodes[parents[i]]->size += nodes[i]->size;
|
nodes[parents[i]]->size += nodes[i]->size;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user