wiki:RunTrouble20070904

Version 2 (modified by trac, 12 years ago) ( diff )

09/04/2007

Problem: mpibear experiences a memory leak (3-6 MB per frame on the first frames of a simple 2D MHD problem).

Cause: The Outputq() function in the beario.f90 module was copying grid data from the worker processors to the master processor without removing the copied data when it was done. This caused unallocated memory blocks to accumulate on the master processor.

Solution: A call to MPI_RemoveFields_Copy() at the end of Outputq() frees up the memory occupied by copied grid data.

Status: Maybe done. The amount of memory used still creeps up, but it is unclear whether this is due to further memory leaks or the natural growth in the number of grids as the problem progresses.

Note: See TracWiki for help on using the wiki.