gentryx/libgeodecomp

Memory Leak in PatchBufferFixed when using boost::serialization

Opened this issue · 1 comments

Contrary to its name the fixed buffer in PatchBufferFixed is never cleared. This occurs possibly only when using boost::serialization. This leads to a steadily growing memory usage during MPI calculations as this buffer is used to store kernel and rim during ghost zone calculations.

Patch diff:
libgeodecomp/storage/patchbufferfixed.h
77d76
< buffer[indexRead].clear();

After deliberation, a better patch would be
57d56
< buffer[indexRead].clear()