Updated and cleaned up code for GAP density calculations.
Authored by: jwjoubert 2009-07-23
Parent: [r8033]
Child: [r8035]