#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 Erik Schnetter):
Regridding is supposed to happen as follows: 1. Memory for the new grid structure is allocated 2. As much as possible, data are copied from the old to the new grid structure 3. Where necessary, data are interpolated from the old to the new grid structure 4. The old grid structure is freed
The routine which you list is step 1, allocation. Deallocation is supposed to happen in step 4 in a function called {{{recompose_free_old}}}. When Cactus terminates, then the memory for the current grid structure is deallocated in a function {{{recompose_free}}}.