#2194: Memory increase during regridding ---------------------------------+--------------------------------- Reporter: wolfgang.kastaun@… | Owner: (none) Type: defect | Status: new Priority: unset | Milestone: Component: Other | Version: development version Resolution: | Keywords: ---------------------------------+---------------------------------
Comment (by Steven R. Brandt):
Confirmed using valgrind. The memory allocated on line 148 of ggf.cc is not freed.
{{{ 139 // Resize structure and allocate storage 140 storage.resize(h.mglevels()); 141 for (int ml = 0; ml < h.mglevels(); ++ml) { 142 storage.AT(ml).resize(h.reflevels()); 143 storage.AT(ml).AT(rl).resize(h.local_components(rl)); 144 for (int lc = 0; lc < h.local_components(rl); ++lc) { 145 int const c = h.get_component(rl, lc); 146 storage.AT(ml).AT(rl).AT(lc).resize(timelevels(ml, rl)); 147 for (int tl = 0; tl < timelevels(ml, rl); ++tl) { 148 storage.AT(ml).AT(rl).AT(lc).AT(tl) = typed_data(tl, rl, lc, ml); 149 storage.AT(ml).AT(rl).AT(lc).AT(tl)->allocate( 150 d.light_boxes.AT(ml).AT(rl).AT(c).exterior, dist::rank()); 151 } // for tl 152 } // for lc 153 } // for ml 154 }}}