stan-dev/stan — pull request #74 by betanalpha (2013-05-23 17:47:19+00:00)
Title: Check for model failure with zero initialization, including tests

Fixes the problem @mbrubake discovered, where a model ill-defined with its unconstrained parameters at zero is allowed to proceed to sampling. The zero initialization now checks for domain, value, and gradient errors. Tests added, with the makefile tweaked to compile pathological models.