Added density floor to gravity solver